CbmRoot
|
Extend the TRD(2D) digi class to incorporate FEE calibration. More...
#include <CbmTrdDigiRec.h>
Public Types | |
enum class | eCbmTrdAsicType : size_t { kSPADIC = 0 , kFASP , kNTypes } |
enum class | eTriggerType : int32_t { kBeginTriggerTypes = 0 , kSelf = kBeginTriggerTypes , kNeighbor , kMulti , kTrg2 , kNTrg } |
enum | CbmTrdDigiDef { kFlag1 = 0 , kFlag2 , kFlag3 , kNflags } |
Public Member Functions | |
CbmTrdDigiRec () | |
Default constructor. | |
CbmTrdDigiRec (const CbmTrdDigi &d, Double_t *g=NULL, Double_t *t=NULL) | |
Wrap CbmTrdDigi constructor. | |
virtual | ~CbmTrdDigiRec () |
Double_t | GetTiltCharge (Bool_t &on) const |
Return calibrated tilt signal. | |
Double_t | GetTiltTime () const |
Return calibrated tilt time [ns]. | |
Double_t | GetRectCharge (Bool_t &on) const |
Return calibrated rect signal. | |
Double_t | GetRectTime () const |
Return calibrated rect time [ns]. | |
Double_t | GetCharge (Int_t typ, Bool_t &on) const |
Return calibrated signal. | |
Double_t | GetTime (Int_t typ) const |
Return calibrated time. | |
Bool_t | HasRectOvf () const |
Bool_t | HasTiltOvf () const |
void | Init (Double_t g[2], Double_t t[3]) |
Init FEE gain and time walk corrections. | |
void | AddCharge (CbmTrdDigi *sd, double f) |
Charge addition in case of pile-up (FASP simulation only) | |
void | AddCharge (double c, double f=1) |
Charge addition in case of pile-up (SPADIC simulation only) | |
int32_t | GetAddress () const |
Address getter for module in the format defined by CbmTrdDigi (format of CbmTrdAddress can be accessed via CbmTrdParModDigi) | |
int32_t | GetAddressChannel () const |
Getter read-out id. | |
int32_t | GetAddressModule () const |
Getter module address in the experiment. | |
double | GetCharge () const |
Common purpose charge getter. | |
double | GetCharge (double &tilt, int32_t &dt) const |
Charge getter for FASP. | |
double | GetChargeError () const |
Charge error parametrisation. SPADIC specific see GetErrorClass() | |
int32_t | GetErrorClass () const |
Channel status. SPADIC specific see LUT. | |
double | GetTime () const |
Getter for physical time [ns]. Accounts for clock representation of each ASIC. In SPADIC case physical time is already stored in fTime. | |
uint64_t | GetTimeDAQ () const |
Getter for global DAQ time [clk]. Differs for each ASIC. In FASP case DAQ time is already stored in fTime. | |
int32_t | GetTriggerType () const |
Channel trigger type. SPADIC specific see CbmTrdTriggerType. | |
eCbmTrdAsicType | GetType () const |
Channel FEE SPADIC/FASP according to CbmTrdAsicType. | |
bool | IsFASP () const |
Shortcut to check if FASP digi. | |
bool | IsMasked () const |
Query digi mask (FASP only) | |
bool | IsPileUp () const |
Query digi pile-up (FASP only) | |
bool | IsFlagged (const int32_t iflag) const |
Query flag status (generic) | |
int32_t | Layer () const |
int32_t | Module () const |
void | SetAddress (const int32_t a) |
Module address setter for digi. | |
void | SetAddressModule (const int32_t a) |
Alias for SetAddress() | |
void | SetAsic (eCbmTrdAsicType ty=eCbmTrdAsicType::kSPADIC) |
void | SetCharge (float c) |
Charge setter for SPADIC ASIC. | |
void | SetCharge (float cT, float cR, int32_t dt=0) |
Charge setter for FASP ASIC. | |
void | SetFlag (const int32_t iflag, bool set=true) |
Generic flag status setter. | |
void | SetMasked (bool set=true) |
Set digi mask (FASP only) | |
void | SetPileUp (bool set=true) |
Set digi pile-up (FASP only) | |
void | SetTime (double t) |
Set global digi time (ns) | |
void | SetTimeDAQ (uint64_t t) |
Set global digi time (clk) | |
void | SetTimeOffset (int8_t t) |
Set time offset of rectangular to tilt pads for FASP (clk) | |
void | SetTriggerType (const eTriggerType triggerType) |
Set digi trigger type. | |
void | SetTriggerType (const int32_t triggerValue) |
Set digi trigger type. | |
void | SetErrorClass (const int32_t n) |
Set digi error class (SPADIC only) | |
std::string | ToString () const |
String representation of a TRD digi. Account for digi type and specific information. | |
void | SetStopType (int32_t) |
int32_t | GetStopType () |
void | SetPulseShape (float[45]) |
double | GetChargeTR () const |
void | SetInfoType (int32_t) |
int32_t | GetNrSamples () |
float * | GetSamples () |
Static Public Member Functions | |
static float | Clk (eCbmTrdAsicType ty) |
DAQ clock accessor for each ASIC. | |
static ECbmModuleId | GetSystem () |
static const char * | GetClassName () |
Class name (static) | |
static const char * | GetBranchName () |
Get the desired name of the branch for this obj in the cbm output tree (static) | |
static std::pair< eTriggerType, bool > | GetTriggerPair (const int32_t triggerValue) |
Get the trigger combination, i.e. St or Nt and is multihit or not (true/false) | |
Protected Member Functions | |
CbmTrdDigiRec (const CbmTrdDigi &dt, const CbmTrdDigi &dr, Double_t *g=NULL, Double_t *t=NULL) | |
Constructor and merger. | |
void | SetChannel (const int32_t a) |
void | SetLayer (const int32_t a) |
void | SetModule (const int32_t a) |
Protected Attributes | |
uint32_t | fInfo = 0 |
uint32_t | fCharge = 0 |
uint64_t | fTime = 0 |
Static Protected Attributes | |
static const double | fgClk [static_cast< size_t >(eCbmTrdAsicType::kNTypes)+1] = {62.5, 12.5, 0.0} |
clock length in ns for acquisition | |
static const float | fgPrecission [static_cast< size_t >(eCbmTrdAsicType::kNTypes)+1] = {1.e3, 1., 0.0} |
Nr. of digits stored for ASIC. | |
Private Member Functions | |
ClassDef (CbmTrdDigiRec, 1) | |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int) |
ClassDefNV (CbmTrdDigi, 4) | |
Private Attributes | |
UChar_t | fStatus |
Double_t | fG [2] |
Double_t | fT [3] |
Static Private Attributes | |
static const int32_t | fgkRoOffset = 0 |
static const int32_t | fgkModOffset = 12 |
static const int32_t | fgkLyOffset = 19 |
static const int32_t | fgkErrOffset = 23 |
static const int32_t | fgkFlgOffset = 26 |
static const int32_t | fgkTrgOffset = 29 |
static const int32_t | fgkTypOffset = 31 |
Friends | |
class | CbmTrdModuleRec2D |
Extend the TRD(2D) digi class to incorporate FEE calibration.
The digi class contains the information as it is produced by the FEE (ASIC/GETS) The variation from channel to channel is captured by running the pulser on anode wires using various signal values, frequencies, etc. The calibrated baselines, gains, jitter, etc. are transported via the parameter files and are applied to the data within the digRec class which is in the end used to calculate the TRD hit parameters.
Definition at line 23 of file CbmTrdDigiRec.h.
|
inherited |
Enumerator | |
---|---|
kFlag1 | |
kFlag2 | |
kFlag3 | |
kNflags |
Definition at line 37 of file CbmTrdDigi.h.
|
stronginherited |
Enumerator | |
---|---|
kSPADIC | |
kFASP | |
kNTypes |
Definition at line 22 of file CbmTrdDigi.h.
|
stronginherited |
Enumerator | |
---|---|
kBeginTriggerTypes | |
kSelf | |
kNeighbor | |
kMulti | |
kTrg2 | |
kNTrg |
Definition at line 28 of file CbmTrdDigi.h.
CbmTrdDigiRec::CbmTrdDigiRec | ( | ) |
Default constructor.
CbmTrdDigiRec::CbmTrdDigiRec | ( | const CbmTrdDigi & | d, |
Double_t * | g = NULL, | ||
Double_t * | t = NULL ) |
Wrap CbmTrdDigi constructor.
Definition at line 22 of file CbmTrdDigiRec.cxx.
References fG, fStatus, fT, CbmTrdDigi::GetCharge(), and SETBIT.
|
inlinevirtual |
Definition at line 31 of file CbmTrdDigiRec.h.
|
protected |
Constructor and merger.
Constructor and RAW digi merger
Definition at line 44 of file CbmTrdDigiRec.cxx.
References fG, fStatus, fT, CbmTrdDigi::GetCharge(), CbmTrdDigi::GetTimeDAQ(), CbmTrdDigi::GetTriggerType(), SETBIT, CbmTrdDigi::SetCharge(), and CbmTrdDigi::SetTriggerType().
|
inherited |
Charge addition in case of pile-up (FASP simulation only)
[in] | sd | previous digi absorbed by current |
[in] | f | scaling factor |
Definition at line 95 of file CbmTrdDigi.cxx.
References CbmTrdDigi::fCharge, CbmTrdDigi::fgPrecission, CbmTrdDigi::GetType(), and CbmTrdDigi::kFASP.
|
inherited |
Charge addition in case of pile-up (SPADIC simulation only)
[in] | c | extra charge to be added |
[in] | f | scaling factor |
Definition at line 123 of file CbmTrdDigi.cxx.
References CbmTrdDigi::GetCharge(), CbmTrdDigi::GetType(), CbmTrdDigi::kSPADIC, and CbmTrdDigi::SetCharge().
|
private |
|
privateinherited |
|
inlinestaticinherited |
DAQ clock accessor for each ASIC.
Definition at line 109 of file CbmTrdDigi.h.
References CbmTrdDigi::fgClk.
Referenced by CbmTrdModuleSim2D::AddDigi(), CbmTrdModuleSimR::AddDigitoBuffer(), CbmTrdModuleSimR::AddToPulse(), CbmTrdModuleRec2D::BuildHit(), CbmTrdModuleSimR::CheckMulti(), CbmTrdRawToDigiR::FillLookUps(), CbmTrdModuleRecR::FindClusters(), CbmMcbmCheckTimingAlgo::GetDigiInfo(), CbmTrdRawToDigiR::Init(), CbmTrdModuleSimR::MakePulse(), CbmTrdModuleRec2D::MergeHits(), CbmTrdFASP::Print(), CbmTrdModuleSimR::ProcessPulseBuffer(), CbmTrdFASP::ProcessShaper(), CbmTrdRawToDigiR::SetPars(), CbmTrdModuleSimR::SetSpadicResponse(), CbmTrdDigi::SetTime(), cbm::algo::trd::Clusterizer::TryAddDigi(), and CbmTrdFASP::WriteDigi().
|
inlineinherited |
Address getter for module in the format defined by CbmTrdDigi (format of CbmTrdAddress can be accessed via CbmTrdParModDigi)
Definition at line 112 of file CbmTrdDigi.h.
References CbmTrdDigi::fgkRoOffset, and CbmTrdDigi::fInfo.
Referenced by CbmMcbm2019CheckPulser::CheckInterSystemOffset(), compareTrdDigiDataMembers(), compareTrdDigiDataMembers(), CbmTrdDigiDraw::Exec(), CbmTrdHitDensityQa::Exec(), CbmTrdOccupancyQa::Exec(), CbmTrdQa::Exec(), and CbmTrdRecoQa::Exec().
|
inherited |
Getter read-out id.
Returns index of the read-out unit in the module in the format row x ncol + col
Definition at line 134 of file CbmTrdDigi.cxx.
References CbmTrdDigi::fgkRoOffset, and CbmTrdDigi::fInfo.
Referenced by CbmTrdClusterFinder::AddClusters(), CbmTrdModuleRec2D::AddDigi(), compareTrdDigiDataMembers(), compareTrdDigiDataMembers(), CbmTrdUnpackFaspMonitor::fillHisto(), CbmTrdUnpackMonitor::fillHisto(), CbmTrdUnpackMonitor::fillHisto(), CbmMcbm2018UnpackerAlgoTrdR::FillHistograms(), CbmTrdUnpackMonitor::fillNtCorrHisto(), cbm::algo::trd::Cluster2D::Finalize(), CbmTrdModuleRecR::FindClusters(), CbmTrdUnpackMonitor::getDeltaT(), CbmTrdModuleRecR::IsClusterComplete(), CbmTrdModuleRec2D::LoadDigis(), CbmTrdModuleRec2D::LoadDigisRC(), CbmTrdModuleRecR::MakeHit(), CbmTrdModuleRec2D::MergeDigis(), cbm::algo::trd::Clusterizer2D::operator()(), cbm::algo::trd::Clusterizer::operator()(), cbm::algo::trd::HitFinder2D::ProjectDigis(), cbm::algo::trd::HitMerger2D::ProjectDigis(), CbmTrdModuleRec2D::ProjectDigis(), cbm::algo::trd::Hitfind::RunModuleParallelMerge(), cbm::algo::trd::Hitfind::RunRowParallel(), CbmTrdFASP::ScanDigi(), and CbmTrdDigi::ToString().
|
inherited |
Getter module address in the experiment.
Convert internal representation of module address to CBM address as defined in CbmTrdAddress
Definition at line 142 of file CbmTrdDigi.cxx.
References CbmTrdAddress::GetAddress(), CbmTrdDigi::Layer(), and CbmTrdDigi::Module().
Referenced by CbmTrdClusterFinder::addDigiToModule(), CbmTrdClusterFinder::AddModule(), compareTrdDigiDataMembers(), compareTrdDigiDataMembers(), CbmMcbm2018UnpackerAlgoTrdR::FillHistograms(), CbmTrdUnpackFaspMonitor::FillHistos(), CbmTrdUnpackMonitor::FillHistos(), CbmTrdUnpackMonitor::fillNtCorrHisto(), CbmTrdUnpackMonitor::getDeltaT(), CbmMcbmCheckTimingAlgo::GetDigiInfo(), CbmTrdCalibTracker::ResolutionQa(), cbm::algo::trd::Hitfind::RunModuleParallelMerge(), cbm::algo::trd::Hitfind::RunRowParallel(), and CbmTrdDigi::ToString().
|
inlinestaticinherited |
Get the desired name of the branch for this obj in the cbm output tree (static)
Definition at line 149 of file CbmTrdDigi.h.
Referenced by CbmDeviceDigiEventSink::InitTask().
|
inherited |
Common purpose charge getter.
Definition at line 150 of file CbmTrdDigi.cxx.
References CbmTrdDigi::fCharge, CbmTrdDigi::fgPrecission, CbmTrdDigi::GetType(), CbmTrdDigi::kFASP, and CbmTrdDigi::kSPADIC.
Referenced by CbmTrdDigi::AddCharge(), CbmTrdModuleRec2D::AddDigi(), CbmTrdHitMC::AddSignal(), CbmTrdDigiRec(), CbmTrdDigiRec(), CbmMcbm2019CheckPulser::CheckInterSystemOffset(), compareTrdDigiDataMembers(), compareTrdDigiDataMembers(), cbm::algo::trd::DigiRec::DigiRec(), cbm::algo::trd::DigiRec::DigiRec(), CbmTrdHitDensityQa::Exec(), CbmTrdOccupancyQa::Exec(), CbmTrdQa::Exec(), CbmTrdRecoQa::Exec(), CbmTrdUnpackFaspMonitor::fillHisto(), CbmTrdUnpackMonitor::fillHisto(), CbmMcbm2018UnpackerAlgoTrdR::FillHistograms(), CbmTrdModuleRecR::FindClusters(), CbmTrdModuleSim2D::FlushBuffer(), cbm::algo::trd::DigiRec::GetCharge(), GetCharge(), CbmMcbmCheckTimingAlgo::GetDigiInfo(), cbm::algo::trd::DigiRec::GetRectCharge(), GetRectCharge(), cbm::algo::trd::DigiRec::GetTiltCharge(), GetTiltCharge(), cbm::algo::trd::DigiRec::GetTime(), GetTime(), CbmTrdModuleRec2D::LoadDigisRC(), CbmTrdModuleRecR::MakeHit(), CbmTrdModuleRec2D::MergeDigis(), cbm::algo::trd::Clusterizer2D::operator()(), CbmTrdHitProducer::processCluster(), CbmTrdModuleSimR::ProcessPulseBuffer(), CbmTrdFASP::ScanDigi(), CbmTrdDigi::ToString(), and CbmTrdFASP::WriteDigi().
|
inherited |
Charge getter for FASP.
[out] | tilt | on returns contain the charge measured on tilted pads |
[out] | dt | on returns contain the time difference wrt tilted pads [ASIC clocks] |
Retrieve signal information for FASP. Memory allocation of 32 bits: tttt.tttt TTTT.TTTT TTTT.RRRR RRRR.RRRR t : time difference of rectangular to tilt pads T : tilt pads signal R : Rectangular pads signal
Definition at line 161 of file CbmTrdDigi.cxx.
References CbmTrdDigi::fCharge, CbmTrdDigi::fgPrecission, CbmTrdDigi::GetType(), and CbmTrdDigi::kFASP.
Double_t CbmTrdDigiRec::GetCharge | ( | Int_t | typ, |
Bool_t & | on ) const |
Return calibrated signal.
[in] | typ | tilt [0], rect [1] |
[out] | on | flag signal exists |
Definition at line 75 of file CbmTrdDigiRec.cxx.
References fG, CbmTrdFASP::GetBaselineCorr(), and CbmTrdDigi::GetCharge().
|
inherited |
Charge error parametrisation. SPADIC specific see GetErrorClass()
Definition at line 181 of file CbmTrdDigi.cxx.
|
inlineinherited |
Definition at line 245 of file CbmTrdDigi.h.
|
inlinestaticinherited |
Class name (static)
Definition at line 144 of file CbmTrdDigi.h.
Referenced by TEST().
|
inlineinherited |
Channel status. SPADIC specific see LUT.
Definition at line 133 of file CbmTrdDigi.h.
References CbmTrdDigi::fgkErrOffset, and CbmTrdDigi::fInfo.
Referenced by CbmTrdModuleRecR::MakeHit(), and CbmTrdDigi::ToString().
|
inlineinherited |
Definition at line 247 of file CbmTrdDigi.h.
|
inline |
Return calibrated rect signal.
[out] | on | flag signal exists |
Definition at line 40 of file CbmTrdDigiRec.h.
References CbmTrdDigi::GetCharge().
|
inline |
Return calibrated rect time [ns].
Definition at line 42 of file CbmTrdDigiRec.h.
References CbmTrdDigi::GetTime().
|
inlineinherited |
Definition at line 248 of file CbmTrdDigi.h.
|
inlineinherited |
Definition at line 242 of file CbmTrdDigi.h.
|
inlinestaticinherited |
System ID (static)
Definition at line 138 of file CbmTrdDigi.h.
References kTrd.
Referenced by compareTrdDigiDataMembers(), and compareTrdDigiDataMembers().
|
inline |
Return calibrated tilt signal.
[out] | on | flag signal exists |
Definition at line 35 of file CbmTrdDigiRec.h.
References CbmTrdDigi::GetCharge().
Referenced by CbmTrdModuleRec2D::ProjectDigis().
|
inline |
Return calibrated tilt time [ns].
Definition at line 37 of file CbmTrdDigiRec.h.
References CbmTrdDigi::GetTime().
|
inlineinherited |
Getter for physical time [ns]. Accounts for clock representation of each ASIC. In SPADIC case physical time is already stored in fTime.
Definition at line 153 of file CbmTrdDigi.h.
References CbmTrdDigi::fgClk, CbmTrdDigi::fTime, CbmTrdDigi::GetType(), and CbmTrdDigi::kFASP.
Referenced by CbmTrdModuleSim2D::AddDigi(), CbmTrdHitMC::AddSignal(), compareTrdDigiDataMembers(), compareTrdDigiDataMembers(), CbmRichMCbmQaReal::Exec(), CbmTrdDigitizer::Exec(), CbmMcbm2018UnpackerAlgoTrdR::FillHistograms(), CbmTrdUnpackMonitor::fillNtCorrHisto(), CbmTrdModuleRecR::FindClusters(), CbmTrdModuleSim2D::FlushBuffer(), CbmTrdDigitizer::FlushBuffers(), CbmTrdUnpackMonitor::getDeltaT(), CbmMcbmCheckTimingAlgo::GetDigiInfo(), cbm::algo::trd::DigiRec::GetRectTime(), GetRectTime(), cbm::algo::trd::DigiRec::GetTiltTime(), GetTiltTime(), CbmTrdModuleRecR::MakeHit(), CbmTrdModuleSimR::ProcessPulseBuffer(), CbmTrdCalibTracker::ResolutionQa(), CbmTrdFASP::ScanDigi(), CbmTrdDigi::ToString(), and CbmTrdFASP::WriteDigi().
Double_t CbmTrdDigiRec::GetTime | ( | Int_t | typ | ) | const |
Return calibrated time.
[in] | typ | tilt [0], rect [1] |
Definition at line 100 of file CbmTrdDigiRec.cxx.
References fT, CbmTrdDigi::GetCharge(), and CbmTrdDigi::GetTimeDAQ().
|
inlineinherited |
Getter for global DAQ time [clk]. Differs for each ASIC. In FASP case DAQ time is already stored in fTime.
Definition at line 158 of file CbmTrdDigi.h.
References CbmTrdDigi::fgClk, CbmTrdDigi::fTime, CbmTrdDigi::GetType(), and CbmTrdDigi::kFASP.
Referenced by CbmTrdModuleRec2D::AddDigi(), CbmTrdHitMC::AddSignal(), CbmTrdDigiRec(), cbm::algo::trd::DigiRec::DigiRec(), CbmTrdUnpackFaspMonitor::fillHisto(), cbm::algo::trd::DigiRec::GetTime(), GetTime(), CbmTrdModuleRec2D::MergeDigis(), cbm::algo::trd::Clusterizer2D::operator()(), cbm::algo::trd::HitFinder2D::ProjectDigis(), cbm::algo::trd::HitMerger2D::ProjectDigis(), CbmTrdCalibTracker::ResolutionQa(), CbmTrdFASP::ScanDigi(), and CbmTrdFASP::WriteDigi().
|
staticinherited |
Get the trigger combination, i.e. St or Nt and is multihit or not (true/false)
[in] | int32_t | trigger value of a digi as stored in fInfo |
Definition at line 184 of file CbmTrdDigi.cxx.
Referenced by CbmTrdUnpackMonitor::fillHisto().
|
inlineinherited |
Channel trigger type. SPADIC specific see CbmTrdTriggerType.
Definition at line 163 of file CbmTrdDigi.h.
References CbmTrdDigi::fgkTrgOffset, and CbmTrdDigi::fInfo.
Referenced by CbmTrdDigiRec(), compareTrdDigiDataMembers(), cbm::algo::trd::DigiRec::DigiRec(), CbmTrdUnpackMonitor::fillHisto(), CbmMcbm2018UnpackerAlgoTrdR::FillHistograms(), CbmTrdUnpackMonitor::fillNtCorrHisto(), CbmTrdModuleRecR::FindClusters(), CbmTrdModuleRec2D::MergeDigis(), cbm::algo::trd::Clusterizer::operator()(), CbmTrdDigi::ToString(), and CbmTrdFASP::WriteDigi().
|
inlineinherited |
Channel FEE SPADIC/FASP according to CbmTrdAsicType.
Definition at line 173 of file CbmTrdDigi.h.
References CbmTrdDigi::fgkTypOffset, CbmTrdDigi::fInfo, CbmTrdDigi::kFASP, and CbmTrdDigi::kSPADIC.
Referenced by CbmTrdDigi::AddCharge(), CbmTrdDigi::AddCharge(), CbmTrdModuleRec2D::AddDigi(), CbmTrdClusterFinder::AddModule(), CbmRichMCbmQaReal::Exec(), CbmTrdDigi::GetCharge(), CbmTrdDigi::GetCharge(), CbmMcbmCheckTimingAlgo::GetDigiInfo(), CbmTrdDigi::GetTime(), CbmTrdDigi::GetTimeDAQ(), CbmTrdDigi::IsFASP(), CbmTrdDigi::IsMasked(), CbmTrdDigi::IsPileUp(), CbmTrdHitProducer::processCluster(), CbmTrdCalibTracker::ResolutionQa(), CbmAlgoBuildRawEvents::SearchMatches(), CbmTrdDigi::SetMasked(), CbmTrdDigi::SetPileUp(), CbmTrdDigi::SetTime(), CbmTrdDigi::SetTimeOffset(), and CbmTrdDigi::ToString().
|
inline |
Definition at line 52 of file CbmTrdDigiRec.h.
|
inline |
Definition at line 53 of file CbmTrdDigiRec.h.
void CbmTrdDigiRec::Init | ( | Double_t | g[2], |
Double_t | t[3] ) |
Init FEE gain and time walk corrections.
Definition at line 115 of file CbmTrdDigiRec.cxx.
|
inlineinherited |
Shortcut to check if FASP digi.
Definition at line 179 of file CbmTrdDigi.h.
References CbmTrdDigi::GetType(), and CbmTrdDigi::kFASP.
Referenced by cbm::algo::trd::Hitfind::RunModuleParallelMerge(), and cbm::algo::trd::Hitfind::RunRowParallel().
|
inherited |
Query flag status (generic)
Definition at line 196 of file CbmTrdDigi.cxx.
References CbmTrdDigi::fgkFlgOffset, CbmTrdDigi::fInfo, and CbmTrdDigi::kNflags.
Referenced by CbmTrdModuleSim2D::FlushBuffer(), CbmTrdDigi::IsMasked(), CbmTrdDigi::IsPileUp(), CbmTrdModuleRecR::MakeHit(), and CbmTrdFASP::WriteDigi().
|
inlineinherited |
Query digi mask (FASP only)
Definition at line 182 of file CbmTrdDigi.h.
References CbmTrdDigi::GetType(), CbmTrdDigi::IsFlagged(), CbmTrdDigi::kFASP, and CbmTrdDigi::kFlag3.
Referenced by CbmTrdModuleSim2D::FlushBuffer(), and CbmTrdDigi::ToString().
|
inlineinherited |
Query digi pile-up (FASP only)
Definition at line 184 of file CbmTrdDigi.h.
References CbmTrdDigi::GetType(), CbmTrdDigi::IsFlagged(), CbmTrdDigi::kFASP, and CbmTrdDigi::kFlag2.
Referenced by CbmTrdDigi::ToString().
|
inlineinherited |
Definition at line 187 of file CbmTrdDigi.h.
References CbmTrdDigi::fgkLyOffset, and CbmTrdDigi::fInfo.
Referenced by CbmTrdDigi::GetAddressModule(), and CbmTrdDigi::ToString().
|
inlineinherited |
Definition at line 188 of file CbmTrdDigi.h.
References CbmTrdDigi::fgkModOffset, and CbmTrdDigi::fInfo.
Referenced by CbmTrdDigi::GetAddressModule(), and CbmTrdDigi::ToString().
|
inlineprivateinherited |
Definition at line 297 of file CbmTrdDigi.h.
References CbmTrdDigi::fCharge, CbmTrdDigi::fInfo, and CbmTrdDigi::fTime.
|
inherited |
Module address setter for digi.
[in] | a | module address as it is defined in CbmTrdAddress |
Definition at line 203 of file CbmTrdDigi.cxx.
References CbmTrdAddress::GetLayerId(), CbmTrdAddress::GetModuleId(), CbmTrdDigi::SetLayer(), and CbmTrdDigi::SetModule().
Referenced by CbmTrdDigi::CbmTrdDigi(), and CbmTrdDigi::SetAddressModule().
|
inlineinherited |
Alias for SetAddress()
Definition at line 195 of file CbmTrdDigi.h.
References CbmTrdDigi::SetAddress().
|
inherited |
Definition at line 210 of file CbmTrdDigi.cxx.
References CLRBIT, CbmTrdDigi::fgkTypOffset, CbmTrdDigi::fInfo, CbmTrdDigi::kSPADIC, and SETBIT.
Referenced by CbmTrdDigi::CbmTrdDigi(), and CbmTrdDigi::CbmTrdDigi().
|
inlineprotectedinherited |
Definition at line 251 of file CbmTrdDigi.h.
References CbmTrdDigi::fgkRoOffset, and CbmTrdDigi::fInfo.
Referenced by CbmTrdDigi::CbmTrdDigi(), and CbmTrdDigi::CbmTrdDigi().
|
inherited |
Charge setter for SPADIC ASIC.
[in] | c | charge on read-out pad |
Definition at line 239 of file CbmTrdDigi.cxx.
References CbmTrdDigi::fCharge, CbmTrdDigi::fgPrecission, and CbmTrdDigi::kSPADIC.
Referenced by CbmTrdDigi::AddCharge(), CbmTrdDigi::CbmTrdDigi(), CbmTrdDigi::CbmTrdDigi(), CbmTrdDigiRec(), cbm::algo::trd::DigiRec::DigiRec(), CbmTrdModuleSim2D::FlushBuffer(), CbmTrdModuleRec2D::MergeDigis(), CbmTrdModuleSimR::ProcessBuffer(), and CbmTrdModuleSimR::ProcessPulseBuffer().
|
inherited |
Charge setter for FASP ASIC.
[in] | cT | charge on tilt paired |
[in] | cR | charge on rectangular paired |
[in] | dt | time difference between T and R channel |
Load signal information for FASP. Memory allocation of 32 bits: tttt.tttt TTTT.TTTT TTTT.RRRR RRRR.RRRR t : time difference of rectangular to tilt pads (8 bits) T : tilt pads signal (12 bits) R : Rectangular pads signal (12 bits)
Definition at line 218 of file CbmTrdDigi.cxx.
References CbmTrdDigi::fCharge, CbmTrdDigi::fgPrecission, and CbmTrdDigi::kFASP.
|
inlineinherited |
Set digi error class (SPADIC only)
Definition at line 231 of file CbmTrdDigi.h.
References CbmTrdDigi::fgkErrOffset, and CbmTrdDigi::fInfo.
Referenced by CbmTrdModuleSimR::AddDigi(), CbmTrdDigi::CbmTrdDigi(), and CbmTrdModuleSimR::ProcessPulseBuffer().
|
inherited |
Generic flag status setter.
Definition at line 246 of file CbmTrdDigi.cxx.
References CLRBIT, CbmTrdDigi::fgkFlgOffset, CbmTrdDigi::fInfo, CbmTrdDigi::kNflags, and SETBIT.
Referenced by CbmTrdModuleSimR::AddDigi(), CbmTrdModuleSimR::ProcessPulseBuffer(), CbmTrdDigi::SetMasked(), CbmTrdDigi::SetPileUp(), and CbmTrdFASP::WriteDigi().
|
inlineinherited |
Definition at line 246 of file CbmTrdDigi.h.
|
inlineprotectedinherited |
Definition at line 256 of file CbmTrdDigi.h.
References CbmTrdDigi::fgkLyOffset, and CbmTrdDigi::fInfo.
Referenced by CbmTrdDigi::SetAddress().
|
inlineinherited |
Set digi mask (FASP only)
Definition at line 211 of file CbmTrdDigi.h.
References CbmTrdDigi::GetType(), CbmTrdDigi::kFASP, CbmTrdDigi::kFlag3, and CbmTrdDigi::SetFlag().
|
inlineprotectedinherited |
Definition at line 261 of file CbmTrdDigi.h.
References CbmTrdDigi::fgkModOffset, and CbmTrdDigi::fInfo.
Referenced by CbmTrdDigi::SetAddress().
|
inlineinherited |
Set digi pile-up (FASP only)
Definition at line 216 of file CbmTrdDigi.h.
References CbmTrdDigi::GetType(), CbmTrdDigi::kFASP, CbmTrdDigi::kFlag2, and CbmTrdDigi::SetFlag().
|
inlineinherited |
Definition at line 243 of file CbmTrdDigi.h.
|
inlineinherited |
Definition at line 241 of file CbmTrdDigi.h.
|
inherited |
Set global digi time (ns)
Definition at line 255 of file CbmTrdDigi.cxx.
References CbmTrdDigi::Clk(), CbmTrdDigi::fTime, CbmTrdDigi::GetType(), CbmTrdDigi::kFASP, CbmTrdDigi::kNTypes, and CbmTrdDigi::kSPADIC.
|
inlineinherited |
Set global digi time (clk)
Definition at line 223 of file CbmTrdDigi.h.
References CbmTrdDigi::fTime.
|
inherited |
Set time offset of rectangular to tilt pads for FASP (clk)
Definition at line 271 of file CbmTrdDigi.cxx.
References CbmTrdDigi::fCharge, CbmTrdDigi::GetType(), and CbmTrdDigi::kFASP.
|
inherited |
Set digi trigger type.
Definition at line 280 of file CbmTrdDigi.cxx.
References CbmTrdDigi::fgkTrgOffset, CbmTrdDigi::fInfo, and CbmTrdDigi::kNTrg.
Referenced by CbmTrdDigi::CbmTrdDigi(), CbmTrdDigiRec(), cbm::algo::trd::DigiRec::DigiRec(), cbm::algo::trd::UnpackMS< sys_ver >::makeDigi(), cbm::algo::trd::UnpackMS< sys_ver >::makeDigi(), CbmTrdModuleRec2D::MergeDigis(), CbmTrdModuleSimR::ProcessBuffer(), and CbmTrdModuleSimR::ProcessPulseBuffer().
|
inherited |
Set digi trigger type.
Definition at line 288 of file CbmTrdDigi.cxx.
References CbmTrdDigi::fgkTrgOffset, CbmTrdDigi::fInfo, CbmTrdDigi::kBeginTriggerTypes, and CbmTrdDigi::kNTrg.
|
inherited |
String representation of a TRD digi. Account for digi type and specific information.
Definition at line 298 of file CbmTrdDigi.cxx.
References CbmTrdDigi::GetAddressChannel(), CbmTrdDigi::GetAddressModule(), CbmTrdDigi::GetCharge(), CbmTrdDigi::GetErrorClass(), CbmTrdDigi::GetTime(), CbmTrdDigi::GetTriggerType(), CbmTrdDigi::GetType(), CbmTrdDigi::IsMasked(), CbmTrdDigi::IsPileUp(), CbmTrdDigi::kFASP, CbmTrdDigi::Layer(), and CbmTrdDigi::Module().
Referenced by CbmTrdModuleRec2D::AddDigi(), CbmTrdModuleSim2D::AddDigi(), CbmTrdModuleSim2D::FlushBuffer(), CbmTrdModuleRec2D::LoadDigisRC(), CbmTrdModuleRec2D::MergeDigis(), CbmTrdModuleRec2D::ProjectDigis(), and CbmTrdFASP::WriteDigi().
|
friend |
Definition at line 24 of file CbmTrdDigiRec.h.
|
protectedinherited |
Definition at line 268 of file CbmTrdDigi.h.
Referenced by CbmTrdDigi::AddCharge(), CbmTrdDigi::CbmTrdDigi(), CbmTrdDigi::GetCharge(), CbmTrdDigi::GetCharge(), CbmTrdDigi::serialize(), CbmTrdDigi::SetCharge(), CbmTrdDigi::SetCharge(), and CbmTrdDigi::SetTimeOffset().
|
private |
Definition at line 63 of file CbmTrdDigiRec.h.
Referenced by CbmTrdDigiRec(), CbmTrdDigiRec(), GetCharge(), and Init().
|
staticprotectedinherited |
clock length in ns for acquisition
fInfo defition ATTf.ffnn nLLL.LMMM MMMM.pppp pppp.pppp A - Asic type according to CbmTrdAsicType T - trigger type according to CbmTrdTriggerType f - flags according to CbmTrdDigiDef n - error class L - layer id in the TRD setup M - module id in the layer p - pad address within the module
Definition at line 41 of file CbmTrdDigi.h.
Referenced by CbmTrdDigi::Clk(), CbmTrdDigi::GetTime(), and CbmTrdDigi::GetTimeDAQ().
|
staticprivateinherited |
Definition at line 289 of file CbmTrdDigi.h.
Referenced by CbmTrdDigi::GetErrorClass(), and CbmTrdDigi::SetErrorClass().
|
staticprivateinherited |
Definition at line 290 of file CbmTrdDigi.h.
Referenced by CbmTrdDigi::IsFlagged(), and CbmTrdDigi::SetFlag().
|
staticprivateinherited |
Definition at line 288 of file CbmTrdDigi.h.
Referenced by CbmTrdDigi::Layer(), and CbmTrdDigi::SetLayer().
|
staticprivateinherited |
Definition at line 287 of file CbmTrdDigi.h.
Referenced by CbmTrdDigi::Module(), and CbmTrdDigi::SetModule().
|
staticprivateinherited |
Definition at line 286 of file CbmTrdDigi.h.
Referenced by CbmTrdDigi::GetAddress(), CbmTrdDigi::GetAddressChannel(), and CbmTrdDigi::SetChannel().
|
staticprivateinherited |
Definition at line 291 of file CbmTrdDigi.h.
Referenced by CbmTrdDigi::GetTriggerType(), CbmTrdDigi::SetTriggerType(), and CbmTrdDigi::SetTriggerType().
|
staticprivateinherited |
Definition at line 292 of file CbmTrdDigi.h.
Referenced by CbmTrdDigi::GetType(), and CbmTrdDigi::SetAsic().
|
staticprotectedinherited |
Nr. of digits stored for ASIC.
Definition at line 42 of file CbmTrdDigi.h.
Referenced by CbmTrdDigi::AddCharge(), CbmTrdDigi::GetCharge(), CbmTrdDigi::GetCharge(), CbmTrdDigi::SetCharge(), and CbmTrdDigi::SetCharge().
|
protectedinherited |
Definition at line 267 of file CbmTrdDigi.h.
Referenced by CbmTrdDigi::CbmTrdDigi(), CbmTrdDigi::GetAddress(), CbmTrdDigi::GetAddressChannel(), CbmTrdDigi::GetErrorClass(), CbmTrdDigi::GetTriggerType(), CbmTrdDigi::GetType(), CbmTrdDigi::IsFlagged(), CbmTrdDigi::Layer(), CbmTrdDigi::Module(), CbmTrdDigi::serialize(), CbmTrdDigi::SetAsic(), CbmTrdDigi::SetChannel(), CbmTrdDigi::SetErrorClass(), CbmTrdDigi::SetFlag(), CbmTrdDigi::SetLayer(), CbmTrdDigi::SetModule(), CbmTrdDigi::SetTriggerType(), and CbmTrdDigi::SetTriggerType().
|
private |
Definition at line 62 of file CbmTrdDigiRec.h.
Referenced by CbmTrdDigiRec(), CbmTrdDigiRec(), HasRectOvf(), and HasTiltOvf().
|
private |
Definition at line 64 of file CbmTrdDigiRec.h.
Referenced by CbmTrdDigiRec(), CbmTrdDigiRec(), GetTime(), and Init().
|
protectedinherited |
Definition at line 270 of file CbmTrdDigi.h.
Referenced by CbmTrdDigi::CbmTrdDigi(), CbmTrdDigi::GetTime(), CbmTrdDigi::GetTimeDAQ(), CbmTrdDigi::serialize(), CbmTrdDigi::SetTime(), and CbmTrdDigi::SetTimeDAQ().