CbmRoot
Loading...
Searching...
No Matches
CbmTrdRawToDigiR Class Reference

#include <CbmTrdRawToDigiR.h>

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

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.
 
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 = 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 = ""
 
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 22 of file CbmTrdRawToDigiR.h.

Constructor & Destructor Documentation

◆ CbmTrdRawToDigiR() [1/5]

CbmTrdRawToDigiR::CbmTrdRawToDigiR ( )

default Constructor with messages

Definition at line 27 of file CbmTrdRawToDigiR.cxx.

◆ CbmTrdRawToDigiR() [2/5]

CbmTrdRawToDigiR::CbmTrdRawToDigiR ( std::string readfile)

Definition at line 39 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 53 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 70 of file CbmTrdRawToDigiR.cxx.

References fRecoMode, SetCalibration(), SetPars(), SetRecoMask(), and SetTau().

◆ ~CbmTrdRawToDigiR()

virtual CbmTrdRawToDigiR::~CbmTrdRawToDigiR ( )
inlinevirtual

Destructor.

Definition at line 41 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 503 of file CbmTrdRawToDigiR.cxx.

References fShapingOrder, and fTau.

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

◆ ClassDef()

CbmTrdRawToDigiR::ClassDef ( CbmTrdRawToDigiR ,
1  )
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 71 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 = "")

◆ SetCalibration()

void CbmTrdRawToDigiR::SetCalibration ( Double_t cal)
inline

Definition at line 50 of file CbmTrdRawToDigiR.h.

References fCalibration.

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

◆ SetDebug()

void CbmTrdRawToDigiR::SetDebug ( Bool_t debug)
inline

Definition at line 67 of file CbmTrdRawToDigiR.h.

References fDebug.

◆ SetLookup()

void CbmTrdRawToDigiR::SetLookup ( Int_t mode)
inline

Definition at line 61 of file CbmTrdRawToDigiR.h.

References fLookUp.

◆ SetMaxBin()

void CbmTrdRawToDigiR::SetMaxBin ( Int_t bin)
inline

Definition at line 58 of file CbmTrdRawToDigiR.h.

References fMaxBin.

Referenced by CbmTrdModuleSimR::MakeDigi().

◆ SetMinBin()

void CbmTrdRawToDigiR::SetMinBin ( Int_t bin)
inline

Definition at line 59 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 60 of file CbmTrdRawToDigiR.h.

References fPresamples.

Referenced by CbmTrdModuleSimR::MakeDigi().

◆ SetQA()

void CbmTrdRawToDigiR::SetQA ( CbmTrdCheckUtil * qa)
inline

Definition at line 68 of file CbmTrdRawToDigiR.h.

References fQA.

Referenced by CbmTrdModuleSimR::MakeDigi().

◆ SetReadFile()

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

Definition at line 56 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 54 of file CbmTrdRawToDigiR.h.

References fSampleMask.

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

◆ SetRecoMode()

void CbmTrdRawToDigiR::SetRecoMode ( Int_t mode)
inline

Definition at line 52 of file CbmTrdRawToDigiR.h.

References fRecoMode.

Referenced by CbmTrdRawToDigiR().

◆ SetSetter()

void CbmTrdRawToDigiR::SetSetter ( Bool_t set)
inline

Definition at line 55 of file CbmTrdRawToDigiR.h.

References fSet.

Referenced by CbmTrdModuleSimR::MakeDigi().

◆ SetShapingOrder()

void CbmTrdRawToDigiR::SetShapingOrder ( Int_t order)
inline

Definition at line 53 of file CbmTrdRawToDigiR.h.

References fShapingOrder.

Referenced by CbmTrdModuleSimR::MakeDigi().

◆ SetTau()

void CbmTrdRawToDigiR::SetTau ( Double_t tau)
inline

Definition at line 51 of file CbmTrdRawToDigiR.h.

References fTau.

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

◆ SetWriteFile()

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

Definition at line 57 of file CbmTrdRawToDigiR.h.

References fWriteFile.

◆ WriteMaps()

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

Definition at line 65 of file CbmTrdRawToDigiR.h.

Referenced by FillLookUps().

Member Data Documentation

◆ fCalibration

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

Definition at line 77 of file CbmTrdRawToDigiR.h.

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

◆ fDebug

Bool_t CbmTrdRawToDigiR::fDebug = false
private

Definition at line 93 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 104 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 102 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 101 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 103 of file CbmTrdRawToDigiR.h.

◆ fElookupSmall

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

Definition at line 100 of file CbmTrdRawToDigiR.h.

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

◆ fEReco

Double_t CbmTrdRawToDigiR::fEReco = 0.
private

Definition at line 78 of file CbmTrdRawToDigiR.h.

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

◆ fExtrapolate

Float_t CbmTrdRawToDigiR::fExtrapolate = .2
private

Definition at line 87 of file CbmTrdRawToDigiR.h.

Referenced by FillLookUps().

◆ fHighBin

Int_t CbmTrdRawToDigiR::fHighBin = 3
private

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 85 of file CbmTrdRawToDigiR.h.

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

◆ fMinBin

Int_t CbmTrdRawToDigiR::fMinBin = 1 + fPresamples
private

Definition at line 86 of file CbmTrdRawToDigiR.h.

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

◆ fPresamples

Int_t CbmTrdRawToDigiR::fPresamples = 2
private

Definition at line 84 of file CbmTrdRawToDigiR.h.

Referenced by SetPresamples().

◆ fQA

CbmTrdCheckUtil* CbmTrdRawToDigiR::fQA = NULL
private

Definition at line 98 of file CbmTrdRawToDigiR.h.

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

◆ fReadFile

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

Definition at line 95 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 94 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

Definition at line 96 of file CbmTrdRawToDigiR.h.

Referenced by Init(), and SetWriteFile().


The documentation for this class was generated from the following files: