CbmRoot
|
#include <CbmTrdRawToDigiR.h>
Public Member Functions | |
CbmTrdRawToDigiR () | |
default Constructor with messages | |
CbmTrdRawToDigiR (std::string readfile) | |
CbmTrdRawToDigiR (Double_t cal, Double_t tau, Int_t mode) | |
Constructor with messages and preset reconstruction mode. | |
CbmTrdRawToDigiR (Double_t cal, Double_t tau, std::vector< Int_t > mask) | |
Constructor with messages and selection mask. | |
virtual | ~CbmTrdRawToDigiR () |
Destructor. | |
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 = 35. / 1.1107 / 0.8 |
Double_t | fEReco = 0. |
Double_t | fTau = 120 |
Int_t | fRecoMode = 1 |
Int_t | fShapingOrder = 1 |
Int_t | fDynamicRange = 500 |
Int_t | fHighBin = 3 |
Int_t | fPresamples = 2 |
Int_t | fMaxBin = 2 + fPresamples |
Int_t | fMinBin = 1 + fPresamples |
Float_t | fExtrapolate = .2 |
std::vector< Int_t > | fSampleMask |
Int_t | fLookUp = 3 |
Bool_t | fDebug = false |
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 22 of file CbmTrdRawToDigiR.h.
CbmTrdRawToDigiR::CbmTrdRawToDigiR | ( | ) |
default Constructor with messages
Definition at line 27 of file CbmTrdRawToDigiR.cxx.
CbmTrdRawToDigiR::CbmTrdRawToDigiR | ( | std::string | readfile | ) |
Definition at line 39 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 53 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 70 of file CbmTrdRawToDigiR.cxx.
References fRecoMode, SetCalibration(), SetPars(), SetRecoMask(), and SetTau().
|
inlinevirtual |
Destructor.
Definition at line 41 of file CbmTrdRawToDigiR.h.
|
private |
|
private |
Definition at line 503 of file CbmTrdRawToDigiR.cxx.
References fShapingOrder, and fTau.
Referenced by FillLookUps(), Init(), and SetPars().
|
private |
void CbmTrdRawToDigiR::FillLookUps | ( | std::string | write = "" | ) |
Definition at line 169 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(), CbmTrdDigi::kSPADIC, max(), and WriteMaps().
Double_t CbmTrdRawToDigiR::GetCharge | ( | std::vector< Int_t > | samples, |
Int_t | shift = -1 ) |
Definition at line 462 of file CbmTrdRawToDigiR.cxx.
References fElookupA, fElookupAsym, fElookupSmall, fHighBin, fLookUp, fMaxBin, fMinBin, fReadFile, and fSampleMask.
Referenced by CbmTrdModuleSimR::ProcessPulseBuffer().
|
inline |
Definition at line 71 of file CbmTrdRawToDigiR.h.
References fSet.
Referenced by CbmTrdModuleSimR::MakeDigi().
Float_t CbmTrdRawToDigiR::GetTimeShift | ( | std::vector< Int_t > | samples | ) |
Definition at line 444 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, 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 412 of file CbmTrdRawToDigiR.cxx.
References fElookup, fElookupA, fElookupAsym, fElookupSmall, fHighBin, fLookUp, fMaxBin, fMinBin, fReadFile, fSampleMask, and CbmTrdDigi::kNTrg.
Referenced by CbmTrdModuleSimR::ProcessPulseBuffer().
|
private |
void CbmTrdRawToDigiR::ReadMaps | ( | std::string | file = "" | ) |
Definition at line 352 of file CbmTrdRawToDigiR.cxx.
References CbmTrdCheckUtil::CreateHist(), fDebug, fElookupA, fElookupSmall, CbmTrdCheckUtil::Fill(), fLookUp, fQA, x, and y.
Referenced by Init().
|
inline |
Definition at line 50 of file CbmTrdRawToDigiR.h.
References fCalibration.
Referenced by CbmTrdRawToDigiR(), CbmTrdRawToDigiR(), and CbmTrdModuleSimR::MakeDigi().
|
inline |
Definition at line 67 of file CbmTrdRawToDigiR.h.
References fDebug.
|
inline |
Definition at line 61 of file CbmTrdRawToDigiR.h.
References fLookUp.
|
inline |
Definition at line 58 of file CbmTrdRawToDigiR.h.
References fMaxBin.
Referenced by CbmTrdModuleSimR::MakeDigi().
|
inline |
Definition at line 59 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 86 of file CbmTrdRawToDigiR.cxx.
References CalcResponse(), CbmTrdDigi::Clk(), fCalibration, fDebug, fEReco, FillLookUps(), fLookUp, fMaxBin, fSampleMask, fTau, and CbmTrdDigi::kSPADIC.
Referenced by CbmTrdRawToDigiR(), and CbmTrdRawToDigiR().
|
inline |
Definition at line 60 of file CbmTrdRawToDigiR.h.
References fPresamples.
Referenced by CbmTrdModuleSimR::MakeDigi().
|
inline |
Definition at line 68 of file CbmTrdRawToDigiR.h.
References fQA.
Referenced by CbmTrdModuleSimR::MakeDigi().
|
inline |
Definition at line 56 of file CbmTrdRawToDigiR.h.
References fReadFile.
Referenced by CbmTrdRawToDigiR(), and CbmTrdModuleSimR::MakeDigi().
|
inline |
Definition at line 54 of file CbmTrdRawToDigiR.h.
References fSampleMask.
Referenced by CbmTrdRawToDigiR(), and CbmTrdModuleSimR::MakeDigi().
|
inline |
Definition at line 52 of file CbmTrdRawToDigiR.h.
References fRecoMode.
Referenced by CbmTrdRawToDigiR().
|
inline |
Definition at line 55 of file CbmTrdRawToDigiR.h.
References fSet.
Referenced by CbmTrdModuleSimR::MakeDigi().
|
inline |
Definition at line 53 of file CbmTrdRawToDigiR.h.
References fShapingOrder.
Referenced by CbmTrdModuleSimR::MakeDigi().
|
inline |
Definition at line 51 of file CbmTrdRawToDigiR.h.
References fTau.
Referenced by CbmTrdRawToDigiR(), CbmTrdRawToDigiR(), and CbmTrdModuleSimR::MakeDigi().
|
inline |
Definition at line 57 of file CbmTrdRawToDigiR.h.
References fWriteFile.
|
inline |
Definition at line 65 of file CbmTrdRawToDigiR.h.
Referenced by FillLookUps().
|
private |
Definition at line 77 of file CbmTrdRawToDigiR.h.
Referenced by FillLookUps(), Init(), SetCalibration(), and SetPars().
|
private |
Definition at line 93 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 104 of file CbmTrdRawToDigiR.h.
Referenced by FillLookUps(), and MakeDigi().
|
private |
Definition at line 102 of file CbmTrdRawToDigiR.h.
Referenced by GetCharge(), GetTimeShift(), MakeDigi(), and ReadMaps().
|
private |
Definition at line 101 of file CbmTrdRawToDigiR.h.
Referenced by FillLookUps(), GetCharge(), GetTimeShift(), and MakeDigi().
|
private |
Definition at line 103 of file CbmTrdRawToDigiR.h.
|
private |
Definition at line 100 of file CbmTrdRawToDigiR.h.
Referenced by FillLookUps(), GetCharge(), MakeDigi(), and ReadMaps().
|
private |
Definition at line 78 of file CbmTrdRawToDigiR.h.
Referenced by FillLookUps(), Init(), and SetPars().
|
private |
Definition at line 87 of file CbmTrdRawToDigiR.h.
Referenced by FillLookUps().
|
private |
Definition at line 83 of file CbmTrdRawToDigiR.h.
Referenced by FillLookUps(), GetCharge(), GetTimeShift(), and MakeDigi().
|
private |
Definition at line 91 of file CbmTrdRawToDigiR.h.
Referenced by FillLookUps(), GetCharge(), GetTimeShift(), Init(), MakeDigi(), ReadMaps(), SetLookup(), and SetPars().
|
private |
Definition at line 85 of file CbmTrdRawToDigiR.h.
Referenced by FillLookUps(), GetCharge(), GetTimeShift(), MakeDigi(), SetMaxBin(), and SetPars().
|
private |
Definition at line 86 of file CbmTrdRawToDigiR.h.
Referenced by FillLookUps(), GetCharge(), GetTimeShift(), MakeDigi(), and SetMinBin().
|
private |
Definition at line 84 of file CbmTrdRawToDigiR.h.
Referenced by SetPresamples().
|
private |
Definition at line 98 of file CbmTrdRawToDigiR.h.
Referenced by FillLookUps(), ReadMaps(), and SetQA().
|
private |
Definition at line 95 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 88 of file CbmTrdRawToDigiR.h.
Referenced by CbmTrdRawToDigiR(), FillLookUps(), GetCharge(), Init(), MakeDigi(), SetPars(), and SetRecoMask().
|
private |
Definition at line 94 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 96 of file CbmTrdRawToDigiR.h.
Referenced by Init(), and SetWriteFile().