CbmRoot
CbmTrdRawToDigiR Class Reference

#include <CbmTrdRawToDigiR.h>

Inheritance diagram for CbmTrdRawToDigiR:
[legend]
Collaboration diagram for CbmTrdRawToDigiR:
[legend]

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...
 
CbmTrdDigiMakeDigi (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
 
CbmTrdCheckUtilfQA = 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
 

Detailed Description

Definition at line 17 of file CbmTrdRawToDigiR.h.

Constructor & Destructor Documentation

◆ CbmTrdRawToDigiR() [1/5]

CbmTrdRawToDigiR::CbmTrdRawToDigiR ( )

default Constructor with messages

Definition at line 21 of file CbmTrdRawToDigiR.cxx.

◆ CbmTrdRawToDigiR() [2/5]

CbmTrdRawToDigiR::CbmTrdRawToDigiR ( std::string  readfile)

Definition at line 31 of file CbmTrdRawToDigiR.cxx.

References SetReadFile().

◆ CbmTrdRawToDigiR() [3/5]

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() [4/5]

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().

◆ ~CbmTrdRawToDigiR()

virtual CbmTrdRawToDigiR::~CbmTrdRawToDigiR ( )
inlinevirtual

Destructor.

Definition at line 36 of file CbmTrdRawToDigiR.h.

◆ CbmTrdRawToDigiR() [5/5]

CbmTrdRawToDigiR::CbmTrdRawToDigiR ( const CbmTrdRawToDigiR )
private

Member Function Documentation

◆ CalcResponse()

Double_t CbmTrdRawToDigiR::CalcResponse ( Double_t  t)
private

Definition at line 599 of file CbmTrdRawToDigiR.cxx.

References fShapingOrder, and fTau.

Referenced by FillLookUps(), Init(), and SetPars().

◆ ClassDef()

CbmTrdRawToDigiR::ClassDef ( CbmTrdRawToDigiR  ,
 
)
private

◆ FillLookUps()

◆ GetCharge()

Double_t CbmTrdRawToDigiR::GetCharge ( std::vector< Int_t >  samples,
Int_t  shift = -1 
)

◆ GetSetter()

Bool_t CbmTrdRawToDigiR::GetSetter ( )
inline

Definition at line 69 of file CbmTrdRawToDigiR.h.

References fSet.

Referenced by CbmTrdModuleSimR::MakeDigi().

◆ GetTimeShift()

Float_t CbmTrdRawToDigiR::GetTimeShift ( std::vector< Int_t >  samples)

◆ Init()

◆ MakeDigi()

CbmTrdDigi * CbmTrdRawToDigiR::MakeDigi ( std::vector< Int_t >  samples,
Int_t  channel,
Int_t  uniqueModuleId,
ULong64_t  time,
Bool_t  FN = false 
)

◆ operator=()

CbmTrdRawToDigiR CbmTrdRawToDigiR::operator= ( const CbmTrdRawToDigiR )
private

◆ ReadMaps()

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().

◆ SetCalibration()

void CbmTrdRawToDigiR::SetCalibration ( Double_t  cal)
inline

Definition at line 48 of file CbmTrdRawToDigiR.h.

References fCalibration.

Referenced by CbmTrdRawToDigiR(), and CbmTrdModuleSimR::MakeDigi().

◆ SetDebug()

void CbmTrdRawToDigiR::SetDebug ( Bool_t  debug)
inline

Definition at line 65 of file CbmTrdRawToDigiR.h.

References fDebug.

◆ SetLookup()

void CbmTrdRawToDigiR::SetLookup ( Int_t  mode)
inline

Definition at line 59 of file CbmTrdRawToDigiR.h.

References fLookUp.

◆ SetMaxBin()

void CbmTrdRawToDigiR::SetMaxBin ( Int_t  bin)
inline

Definition at line 56 of file CbmTrdRawToDigiR.h.

References fMaxBin.

Referenced by CbmTrdModuleSimR::MakeDigi().

◆ SetMinBin()

void CbmTrdRawToDigiR::SetMinBin ( Int_t  bin)
inline

Definition at line 57 of file CbmTrdRawToDigiR.h.

References fMinBin.

Referenced by CbmTrdModuleSimR::MakeDigi().

◆ SetPars()

void CbmTrdRawToDigiR::SetPars ( Int_t  mode,
Double_t  cal,
Double_t  tau,
std::vector< Int_t >  mask 
)

◆ SetPresamples()

void CbmTrdRawToDigiR::SetPresamples ( Int_t  pre)
inline

Definition at line 58 of file CbmTrdRawToDigiR.h.

References fPresamples.

Referenced by CbmTrdModuleSimR::MakeDigi().

◆ SetQA()

void CbmTrdRawToDigiR::SetQA ( CbmTrdCheckUtil qa)
inline

Definition at line 66 of file CbmTrdRawToDigiR.h.

References fQA.

Referenced by CbmTrdModuleSimR::MakeDigi().

◆ SetReadFile()

void CbmTrdRawToDigiR::SetReadFile ( std::string  file)
inline

Definition at line 54 of file CbmTrdRawToDigiR.h.

References fReadFile.

Referenced by CbmTrdRawToDigiR(), and CbmTrdModuleSimR::MakeDigi().

◆ SetRecoMask()

void CbmTrdRawToDigiR::SetRecoMask ( std::vector< Int_t >  mask)
inline

Definition at line 52 of file CbmTrdRawToDigiR.h.

References fSampleMask.

Referenced by CbmTrdRawToDigiR(), and CbmTrdModuleSimR::MakeDigi().

◆ SetRecoMode()

void CbmTrdRawToDigiR::SetRecoMode ( Int_t  mode)
inline

Definition at line 50 of file CbmTrdRawToDigiR.h.

References fRecoMode.

Referenced by CbmTrdRawToDigiR().

◆ SetSetter()

void CbmTrdRawToDigiR::SetSetter ( Bool_t  set)
inline

Definition at line 53 of file CbmTrdRawToDigiR.h.

References fSet.

Referenced by CbmTrdModuleSimR::MakeDigi().

◆ SetShapingOrder()

void CbmTrdRawToDigiR::SetShapingOrder ( Int_t  order)
inline

Definition at line 51 of file CbmTrdRawToDigiR.h.

References fShapingOrder.

Referenced by CbmTrdModuleSimR::MakeDigi().

◆ SetTau()

void CbmTrdRawToDigiR::SetTau ( Double_t  tau)
inline

Definition at line 49 of file CbmTrdRawToDigiR.h.

References fTau.

Referenced by CbmTrdRawToDigiR(), and CbmTrdModuleSimR::MakeDigi().

◆ SetWriteFile()

void CbmTrdRawToDigiR::SetWriteFile ( std::string  file)
inline

Definition at line 55 of file CbmTrdRawToDigiR.h.

References fWriteFile.

◆ WriteMaps()

void CbmTrdRawToDigiR::WriteMaps ( std::string  file = "")
inline

Definition at line 63 of file CbmTrdRawToDigiR.h.

Referenced by FillLookUps().

Member Data Documentation

◆ fCalibration

Double_t CbmTrdRawToDigiR::fCalibration
private
Initial value:
=
35. / 1.1107 / 0.8

Definition at line 75 of file CbmTrdRawToDigiR.h.

Referenced by FillLookUps(), Init(), SetCalibration(), and SetPars().

◆ fDebug

Bool_t CbmTrdRawToDigiR::fDebug
private
Initial value:
=
false

Definition at line 97 of file CbmTrdRawToDigiR.h.

Referenced by FillLookUps(), Init(), ReadMaps(), SetDebug(), and SetPars().

◆ fDynamicRange

Int_t CbmTrdRawToDigiR::fDynamicRange = 500
private

Definition at line 82 of file CbmTrdRawToDigiR.h.

Referenced by FillLookUps().

◆ fElookup

std::map<Int_t, Float_t> CbmTrdRawToDigiR::fElookup
private

Definition at line 110 of file CbmTrdRawToDigiR.h.

Referenced by FillLookUps(), and MakeDigi().

◆ fElookupA

std::map<Int_t, std::map<Int_t, Int_t> > CbmTrdRawToDigiR::fElookupA
private

Definition at line 108 of file CbmTrdRawToDigiR.h.

Referenced by GetCharge(), GetTimeShift(), MakeDigi(), and ReadMaps().

◆ fElookupAsym

std::map<Int_t, std::map<Int_t, std::map<Int_t, Int_t> > > CbmTrdRawToDigiR::fElookupAsym
private

Definition at line 107 of file CbmTrdRawToDigiR.h.

Referenced by FillLookUps(), GetCharge(), GetTimeShift(), and MakeDigi().

◆ fElookupBig

std::map<Int_t, std::map<Int_t, std::map<Int_t, Int_t> > > CbmTrdRawToDigiR::fElookupBig
private

Definition at line 109 of file CbmTrdRawToDigiR.h.

◆ fElookupSmall

std::map<Int_t, std::map<Int_t, Float_t> > CbmTrdRawToDigiR::fElookupSmall
private

Definition at line 106 of file CbmTrdRawToDigiR.h.

Referenced by FillLookUps(), GetCharge(), MakeDigi(), and ReadMaps().

◆ fEReco

Double_t CbmTrdRawToDigiR::fEReco
private
Initial value:
=
0.

Definition at line 77 of file CbmTrdRawToDigiR.h.

Referenced by FillLookUps(), Init(), and SetPars().

◆ fExtrapolate

Float_t CbmTrdRawToDigiR::fExtrapolate
private
Initial value:
=
.2

Definition at line 90 of file CbmTrdRawToDigiR.h.

Referenced by FillLookUps().

◆ fHighBin

Int_t CbmTrdRawToDigiR::fHighBin
private
Initial value:
=
3

Definition at line 83 of file CbmTrdRawToDigiR.h.

Referenced by FillLookUps(), GetCharge(), GetTimeShift(), and MakeDigi().

◆ fLookUp

Int_t CbmTrdRawToDigiR::fLookUp = 3
private

◆ fMaxBin

Int_t CbmTrdRawToDigiR::fMaxBin = 2 + fPresamples
private

Definition at line 87 of file CbmTrdRawToDigiR.h.

Referenced by FillLookUps(), GetCharge(), GetTimeShift(), MakeDigi(), SetMaxBin(), and SetPars().

◆ fMinBin

Int_t CbmTrdRawToDigiR::fMinBin
private
Initial value:

Definition at line 88 of file CbmTrdRawToDigiR.h.

Referenced by FillLookUps(), GetCharge(), GetTimeShift(), MakeDigi(), and SetMinBin().

◆ fPresamples

Int_t CbmTrdRawToDigiR::fPresamples
private
Initial value:
=
2

Definition at line 85 of file CbmTrdRawToDigiR.h.

Referenced by SetPresamples().

◆ fQA

CbmTrdCheckUtil* CbmTrdRawToDigiR::fQA = NULL
private

Definition at line 104 of file CbmTrdRawToDigiR.h.

Referenced by FillLookUps(), ReadMaps(), and SetQA().

◆ fReadFile

std::string CbmTrdRawToDigiR::fReadFile = ""
private

Definition at line 100 of file CbmTrdRawToDigiR.h.

Referenced by GetCharge(), GetTimeShift(), Init(), MakeDigi(), and SetReadFile().

◆ fRecoMode

Int_t CbmTrdRawToDigiR::fRecoMode = 1
private

Definition at line 80 of file CbmTrdRawToDigiR.h.

Referenced by CbmTrdRawToDigiR(), and SetRecoMode().

◆ fSampleMask

std::vector<Int_t> CbmTrdRawToDigiR::fSampleMask
private

◆ fSet

Bool_t CbmTrdRawToDigiR::fSet = false
private

Definition at line 99 of file CbmTrdRawToDigiR.h.

Referenced by GetSetter(), and SetSetter().

◆ fShapingOrder

Int_t CbmTrdRawToDigiR::fShapingOrder = 1
private

Definition at line 81 of file CbmTrdRawToDigiR.h.

Referenced by CalcResponse(), and SetShapingOrder().

◆ fTau

Double_t CbmTrdRawToDigiR::fTau = 120
private

Definition at line 79 of file CbmTrdRawToDigiR.h.

Referenced by CalcResponse(), SetPars(), and SetTau().

◆ fWriteFile

std::string CbmTrdRawToDigiR::fWriteFile
private
Initial value:
=
""

Definition at line 101 of file CbmTrdRawToDigiR.h.

Referenced by Init(), and SetWriteFile().


The documentation for this class was generated from the following files:
CbmTrdRawToDigiR::fPresamples
Int_t fPresamples
Definition: CbmTrdRawToDigiR.h:85