CbmRoot
|
#include <CbmTrdRawToDigiR.h>
Public Member Functions | |
CbmTrdRawToDigiR () | |
default Constructor with messages More... | |
CbmTrdRawToDigiR (std::string readfile) | |
CbmTrdRawToDigiR (Double_t cal, Double_t tau, Int_t mode) | |
Constructor with messages and preset reconstruction mode. More... | |
CbmTrdRawToDigiR (Double_t cal, Double_t tau, std::vector< Int_t > mask) | |
Constructor with messages and selection mask. More... | |
virtual | ~CbmTrdRawToDigiR () |
Destructor. More... | |
CbmTrdDigi * | MakeDigi (std::vector< Int_t > samples, Int_t channel, Int_t uniqueModuleId, ULong64_t time, Bool_t FN=false) |
Float_t | GetTimeShift (std::vector< Int_t > samples) |
Double_t | GetCharge (std::vector< Int_t > samples, Int_t shift=-1) |
void | SetCalibration (Double_t cal) |
void | SetTau (Double_t tau) |
void | SetRecoMode (Int_t mode) |
void | SetShapingOrder (Int_t order) |
void | SetRecoMask (std::vector< Int_t > mask) |
void | SetSetter (Bool_t set) |
void | SetReadFile (std::string file) |
void | SetWriteFile (std::string file) |
void | SetMaxBin (Int_t bin) |
void | SetMinBin (Int_t bin) |
void | SetPresamples (Int_t pre) |
void | SetLookup (Int_t mode) |
void | SetPars (Int_t mode, Double_t cal, Double_t tau, std::vector< Int_t > mask) |
void | Init () |
void | FillLookUps (std::string write="") |
void | WriteMaps (std::string file="") |
void | ReadMaps (std::string file="") |
void | SetDebug (Bool_t debug) |
void | SetQA (CbmTrdCheckUtil *qa) |
Bool_t | GetSetter () |
Private Member Functions | |
CbmTrdRawToDigiR (const CbmTrdRawToDigiR &) | |
CbmTrdRawToDigiR | operator= (const CbmTrdRawToDigiR &) |
Double_t | CalcResponse (Double_t t) |
ClassDef (CbmTrdRawToDigiR, 1) | |
Private Attributes | |
Double_t | fCalibration |
Double_t | fEReco |
Double_t | fTau = 120 |
Int_t | fRecoMode = 1 |
Int_t | fShapingOrder = 1 |
Int_t | fDynamicRange = 500 |
Int_t | fHighBin |
Int_t | fPresamples |
Int_t | fMaxBin = 2 + fPresamples |
Int_t | fMinBin |
Float_t | fExtrapolate |
std::vector< Int_t > | fSampleMask |
Int_t | fLookUp = 3 |
Bool_t | fDebug |
Bool_t | fSet = false |
std::string | fReadFile = "" |
std::string | fWriteFile |
CbmTrdCheckUtil * | fQA = NULL |
std::map< Int_t, std::map< Int_t, Float_t > > | fElookupSmall |
std::map< Int_t, std::map< Int_t, std::map< Int_t, Int_t > > > | fElookupAsym |
std::map< Int_t, std::map< Int_t, Int_t > > | fElookupA |
std::map< Int_t, std::map< Int_t, std::map< Int_t, Int_t > > > | fElookupBig |
std::map< Int_t, Float_t > | fElookup |
Definition at line 17 of file CbmTrdRawToDigiR.h.
CbmTrdRawToDigiR::CbmTrdRawToDigiR | ( | ) |
default Constructor with messages
Definition at line 21 of file CbmTrdRawToDigiR.cxx.
CbmTrdRawToDigiR::CbmTrdRawToDigiR | ( | std::string | readfile | ) |
Definition at line 31 of file CbmTrdRawToDigiR.cxx.
References SetReadFile().
CbmTrdRawToDigiR::CbmTrdRawToDigiR | ( | Double_t | cal, |
Double_t | tau, | ||
Int_t | mode | ||
) |
Constructor with messages and preset reconstruction mode.
Definition at line 44 of file CbmTrdRawToDigiR.cxx.
References fSampleMask, SetCalibration(), SetPars(), SetRecoMode(), and SetTau().
CbmTrdRawToDigiR::CbmTrdRawToDigiR | ( | Double_t | cal, |
Double_t | tau, | ||
std::vector< Int_t > | mask | ||
) |
Constructor with messages and selection mask.
Definition at line 60 of file CbmTrdRawToDigiR.cxx.
References fRecoMode, SetCalibration(), SetPars(), SetRecoMask(), and SetTau().
|
inlinevirtual |
Destructor.
Definition at line 36 of file CbmTrdRawToDigiR.h.
|
private |
|
private |
Definition at line 599 of file CbmTrdRawToDigiR.cxx.
References fShapingOrder, and fTau.
Referenced by FillLookUps(), Init(), and SetPars().
|
private |
void CbmTrdRawToDigiR::FillLookUps | ( | std::string | write = "" | ) |
Definition at line 172 of file CbmTrdRawToDigiR.cxx.
References CalcResponse(), CbmTrdDigi::Clk(), CbmTrdCheckUtil::CreateHist(), fCalibration, fDebug, fDynamicRange, fElookup, fElookupAsym, fElookupSmall, fEReco, fExtrapolate, fHighBin, CbmTrdCheckUtil::Fill(), fLookUp, fMaxBin, fMinBin, fQA, fSampleMask, CbmTrdCheckUtil::GetCont2D(), i, CbmTrdDigi::kSPADIC, max(), and WriteMaps().
Double_t CbmTrdRawToDigiR::GetCharge | ( | std::vector< Int_t > | samples, |
Int_t | shift = -1 |
||
) |
Definition at line 551 of file CbmTrdRawToDigiR.cxx.
References fElookupA, fElookupAsym, fElookupSmall, fHighBin, fLookUp, fMaxBin, fMinBin, fReadFile, fSampleMask, and i.
Referenced by CbmTrdModuleSimR::ProcessPulseBuffer().
|
inline |
Definition at line 69 of file CbmTrdRawToDigiR.h.
References fSet.
Referenced by CbmTrdModuleSimR::MakeDigi().
Float_t CbmTrdRawToDigiR::GetTimeShift | ( | std::vector< Int_t > | samples | ) |
Definition at line 533 of file CbmTrdRawToDigiR.cxx.
References fElookupA, fElookupAsym, fHighBin, fLookUp, fMaxBin, fMinBin, and fReadFile.
Referenced by CbmTrdModuleSimR::ProcessPulseBuffer().
void CbmTrdRawToDigiR::Init | ( | ) |
Definition at line 143 of file CbmTrdRawToDigiR.cxx.
References CalcResponse(), CbmTrdDigi::Clk(), fCalibration, fDebug, fEReco, FillLookUps(), fLookUp, fReadFile, fSampleMask, fWriteFile, i, CbmTrdDigi::kSPADIC, and ReadMaps().
Referenced by CbmTrdModuleSimR::MakeDigi().
CbmTrdDigi * CbmTrdRawToDigiR::MakeDigi | ( | std::vector< Int_t > | samples, |
Int_t | channel, | ||
Int_t | uniqueModuleId, | ||
ULong64_t | time, | ||
Bool_t | FN = false |
||
) |
Definition at line 492 of file CbmTrdRawToDigiR.cxx.
References fElookup, fElookupA, fElookupAsym, fElookupSmall, fHighBin, fLookUp, fMaxBin, fMinBin, fReadFile, fSampleMask, and i.
Referenced by CbmTrdModuleSimR::ProcessPulseBuffer().
|
private |
void CbmTrdRawToDigiR::ReadMaps | ( | std::string | file = "" | ) |
Definition at line 423 of file CbmTrdRawToDigiR.cxx.
References CbmTrdCheckUtil::CreateHist(), f, fDebug, fElookupA, fElookupSmall, CbmTrdCheckUtil::Fill(), fLookUp, fQA, x, and y.
Referenced by Init().
|
inline |
Definition at line 48 of file CbmTrdRawToDigiR.h.
References fCalibration.
Referenced by CbmTrdRawToDigiR(), and CbmTrdModuleSimR::MakeDigi().
|
inline |
Definition at line 65 of file CbmTrdRawToDigiR.h.
References fDebug.
|
inline |
Definition at line 59 of file CbmTrdRawToDigiR.h.
References fLookUp.
|
inline |
Definition at line 56 of file CbmTrdRawToDigiR.h.
References fMaxBin.
Referenced by CbmTrdModuleSimR::MakeDigi().
|
inline |
Definition at line 57 of file CbmTrdRawToDigiR.h.
References fMinBin.
Referenced by CbmTrdModuleSimR::MakeDigi().
void CbmTrdRawToDigiR::SetPars | ( | Int_t | mode, |
Double_t | cal, | ||
Double_t | tau, | ||
std::vector< Int_t > | mask | ||
) |
Definition at line 77 of file CbmTrdRawToDigiR.cxx.
References CalcResponse(), CbmTrdDigi::Clk(), fCalibration, fDebug, fEReco, FillLookUps(), fLookUp, fMaxBin, fSampleMask, fTau, i, and CbmTrdDigi::kSPADIC.
Referenced by CbmTrdRawToDigiR().
|
inline |
Definition at line 58 of file CbmTrdRawToDigiR.h.
References fPresamples.
Referenced by CbmTrdModuleSimR::MakeDigi().
|
inline |
Definition at line 66 of file CbmTrdRawToDigiR.h.
References fQA.
Referenced by CbmTrdModuleSimR::MakeDigi().
|
inline |
Definition at line 54 of file CbmTrdRawToDigiR.h.
References fReadFile.
Referenced by CbmTrdRawToDigiR(), and CbmTrdModuleSimR::MakeDigi().
|
inline |
Definition at line 52 of file CbmTrdRawToDigiR.h.
References fSampleMask.
Referenced by CbmTrdRawToDigiR(), and CbmTrdModuleSimR::MakeDigi().
|
inline |
Definition at line 50 of file CbmTrdRawToDigiR.h.
References fRecoMode.
Referenced by CbmTrdRawToDigiR().
|
inline |
Definition at line 53 of file CbmTrdRawToDigiR.h.
References fSet.
Referenced by CbmTrdModuleSimR::MakeDigi().
|
inline |
Definition at line 51 of file CbmTrdRawToDigiR.h.
References fShapingOrder.
Referenced by CbmTrdModuleSimR::MakeDigi().
|
inline |
Definition at line 49 of file CbmTrdRawToDigiR.h.
References fTau.
Referenced by CbmTrdRawToDigiR(), and CbmTrdModuleSimR::MakeDigi().
|
inline |
Definition at line 55 of file CbmTrdRawToDigiR.h.
References fWriteFile.
|
inline |
Definition at line 63 of file CbmTrdRawToDigiR.h.
Referenced by FillLookUps().
|
private |
Definition at line 75 of file CbmTrdRawToDigiR.h.
Referenced by FillLookUps(), Init(), SetCalibration(), and SetPars().
|
private |
Definition at line 97 of file CbmTrdRawToDigiR.h.
Referenced by FillLookUps(), Init(), ReadMaps(), SetDebug(), and SetPars().
|
private |
Definition at line 82 of file CbmTrdRawToDigiR.h.
Referenced by FillLookUps().
|
private |
Definition at line 110 of file CbmTrdRawToDigiR.h.
Referenced by FillLookUps(), and MakeDigi().
|
private |
Definition at line 108 of file CbmTrdRawToDigiR.h.
Referenced by GetCharge(), GetTimeShift(), MakeDigi(), and ReadMaps().
|
private |
Definition at line 107 of file CbmTrdRawToDigiR.h.
Referenced by FillLookUps(), GetCharge(), GetTimeShift(), and MakeDigi().
|
private |
Definition at line 109 of file CbmTrdRawToDigiR.h.
|
private |
Definition at line 106 of file CbmTrdRawToDigiR.h.
Referenced by FillLookUps(), GetCharge(), MakeDigi(), and ReadMaps().
|
private |
Definition at line 77 of file CbmTrdRawToDigiR.h.
Referenced by FillLookUps(), Init(), and SetPars().
|
private |
|
private |
Definition at line 83 of file CbmTrdRawToDigiR.h.
Referenced by FillLookUps(), GetCharge(), GetTimeShift(), and MakeDigi().
|
private |
Definition at line 95 of file CbmTrdRawToDigiR.h.
Referenced by FillLookUps(), GetCharge(), GetTimeShift(), Init(), MakeDigi(), ReadMaps(), SetLookup(), and SetPars().
|
private |
Definition at line 87 of file CbmTrdRawToDigiR.h.
Referenced by FillLookUps(), GetCharge(), GetTimeShift(), MakeDigi(), SetMaxBin(), and SetPars().
|
private |
Definition at line 88 of file CbmTrdRawToDigiR.h.
Referenced by FillLookUps(), GetCharge(), GetTimeShift(), MakeDigi(), and SetMinBin().
|
private |
|
private |
Definition at line 104 of file CbmTrdRawToDigiR.h.
Referenced by FillLookUps(), ReadMaps(), and SetQA().
|
private |
Definition at line 100 of file CbmTrdRawToDigiR.h.
Referenced by GetCharge(), GetTimeShift(), Init(), MakeDigi(), and SetReadFile().
|
private |
Definition at line 80 of file CbmTrdRawToDigiR.h.
Referenced by CbmTrdRawToDigiR(), and SetRecoMode().
|
private |
Definition at line 92 of file CbmTrdRawToDigiR.h.
Referenced by CbmTrdRawToDigiR(), FillLookUps(), GetCharge(), Init(), MakeDigi(), SetPars(), and SetRecoMask().
|
private |
Definition at line 99 of file CbmTrdRawToDigiR.h.
Referenced by GetSetter(), and SetSetter().
|
private |
Definition at line 81 of file CbmTrdRawToDigiR.h.
Referenced by CalcResponse(), and SetShapingOrder().
|
private |
Definition at line 79 of file CbmTrdRawToDigiR.h.
Referenced by CalcResponse(), SetPars(), and SetTau().
|
private |
Definition at line 101 of file CbmTrdRawToDigiR.h.
Referenced by Init(), and SetWriteFile().