CbmRoot
CbmTrdModuleAbstract Class Reference

Abstract class for TRD module. More...

#include <CbmTrdModuleAbstract.h>

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

Public Member Functions

 CbmTrdModuleAbstract ()
 Default constructor. More...
 
 CbmTrdModuleAbstract (Int_t mod, Int_t ly, Int_t rot)
 Constructor with placement. More...
 
virtual ~CbmTrdModuleAbstract ()
 
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

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 CbmTrdParModDigifDigiPar
 read-out description of module More...
 
const CbmTrdParModGasfChmbPar
 detection description (HV, drift) of module More...
 
CbmTrdParSetAsicfAsicPar
 the set of ASIC operating on the module (owned) More...
 
const CbmTrdParModGainfGainPar
 Analog to digital conversion for module. More...
 
const CbmTrdParModGeofGeoPar
 link to gGeometry for module More...
 

Private Member Functions

 CbmTrdModuleAbstract (const CbmTrdModuleAbstract &ref)
 
const CbmTrdModuleAbstractoperator= (const CbmTrdModuleAbstract &ref)
 

Detailed Description

Abstract class for TRD module.

Definition at line 18 of file CbmTrdModuleAbstract.h.

Constructor & Destructor Documentation

◆ CbmTrdModuleAbstract() [1/3]

CbmTrdModuleAbstract::CbmTrdModuleAbstract ( )

Default constructor.

Definition at line 4 of file CbmTrdModuleAbstract.cxx.

◆ CbmTrdModuleAbstract() [2/3]

CbmTrdModuleAbstract::CbmTrdModuleAbstract ( Int_t  mod,
Int_t  ly,
Int_t  rot 
)

Constructor with placement.

Definition at line 16 of file CbmTrdModuleAbstract.cxx.

◆ ~CbmTrdModuleAbstract()

CbmTrdModuleAbstract::~CbmTrdModuleAbstract ( )
virtual

Definition at line 28 of file CbmTrdModuleAbstract.cxx.

References fAsicPar.

◆ CbmTrdModuleAbstract() [3/3]

CbmTrdModuleAbstract::CbmTrdModuleAbstract ( const CbmTrdModuleAbstract ref)
private

Member Function Documentation

◆ GetAsicAddress()

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

Addressing ASIC on module based on id.

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

Definition at line 49 of file CbmTrdModuleAbstract.h.

References fModAddress.

◆ GetDx()

virtual Double_t CbmTrdModuleAbstract::GetDx ( ) const
inlinevirtual

Shortcut getter size x/2 [cm].

Definition at line 28 of file CbmTrdModuleAbstract.h.

References fGeoPar, and CbmTrdParModGeo::GetDX().

Referenced by CbmTrdModuleSimR::SetAsicPar().

◆ GetDy()

virtual Double_t CbmTrdModuleAbstract::GetDy ( ) const
inlinevirtual

Shortcut getter size y/2 [cm].

Definition at line 30 of file CbmTrdModuleAbstract.h.

References fGeoPar, and CbmTrdParModGeo::GetDY().

Referenced by CbmTrdModuleSimR::SetAsicPar().

◆ GetDz()

virtual Double_t CbmTrdModuleAbstract::GetDz ( ) const
inlinevirtual

Shortcut getter size z/2 [cm].

Definition at line 32 of file CbmTrdModuleAbstract.h.

References fGeoPar, and CbmTrdParModGeo::GetDZ().

◆ GetNasics()

virtual Int_t CbmTrdModuleAbstract::GetNasics ( ) const
inlinevirtual

Shortcut getter ASICs number module wise.

Definition at line 34 of file CbmTrdModuleAbstract.h.

References fAsicPar, and CbmTrdParSetAsic::GetNofAsics().

◆ GetNcols()

virtual Int_t CbmTrdModuleAbstract::GetNcols ( ) const
inlinevirtual

Shortcut getter column size.

Definition at line 38 of file CbmTrdModuleAbstract.h.

References fDigiPar, and CbmTrdParModDigi::GetNofColumns().

Referenced by GetPadAddress(), and GetPadRowCol().

◆ GetNrows()

virtual Int_t CbmTrdModuleAbstract::GetNrows ( ) const
inlinevirtual

Shortcut getter row wise.

Definition at line 42 of file CbmTrdModuleAbstract.h.

References fDigiPar, and CbmTrdParModDigi::GetNofRows().

◆ GetPadAddress()

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

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 57 of file CbmTrdModuleAbstract.h.

References GetNcols().

Referenced by CbmTrdModuleSimT::ScanPadPlane().

◆ GetPadRowCol()

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

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 100 of file CbmTrdModuleAbstract.h.

References fDigiPar, and GetNcols().

Referenced by CbmTrdModuleRecT::AddDigi(), CbmTrdModuleSimT::FlushBuffer(), CbmTrdModuleRecT::LoadDigis(), CbmTrdModuleRecT::MakeHit(), and CbmTrdModuleRecT::MergeDigis().

◆ GetPath()

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

◆ LocalToMaster()

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

◆ operator=()

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

◆ SetAsicPar()

virtual void CbmTrdModuleAbstract::SetAsicPar ( CbmTrdParSetAsic p = nullptr)
inlinevirtual

Reimplemented in CbmTrdModuleSimT, and CbmTrdModuleSimR.

Definition at line 70 of file CbmTrdModuleAbstract.h.

References fAsicPar.

Referenced by CbmTrdHitProducer::AddModule(), and CbmTrdClusterFinder::AddModule().

◆ SetChmbPar()

virtual void CbmTrdModuleAbstract::SetChmbPar ( const CbmTrdParModGas p)
inlinevirtual

Definition at line 71 of file CbmTrdModuleAbstract.h.

References fChmbPar.

Referenced by CbmTrdHitProducer::AddModule(), and CbmTrdClusterFinder::AddModule().

◆ SetDigiPar()

virtual void CbmTrdModuleAbstract::SetDigiPar ( const CbmTrdParModDigi p)
inlinevirtual

Definition at line 72 of file CbmTrdModuleAbstract.h.

References fDigiPar.

Referenced by CbmTrdHitProducer::AddModule(), and CbmTrdClusterFinder::AddModule().

◆ SetGainPar()

virtual void CbmTrdModuleAbstract::SetGainPar ( const CbmTrdParModGain p)
inlinevirtual

Definition at line 73 of file CbmTrdModuleAbstract.h.

References fGainPar.

Referenced by CbmTrdHitProducer::AddModule(), and CbmTrdClusterFinder::AddModule().

◆ SetGeoPar()

virtual void CbmTrdModuleAbstract::SetGeoPar ( const CbmTrdParModGeo p)
inlinevirtual

Definition at line 74 of file CbmTrdModuleAbstract.h.

References fGeoPar.

Referenced by CbmTrdHitProducer::AddModule(), and CbmTrdClusterFinder::AddModule().

Member Data Documentation

◆ fAsicPar

CbmTrdParSetAsic* CbmTrdModuleAbstract::fAsicPar
protected

the set of ASIC operating on the module (owned)

Definition at line 87 of file CbmTrdModuleAbstract.h.

Referenced by CbmTrdModuleSimT::FlushBuffer(), GetNasics(), CbmTrdModuleSimR::SetAsicPar(), CbmTrdModuleSimT::SetAsicPar(), SetAsicPar(), and ~CbmTrdModuleAbstract().

◆ fChmbPar

const CbmTrdParModGas* CbmTrdModuleAbstract::fChmbPar
protected

detection description (HV, drift) of module

Definition at line 85 of file CbmTrdModuleAbstract.h.

Referenced by CbmTrdModuleSimT::MakeDigi(), and SetChmbPar().

◆ fDigiPar

◆ fGainPar

const CbmTrdParModGain* CbmTrdModuleAbstract::fGainPar
protected

Analog to digital conversion for module.

Definition at line 89 of file CbmTrdModuleAbstract.h.

Referenced by SetGainPar().

◆ fGeoPar

const CbmTrdParModGeo* CbmTrdModuleAbstract::fGeoPar
protected

link to gGeometry for module

Definition at line 90 of file CbmTrdModuleAbstract.h.

Referenced by GetDx(), GetDy(), GetDz(), GetPath(), LocalToMaster(), and SetGeoPar().

◆ fLayerId

Char_t CbmTrdModuleAbstract::fLayerId
protected

◆ fModAddress

◆ fRotation

UChar_t CbmTrdModuleAbstract::fRotation
protected

rotation angle for current module

Definition at line 80 of file CbmTrdModuleAbstract.h.


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