PandaRoot
PndSdsIdealChargeConversion.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 #ifndef PNDSDSIDEALCHARGECONVERSION_H
14 #define PNDSDSIDEALCHARGECONVERSION_H
15 
18 
19 #include "PndSdsChargeConversion.h"
20 
22  public:
25  virtual Double_t ChargeToDigiValue(Double_t charge) { return charge; };
26  virtual Double_t DigiValueToCharge(Double_t digi) { return digi; };
27  virtual Double_t GetRelativeError(Double_t charge) { return charge != 0 ? fNoise / charge : 0.; };
28  virtual Double_t GetTimeStamp(Double_t time, Double_t, Double_t) { return (time - 1.); }; // charge mceventtime //[R.K.03/2017] unused variable(s)
29 
30  protected:
31  Double_t fNoise;
32 
34 };
35 #endif /* PNDSDSIDEALCHARGECONVERSION_H */
ClassDef(PndSdsIdealChargeConversion, 1)
virtual Double_t GetRelativeError(Double_t charge)
virtual Double_t DigiValueToCharge(Double_t digi)
Converts a given digitized charge into charge in electrons.
virtual Double_t ChargeToDigiValue(Double_t charge)
Converts a given charge in electrons into the electronics answer e.g. ToT [ns].
virtual Double_t GetTimeStamp(Double_t time, Double_t, Double_t)
absolute time stamp of a hit in ns (clock is taken into account)