CbmRoot
Loading...
Searching...
No Matches
CbmTrdModuleRec Class Referenceabstract

Abstract class for module wise cluster finding and hit reconstruction. More...

#include <CbmTrdModuleRec.h>

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

Public Member Functions

 CbmTrdModuleRec ()
 Default constructor.
 
 CbmTrdModuleRec (Int_t mod, Int_t ly=-1, Int_t rot=0)
 Constructor with placement.
 
virtual ~CbmTrdModuleRec ()
 
virtual Bool_t AddDigi (const CbmTrdDigi *, Int_t)
 Add digi to local module.
 
virtual void Clear (Option_t *opt="")
 Clear local storage.
 
virtual Bool_t PreProcessHits ()
 Hit quality assesment.
 
virtual Bool_t PostProcessHits ()
 Hit quality assesment.
 
virtual Int_t FindClusters (bool clr=true)=0
 Steering routine for finding digits clusters.
 
virtual Int_t GetOverThreshold () const
 
virtual TClonesArray * GetClusters ()
 
virtual const TClonesArray * GetClusters () const
 
virtual TClonesArray * GetHits ()
 
virtual const TClonesArray * GetHits () const
 
virtual Bool_t MakeHits ()=0
 Steering routine for building hits.
 
virtual CbmTrdHitMakeHit (Int_t cId, const CbmTrdCluster *c, std::vector< const CbmTrdDigi * > *digis)=0
 Steering routine for converting cluster to hit.
 
virtual Double_t GetDx () const
 Shortcut getter size x/2 [cm].
 
virtual Double_t GetDy () const
 Shortcut getter size y/2 [cm].
 
virtual Double_t GetDz () const
 Shortcut getter size z/2 [cm].
 
virtual Int_t GetNasics () const
 Shortcut getter ASICs number module wise.
 
virtual Int_t GetNcols () const
 Shortcut getter column size.
 
virtual Int_t GetNrows () const
 Shortcut getter row wise.
 
virtual Int_t GetAsicAddress (Int_t id) const
 Addressing ASIC on module based on id.
 
virtual Int_t GetPadAddress (Int_t r, Int_t c) const
 Addressing read-out pads on module based on (row,col)
 
virtual Int_t GetPadRowCol (Int_t address, Int_t &c) const
 Addressing read-out pads based on module address.
 
virtual const Char_t * GetPath () const
 
bool IsChannelMasked (int ch) const
 Inquire the ASIC par set.
 
virtual void LocalToMaster (Double_t in[3], Double_t out[3])
 
virtual void SetAsicPar (CbmTrdParModAsic *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
 
TClonesArray * fClusters
 module wise storage of reconstructed cluster
 
TClonesArray * fHits
 module wise storage of reconstructed hits
 
UShort_t fModAddress = 0
 unique identifier for current module
 
Char_t fLayerId = -1
 layer identifier
 
UChar_t fRotation = 0
 rotation angle for current module
 
const CbmTrdParModDigifDigiPar = nullptr
 read-out description of module
 
const CbmTrdParModGasfChmbPar = nullptr
 detection description (HV, drift) of module
 
CbmTrdParModAsicfAsicPar = nullptr
 the set of ASIC operating on the module (owned)
 
const CbmTrdParModGainfGainPar = nullptr
 Analog to digital conversion for module.
 
const CbmTrdParModGeofGeoPar = nullptr
 link to gGeometry for module
 

Private Member Functions

 CbmTrdModuleRec (const CbmTrdModuleRec &ref)
 
const CbmTrdModuleRecoperator= (const CbmTrdModuleRec &ref)
 

Detailed Description

Abstract class for module wise cluster finding and hit reconstruction.

Definition at line 20 of file CbmTrdModuleRec.h.

Constructor & Destructor Documentation

◆ CbmTrdModuleRec() [1/3]

CbmTrdModuleRec::CbmTrdModuleRec ( )

Default constructor.

Definition at line 10 of file CbmTrdModuleRec.cxx.

◆ CbmTrdModuleRec() [2/3]

CbmTrdModuleRec::CbmTrdModuleRec ( Int_t mod,
Int_t ly = -1,
Int_t rot = 0 )

Constructor with placement.

Definition at line 19 of file CbmTrdModuleRec.cxx.

◆ ~CbmTrdModuleRec()

CbmTrdModuleRec::~CbmTrdModuleRec ( )
virtual

Definition at line 28 of file CbmTrdModuleRec.cxx.

References fClusters, and fHits.

◆ CbmTrdModuleRec() [3/3]

CbmTrdModuleRec::CbmTrdModuleRec ( const CbmTrdModuleRec & ref)
private

Member Function Documentation

◆ AddDigi()

virtual Bool_t CbmTrdModuleRec::AddDigi ( const CbmTrdDigi * ,
Int_t  )
inlinevirtual

Add digi to local module.

Reimplemented in CbmTrdModuleRec2D, and CbmTrdModuleRecR.

Definition at line 36 of file CbmTrdModuleRec.h.

Referenced by CbmTrdClusterFinder::addDigiToModule().

◆ Clear()

void CbmTrdModuleRec::Clear ( Option_t * opt = "")
virtual

Clear local storage.

Reimplemented in CbmTrdModuleRecR.

Definition at line 41 of file CbmTrdModuleRec.cxx.

References fCalled, fClusters, and fHits.

Referenced by CbmTrdModuleRecR::Clear().

◆ FindClusters()

virtual Int_t CbmTrdModuleRec::FindClusters ( bool clr = true)
pure virtual

Steering routine for finding digits clusters.

Implemented in CbmTrdModuleRec2D, and CbmTrdModuleRecR.

Referenced by CbmTrdClusterFinder::processDigisInModules().

◆ GetAsicAddress()

virtual Int_t CbmTrdModuleAbstract::GetAsicAddress ( Int_t id) const
inlinevirtualinherited

Addressing ASIC on module based on id.

Parameters
[in]idmodule wise ASIC identifier
Returns
ASIC address within experiment

Definition at line 59 of file CbmTrdModuleAbstract.h.

References CbmTrdModuleAbstract::fModAddress.

◆ GetClusters() [1/2]

virtual TClonesArray * CbmTrdModuleRec::GetClusters ( )
inlinevirtual

Definition at line 50 of file CbmTrdModuleRec.h.

References fClusters.

Referenced by CbmTrdClusterFinder::processDigisInModules().

◆ GetClusters() [2/2]

virtual const TClonesArray * CbmTrdModuleRec::GetClusters ( ) const
inlinevirtual

Definition at line 51 of file CbmTrdModuleRec.h.

References fClusters.

◆ GetDx()

virtual Double_t CbmTrdModuleAbstract::GetDx ( ) const
inlinevirtualinherited

Shortcut getter size x/2 [cm].

Definition at line 44 of file CbmTrdModuleAbstract.h.

References CbmTrdModuleAbstract::fGeoPar, and CbmTrdParModGeo::GetDX().

Referenced by CbmTrdModuleSimR::SetAsicPar().

◆ GetDy()

virtual Double_t CbmTrdModuleAbstract::GetDy ( ) const
inlinevirtualinherited

Shortcut getter size y/2 [cm].

Definition at line 46 of file CbmTrdModuleAbstract.h.

References CbmTrdModuleAbstract::fGeoPar, and CbmTrdParModGeo::GetDY().

Referenced by CbmTrdModuleSimR::SetAsicPar().

◆ GetDz()

virtual Double_t CbmTrdModuleAbstract::GetDz ( ) const
inlinevirtualinherited

Shortcut getter size z/2 [cm].

Definition at line 48 of file CbmTrdModuleAbstract.h.

References CbmTrdModuleAbstract::fGeoPar, and CbmTrdParModGeo::GetDZ().

◆ GetHits() [1/2]

virtual TClonesArray * CbmTrdModuleRec::GetHits ( )
inlinevirtual

Definition at line 52 of file CbmTrdModuleRec.h.

References fHits.

Referenced by CbmTrdHitProducer::addModuleHits().

◆ GetHits() [2/2]

virtual const TClonesArray * CbmTrdModuleRec::GetHits ( ) const
inlinevirtual

Definition at line 53 of file CbmTrdModuleRec.h.

References fHits.

◆ GetNasics()

virtual Int_t CbmTrdModuleAbstract::GetNasics ( ) const
inlinevirtualinherited

Shortcut getter ASICs number module wise.

Definition at line 50 of file CbmTrdModuleAbstract.h.

References CbmTrdModuleAbstract::fAsicPar, and CbmTrdParModAsic::GetNofAsics().

◆ GetNcols()

virtual Int_t CbmTrdModuleAbstract::GetNcols ( ) const
inlinevirtualinherited

◆ GetNrows()

virtual Int_t CbmTrdModuleAbstract::GetNrows ( ) const
inlinevirtualinherited

Shortcut getter row wise.

Definition at line 54 of file CbmTrdModuleAbstract.h.

References CbmTrdModuleAbstract::fDigiPar, and CbmTrdParModDigi::GetNofRows().

◆ GetOverThreshold()

virtual Int_t CbmTrdModuleRec::GetOverThreshold ( ) const
inlinevirtual

Reimplemented in CbmTrdModuleRec2D, and CbmTrdModuleRecR.

Definition at line 49 of file CbmTrdModuleRec.h.

Referenced by CbmTrdClusterFinder::processDigisInModules().

◆ GetPadAddress()

virtual Int_t CbmTrdModuleAbstract::GetPadAddress ( Int_t r,
Int_t c ) const
inlinevirtualinherited

Addressing read-out pads on module based on (row,col)

Parameters
[in]rglobal row id (not sector wise)
[in]cglobal column id
Returns
pad address within module

Definition at line 65 of file CbmTrdModuleAbstract.h.

References CbmTrdModuleAbstract::GetNcols().

Referenced by CbmTrdModuleSim2D::ScanPadPlane().

◆ GetPadRowCol()

Int_t CbmTrdModuleAbstract::GetPadRowCol ( Int_t address,
Int_t & c ) const
inlinevirtualinherited

Addressing read-out pads based on module address.

Parameters
[in]addresspad address within module
[in]con return global column id
Returns
global row address within module

Definition at line 107 of file CbmTrdModuleAbstract.h.

References CbmTrdModuleAbstract::fDigiPar, and CbmTrdModuleAbstract::GetNcols().

Referenced by CbmTrdModuleRec2D::AddDigi(), CbmTrdModuleRec2D::CheckMerge(), CbmTrdModuleSim2D::FlushBuffer(), CbmTrdModuleRec2D::LoadDigis(), CbmTrdModuleRec2D::LoadDigisRC(), CbmTrdModuleRec2D::MergeDigis(), and CbmTrdModuleRec2D::ProjectDigis().

◆ GetPath()

virtual const Char_t * CbmTrdModuleAbstract::GetPath ( ) const
inlinevirtualinherited

◆ IsChannelMasked()

bool CbmTrdModuleAbstract::IsChannelMasked ( int ch) const
inherited

Inquire the ASIC par set.

Returns
true for actively masked channel

Definition at line 30 of file CbmTrdModuleAbstract.cxx.

References CbmTrdModuleAbstract::fAsicPar, CbmTrdParModAsic::GetAsicPar(), and CbmTrdParAsic::IsChannelMasked().

◆ LocalToMaster()

void CbmTrdModuleAbstract::LocalToMaster ( Double_t in[3],
Double_t out[3] )
virtualinherited

◆ MakeHit()

virtual CbmTrdHit * CbmTrdModuleRec::MakeHit ( Int_t cId,
const CbmTrdCluster * c,
std::vector< const CbmTrdDigi * > * digis )
pure virtual

Steering routine for converting cluster to hit.

Implemented in CbmTrdModuleRec2D, and CbmTrdModuleRecR.

◆ MakeHits()

virtual Bool_t CbmTrdModuleRec::MakeHits ( )
pure virtual

Steering routine for building hits.

Implemented in CbmTrdModuleRec2D, and CbmTrdModuleRecR.

◆ operator=()

const CbmTrdModuleRec & CbmTrdModuleRec::operator= ( const CbmTrdModuleRec & ref)
private

◆ PostProcessHits()

virtual Bool_t CbmTrdModuleRec::PostProcessHits ( )
inlinevirtual

Hit quality assesment.

Reimplemented in CbmTrdModuleRec2D.

Definition at line 44 of file CbmTrdModuleRec.h.

◆ PreProcessHits()

virtual Bool_t CbmTrdModuleRec::PreProcessHits ( )
inlinevirtual

Hit quality assesment.

Reimplemented in CbmTrdModuleRec2D.

Definition at line 42 of file CbmTrdModuleRec.h.

◆ SetAsicPar()

virtual void CbmTrdModuleAbstract::SetAsicPar ( CbmTrdParModAsic * p = nullptr)
inlinevirtualinherited

Reimplemented in CbmTrdModuleSim2D, and CbmTrdModuleSimR.

Definition at line 81 of file CbmTrdModuleAbstract.h.

References CbmTrdModuleAbstract::fAsicPar.

◆ SetChmbPar()

virtual void CbmTrdModuleAbstract::SetChmbPar ( const CbmTrdParModGas * p)
inlinevirtualinherited

Definition at line 82 of file CbmTrdModuleAbstract.h.

References CbmTrdModuleAbstract::fChmbPar.

◆ SetDigiPar()

virtual void CbmTrdModuleAbstract::SetDigiPar ( const CbmTrdParModDigi * p)
inlinevirtualinherited

Definition at line 83 of file CbmTrdModuleAbstract.h.

References CbmTrdModuleAbstract::fDigiPar.

◆ SetGainPar()

virtual void CbmTrdModuleAbstract::SetGainPar ( const CbmTrdParModGain * p)
inlinevirtualinherited

Definition at line 84 of file CbmTrdModuleAbstract.h.

References CbmTrdModuleAbstract::fGainPar.

◆ SetGeoPar()

virtual void CbmTrdModuleAbstract::SetGeoPar ( const CbmTrdParModGeo * p)
inlinevirtualinherited

Definition at line 85 of file CbmTrdModuleAbstract.h.

References CbmTrdModuleAbstract::fGeoPar.

Member Data Documentation

◆ fAsicPar

◆ fCalled

UInt_t CbmTrdModuleRec::fCalled
protected

counter for the number of calls

Definition at line 65 of file CbmTrdModuleRec.h.

Referenced by Clear().

◆ fChmbPar

const CbmTrdParModGas* CbmTrdModuleAbstract::fChmbPar = nullptr
protectedinherited

detection description (HV, drift) of module

Definition at line 94 of file CbmTrdModuleAbstract.h.

Referenced by CbmTrdModuleSim2D::AddDigi(), CbmTrdModuleSim2D::MakeDigi(), and CbmTrdModuleAbstract::SetChmbPar().

◆ fClusters

TClonesArray* CbmTrdModuleRec::fClusters
protected

module wise storage of reconstructed cluster

Definition at line 66 of file CbmTrdModuleRec.h.

Referenced by CbmTrdModuleRecR::addClusters(), Clear(), GetClusters(), GetClusters(), and ~CbmTrdModuleRec().

◆ fDigiPar

◆ fGainPar

const CbmTrdParModGain* CbmTrdModuleAbstract::fGainPar = nullptr
protectedinherited

Analog to digital conversion for module.

Definition at line 96 of file CbmTrdModuleAbstract.h.

Referenced by CbmTrdModuleAbstract::SetGainPar().

◆ fGeoPar

const CbmTrdParModGeo* CbmTrdModuleAbstract::fGeoPar = nullptr
protectedinherited

◆ fHits

TClonesArray* CbmTrdModuleRec::fHits
protected

◆ fLayerId

Char_t CbmTrdModuleAbstract::fLayerId = -1
protectedinherited

◆ fModAddress

◆ fRotation

UChar_t CbmTrdModuleAbstract::fRotation = 0
protectedinherited

rotation angle for current module

Definition at line 90 of file CbmTrdModuleAbstract.h.

Referenced by CbmTrdModuleAbstract::CbmTrdModuleAbstract().


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