CbmRoot
|
Rectangular pad module; Cluster finding and hit reconstruction algorithms. More...
#include <CbmTrdModuleRecR.h>
Public Member Functions | |
CbmTrdModuleRecR () | |
Default constructor. More... | |
CbmTrdModuleRecR (Int_t mod, Int_t ly=-1, Int_t rot=0) | |
Constructor with placement. More... | |
virtual | ~CbmTrdModuleRecR () |
virtual Bool_t | AddDigi (const CbmTrdDigi *d, Int_t id) |
Add digi to local module. More... | |
virtual void | Clear (Option_t *opt="") |
Clear local storage. More... | |
virtual Int_t | FindClusters () |
Steering routine for finding digits clusters. More... | |
Int_t | GetOverThreshold () const |
Double_t | GetSpaceResolution (Double_t val=3.0) |
virtual Bool_t | MakeHits () |
Steering routine for building hits. More... | |
virtual CbmTrdHit * | MakeHit (Int_t cId, const CbmTrdCluster *c, std::vector< const CbmTrdDigi * > *digis) |
Steering routine for converting cluster to hit. More... | |
virtual Bool_t | Finalize () |
Reconstruct physics observables on hits. More... | |
virtual TClonesArray * | GetClusters () |
virtual const TClonesArray * | GetClusters () const |
virtual TClonesArray * | GetHits () |
virtual const TClonesArray * | GetHits () const |
virtual Double_t | GetDx () const |
Shortcut getter size x/2 [cm]. More... | |
virtual Double_t | GetDy () const |
Shortcut getter size y/2 [cm]. More... | |
virtual Double_t | GetDz () const |
Shortcut getter size z/2 [cm]. More... | |
virtual Int_t | GetNasics () const |
Shortcut getter ASICs number module wise. More... | |
virtual Int_t | GetNcols () const |
Shortcut getter column size. More... | |
virtual Int_t | GetNrows () const |
Shortcut getter row wise. More... | |
virtual Int_t | GetAsicAddress (Int_t id) const |
Addressing ASIC on module based on id. More... | |
virtual Int_t | GetPadAddress (Int_t r, Int_t c) const |
Addressing read-out pads on module based on (row,col) More... | |
virtual Int_t | GetPadRowCol (Int_t address, Int_t &c) const |
Addressing read-out pads based on module address. More... | |
virtual const Char_t * | GetPath () const |
virtual void | LocalToMaster (Double_t in[3], Double_t out[3]) |
virtual void | SetAsicPar (CbmTrdParSetAsic *p=nullptr) |
virtual void | SetChmbPar (const CbmTrdParModGas *p) |
virtual void | SetDigiPar (const CbmTrdParModDigi *p) |
virtual void | SetGainPar (const CbmTrdParModGain *p) |
virtual void | SetGeoPar (const CbmTrdParModGeo *p) |
Protected Attributes | |
UInt_t | fCalled |
counter for the number of calls More... | |
TClonesArray * | fClusters |
module wise storage of reconstructed cluster More... | |
TClonesArray * | fHits |
module wise storage of reconstructed hits More... | |
UShort_t | fModAddress |
unique identifier for current module More... | |
Char_t | fLayerId |
layer identifier More... | |
UChar_t | fRotation |
rotation angle for current module More... | |
const CbmTrdParModDigi * | fDigiPar |
read-out description of module More... | |
const CbmTrdParModGas * | fChmbPar |
detection description (HV, drift) of module More... | |
CbmTrdParSetAsic * | fAsicPar |
the set of ASIC operating on the module (owned) More... | |
const CbmTrdParModGain * | fGainPar |
Analog to digital conversion for module. More... | |
const CbmTrdParModGeo * | fGeoPar |
link to gGeometry for module More... | |
Private Member Functions | |
CbmTrdModuleRecR (const CbmTrdModuleRecR &ref) | |
const CbmTrdModuleRecR & | operator= (const CbmTrdModuleRecR &ref) |
void | addClusters (std::deque< std::pair< Int_t, const CbmTrdDigi * >> cluster) |
Private Attributes | |
Int_t | fDigiCounter |
Int_t | fCheck = 0 |
std::deque< std::tuple< Int_t, Bool_t, const CbmTrdDigi * > > | fDigiMap |
std::deque< std::deque< std::pair< Int_t, const CbmTrdDigi * > > > | fClusterMap |
Static Private Attributes | |
static constexpr Double_t | kxVar_Value [2][5] |
static constexpr Double_t | kyVar_Value [2][5] |
Rectangular pad module; Cluster finding and hit reconstruction algorithms.
Definition at line 14 of file CbmTrdModuleRecR.h.
CbmTrdModuleRecR::CbmTrdModuleRecR | ( | ) |
Default constructor.
Definition at line 26 of file CbmTrdModuleRecR.cxx.
CbmTrdModuleRecR::CbmTrdModuleRecR | ( | Int_t | mod, |
Int_t | ly = -1 , |
||
Int_t | rot = 0 |
||
) |
Constructor with placement.
Definition at line 32 of file CbmTrdModuleRecR.cxx.
|
virtual |
Definition at line 39 of file CbmTrdModuleRecR.cxx.
|
private |
|
private |
Definition at line 453 of file CbmTrdModuleRecR.cxx.
References CbmTrdModuleRec::fClusters, CbmTrdModuleAbstract::fModAddress, CbmDigiManager::Init(), CbmDigiManager::Instance(), CbmCluster::SetAddress(), CbmCluster::SetDigis(), and CbmTrdCluster::SetNCols().
Referenced by FindClusters().
|
virtual |
Add digi to local module.
Reimplemented from CbmTrdModuleRec.
Definition at line 42 of file CbmTrdModuleRecR.cxx.
References fDigiCounter, and fDigiMap.
|
virtual |
Clear local storage.
Reimplemented from CbmTrdModuleRec.
Definition at line 51 of file CbmTrdModuleRecR.cxx.
References CbmTrdModuleRec::Clear(), fClusterMap, fDigiCounter, and fDigiMap.
|
inlinevirtualinherited |
Reconstruct physics observables on hits.
Reimplemented in CbmTrdModuleRecT.
Definition at line 42 of file CbmTrdModuleRec.h.
Referenced by CbmTrdHitProducer::Exec().
|
virtual |
Steering routine for finding digits clusters.
Implements CbmTrdModuleRec.
Definition at line 61 of file CbmTrdModuleRecR.cxx.
References addClusters(), CbmTrdDigi::Clk(), d, fDigiMap, CbmTrdModuleAbstract::fDigiPar, CbmTrdModuleAbstract::fModAddress, CbmTrdDigi::GetAddressChannel(), CbmTrdDigi::GetCharge(), CbmTrdParModDigi::GetNofColumns(), CbmTrdDigi::GetTime(), CbmTrdDigi::GetTriggerType(), CbmTrdDigi::kNeighbor, CbmTrdDigi::kSelf, and CbmTrdDigi::kSPADIC.
|
inlinevirtualinherited |
Addressing ASIC on module based on id.
[in] | id | module wise ASIC identifier |
Definition at line 49 of file CbmTrdModuleAbstract.h.
References CbmTrdModuleAbstract::fModAddress.
|
inlinevirtualinherited |
Definition at line 48 of file CbmTrdModuleRec.h.
References CbmTrdModuleRec::fClusters.
Referenced by CbmTrdClusterFinder::Exec().
|
inlinevirtualinherited |
Definition at line 49 of file CbmTrdModuleRec.h.
References CbmTrdModuleRec::fClusters.
|
inlinevirtualinherited |
Shortcut getter size x/2 [cm].
Definition at line 28 of file CbmTrdModuleAbstract.h.
References CbmTrdModuleAbstract::fGeoPar, and CbmTrdParModGeo::GetDX().
Referenced by CbmTrdModuleSimR::SetAsicPar().
|
inlinevirtualinherited |
Shortcut getter size y/2 [cm].
Definition at line 30 of file CbmTrdModuleAbstract.h.
References CbmTrdModuleAbstract::fGeoPar, and CbmTrdParModGeo::GetDY().
Referenced by CbmTrdModuleSimR::SetAsicPar().
|
inlinevirtualinherited |
Shortcut getter size z/2 [cm].
Definition at line 32 of file CbmTrdModuleAbstract.h.
References CbmTrdModuleAbstract::fGeoPar, and CbmTrdParModGeo::GetDZ().
|
inlinevirtualinherited |
Definition at line 50 of file CbmTrdModuleRec.h.
References CbmTrdModuleRec::fHits.
Referenced by CbmTrdHitProducer::Exec().
|
inlinevirtualinherited |
Definition at line 51 of file CbmTrdModuleRec.h.
References CbmTrdModuleRec::fHits.
|
inlinevirtualinherited |
Shortcut getter ASICs number module wise.
Definition at line 34 of file CbmTrdModuleAbstract.h.
References CbmTrdModuleAbstract::fAsicPar, and CbmTrdParSetAsic::GetNofAsics().
|
inlinevirtualinherited |
Shortcut getter column size.
Definition at line 38 of file CbmTrdModuleAbstract.h.
References CbmTrdModuleAbstract::fDigiPar, and CbmTrdParModDigi::GetNofColumns().
Referenced by CbmTrdModuleAbstract::GetPadAddress(), and CbmTrdModuleAbstract::GetPadRowCol().
|
inlinevirtualinherited |
Shortcut getter row wise.
Definition at line 42 of file CbmTrdModuleAbstract.h.
References CbmTrdModuleAbstract::fDigiPar, and CbmTrdParModDigi::GetNofRows().
|
inlinevirtual |
Reimplemented from CbmTrdModuleRec.
Definition at line 38 of file CbmTrdModuleRecR.h.
References fDigiCounter.
|
inlinevirtualinherited |
Addressing read-out pads on module based on (row,col)
[in] | r | global row id (not sector wise) |
[in] | c | global column id |
Definition at line 57 of file CbmTrdModuleAbstract.h.
References CbmTrdModuleAbstract::GetNcols().
Referenced by CbmTrdModuleSimT::ScanPadPlane().
|
inlinevirtualinherited |
Addressing read-out pads based on module address.
[in] | address | pad address within module |
[in] | c | on return global column id |
Definition at line 100 of file CbmTrdModuleAbstract.h.
References CbmTrdModuleAbstract::fDigiPar, and CbmTrdModuleAbstract::GetNcols().
Referenced by CbmTrdModuleRecT::AddDigi(), CbmTrdModuleSimT::FlushBuffer(), CbmTrdModuleRecT::LoadDigis(), CbmTrdModuleRecT::MakeHit(), and CbmTrdModuleRecT::MergeDigis().
|
inlinevirtualinherited |
Definition at line 66 of file CbmTrdModuleAbstract.h.
References CbmTrdModuleAbstract::fGeoPar.
Referenced by CbmTrdDigitizer::AddModule(), CbmTrdModuleSimR::MakeDigi(), and CbmTrdModuleSimT::MakeDigi().
Double_t CbmTrdModuleRecR::GetSpaceResolution | ( | Double_t | val = 3.0 | ) |
Definition at line 608 of file CbmTrdModuleRecR.cxx.
References first.
|
virtualinherited |
Definition at line 33 of file CbmTrdModuleAbstract.cxx.
References CbmTrdModuleAbstract::fGeoPar, and CbmTrdParModGeo::LocalToMaster().
Referenced by MakeHit(), and CbmTrdModuleRecT::MakeHit().
|
virtual |
Steering routine for converting cluster to hit.
Implements CbmTrdModuleRec.
Definition at line 488 of file CbmTrdModuleRecR.cxx.
References CbmTrdModuleAbstract::fDigiPar, CbmTrdModuleRec::fHits, CbmTrdModuleAbstract::fModAddress, CbmTrdDigi::GetAddressChannel(), CbmTrdDigi::GetCharge(), CbmTrdDigi::GetErrorClass(), CbmTrdParModDigi::GetOrientation(), CbmTrdParModDigi::GetPadPosition(), CbmTrdParModDigi::GetPadSizeY(), CbmTrdDigi::GetTime(), CbmTrdDigi::IsFlagged(), kxVar_Value, kyVar_Value, CbmTrdModuleAbstract::LocalToMaster(), sqrt(), and CbmTrdParModDigi::TransformHitError().
|
virtual |
Steering routine for building hits.
Implements CbmTrdModuleRec.
Definition at line 485 of file CbmTrdModuleRecR.cxx.
|
private |
|
inlinevirtualinherited |
Reimplemented in CbmTrdModuleSimT, and CbmTrdModuleSimR.
Definition at line 70 of file CbmTrdModuleAbstract.h.
References CbmTrdModuleAbstract::fAsicPar.
Referenced by CbmTrdHitProducer::AddModule(), and CbmTrdClusterFinder::AddModule().
|
inlinevirtualinherited |
Definition at line 71 of file CbmTrdModuleAbstract.h.
References CbmTrdModuleAbstract::fChmbPar.
Referenced by CbmTrdHitProducer::AddModule(), and CbmTrdClusterFinder::AddModule().
|
inlinevirtualinherited |
Definition at line 72 of file CbmTrdModuleAbstract.h.
References CbmTrdModuleAbstract::fDigiPar.
Referenced by CbmTrdHitProducer::AddModule(), and CbmTrdClusterFinder::AddModule().
|
inlinevirtualinherited |
Definition at line 73 of file CbmTrdModuleAbstract.h.
References CbmTrdModuleAbstract::fGainPar.
Referenced by CbmTrdHitProducer::AddModule(), and CbmTrdClusterFinder::AddModule().
|
inlinevirtualinherited |
Definition at line 74 of file CbmTrdModuleAbstract.h.
References CbmTrdModuleAbstract::fGeoPar.
Referenced by CbmTrdHitProducer::AddModule(), and CbmTrdClusterFinder::AddModule().
|
protectedinherited |
the set of ASIC operating on the module (owned)
Definition at line 87 of file CbmTrdModuleAbstract.h.
Referenced by CbmTrdModuleSimT::FlushBuffer(), CbmTrdModuleAbstract::GetNasics(), CbmTrdModuleSimR::SetAsicPar(), CbmTrdModuleSimT::SetAsicPar(), CbmTrdModuleAbstract::SetAsicPar(), and CbmTrdModuleAbstract::~CbmTrdModuleAbstract().
|
protectedinherited |
counter for the number of calls
Definition at line 65 of file CbmTrdModuleRec.h.
Referenced by CbmTrdModuleRec::Clear().
|
private |
Definition at line 58 of file CbmTrdModuleRecR.h.
|
protectedinherited |
detection description (HV, drift) of module
Definition at line 85 of file CbmTrdModuleAbstract.h.
Referenced by CbmTrdModuleSimT::MakeDigi(), and CbmTrdModuleAbstract::SetChmbPar().
|
private |
Definition at line 73 of file CbmTrdModuleRecR.h.
Referenced by Clear().
|
protectedinherited |
module wise storage of reconstructed cluster
Definition at line 66 of file CbmTrdModuleRec.h.
Referenced by addClusters(), CbmTrdModuleRec::Clear(), CbmTrdModuleRec::GetClusters(), and CbmTrdModuleRec::~CbmTrdModuleRec().
|
private |
Definition at line 57 of file CbmTrdModuleRecR.h.
Referenced by AddDigi(), Clear(), and GetOverThreshold().
|
private |
Definition at line 71 of file CbmTrdModuleRecR.h.
Referenced by AddDigi(), Clear(), and FindClusters().
|
protectedinherited |
read-out description of module
Definition at line 83 of file CbmTrdModuleAbstract.h.
Referenced by CbmTrdModuleSimR::AddDigi(), CbmTrdModuleSimR::AddDigitoBuffer(), CbmTrdModuleSimR::AddDigitoPulseBuffer(), CbmTrdModuleSimR::CheckMulti(), CbmTrdModuleSimR::DistributeCharge(), FindClusters(), CbmTrdModuleSimT::FlushBuffer(), CbmTrdModuleAbstract::GetNcols(), CbmTrdModuleAbstract::GetNrows(), CbmTrdModuleAbstract::GetPadRowCol(), CbmTrdModuleSimR::GetTotalSteps(), CbmTrdModuleSimR::MakeDigi(), CbmTrdModuleSimT::MakeDigi(), CbmTrdModuleRecT::MakeHit(), MakeHit(), CbmTrdModuleSimR::ProcessPulseBuffer(), CbmTrdModuleSimT::ScanPadPlane(), CbmTrdModuleSimR::ScanPadPlane(), CbmTrdModuleSimR::SetAsicPar(), and CbmTrdModuleAbstract::SetDigiPar().
|
protectedinherited |
Analog to digital conversion for module.
Definition at line 89 of file CbmTrdModuleAbstract.h.
Referenced by CbmTrdModuleAbstract::SetGainPar().
|
protectedinherited |
link to gGeometry for module
Definition at line 90 of file CbmTrdModuleAbstract.h.
Referenced by CbmTrdModuleAbstract::GetDx(), CbmTrdModuleAbstract::GetDy(), CbmTrdModuleAbstract::GetDz(), CbmTrdModuleAbstract::GetPath(), CbmTrdModuleAbstract::LocalToMaster(), and CbmTrdModuleAbstract::SetGeoPar().
|
protectedinherited |
module wise storage of reconstructed hits
Definition at line 67 of file CbmTrdModuleRec.h.
Referenced by CbmTrdModuleRec::Clear(), CbmTrdModuleRec::GetHits(), CbmTrdModuleRecT::MakeHit(), MakeHit(), and CbmTrdModuleRec::~CbmTrdModuleRec().
|
protectedinherited |
layer identifier
Definition at line 79 of file CbmTrdModuleAbstract.h.
Referenced by CbmTrdModuleSimT::FlushBuffer(), CbmTrdModuleSimR::ScanPadPlane(), and CbmTrdModuleSimR::SetAsicPar().
|
protectedinherited |
unique identifier for current module
Definition at line 78 of file CbmTrdModuleAbstract.h.
Referenced by addClusters(), CbmTrdModuleSimR::AddCrosstalk(), CbmTrdModuleRecT::AddDigi(), CbmTrdModuleSimT::AddDigi(), CbmTrdModuleSimR::AddDigi(), CbmTrdModuleSimR::AddDigitoBuffer(), CbmTrdModuleSimR::CheckMulti(), FindClusters(), CbmTrdModuleSimT::FlushBuffer(), CbmTrdModuleAbstract::GetAsicAddress(), MakeHit(), CbmTrdModuleRecT::MakeHit(), CbmTrdModuleSimR::ProcessPulseBuffer(), CbmTrdModuleSimR::ScanPadPlane(), CbmTrdModuleSimR::SetAsicPar(), and CbmTrdModuleSimT::SetAsicPar().
|
protectedinherited |
rotation angle for current module
Definition at line 80 of file CbmTrdModuleAbstract.h.
|
staticconstexprprivate |
Definition at line 63 of file CbmTrdModuleRecR.h.
Referenced by MakeHit().
|
staticconstexprprivate |
Definition at line 66 of file CbmTrdModuleRecR.h.
Referenced by MakeHit().