PandaRoot
PndSdsAdcChargeConversion.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 PNDSDSADCCHARGECONVERSION_H
14 #define PNDSDSADCCHARGECONVERSION_H
15 
16 #include <iostream>
17 #include <cmath>
18 #include "PndSdsChargeConversion.h"
19 
22 
31  public:
33  PndSdsAdcChargeConversion(Int_t threshold = 0, Int_t adcstep = 1, Int_t resolution = 8, Int_t VerboseLevel = 0);
34 
37 
38  virtual Double_t ChargeToDigiValue(Double_t charge);
39  virtual Double_t DigiValueToCharge(Double_t digivalue);
40  virtual Double_t GetRelativeError(Double_t Charge);
41  virtual Int_t GetTimeStamp(Double_t time);
42  virtual Double_t GetTimeStamp(Double_t tof, Double_t charge, Double_t MCEventTime);
43 
44  // private:
46  Int_t fThreshold; //[e]
47  Int_t fAdcStep; //[e]
48  Int_t fResolution; //[bit]
49  Int_t fMaxADC; //
50  Double_t fTimeStep; //[ns]
51  Double_t DigitizeTime(Double_t time);
52 
54 };
55 
56 #endif /* PndSdsAdcChargeConversion_H */
virtual Double_t ChargeToDigiValue(Double_t charge)
Converts a given charge in electrons into the electronics answer e.g. ToT [ns].
virtual Int_t GetTimeStamp(Double_t time)
Double_t DigitizeTime(Double_t time)
PndSdsAdcChargeConversion(Int_t threshold=0, Int_t adcstep=1, Int_t resolution=8, Int_t VerboseLevel=0)
constructor
virtual Double_t GetRelativeError(Double_t Charge)
virtual Double_t DigiValueToCharge(Double_t digivalue)
Converts a given digitized charge into charge in electrons.
ClassDef(PndSdsAdcChargeConversion, 1)