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

Abstract class for the TRD module It provides access to the basic properties of the chamber as follows : More...

#include <CbmTrdModuleAbstract.h>

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

Public Member Functions

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

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

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

Detailed Description

Abstract class for the TRD module It provides access to the basic properties of the chamber as follows :

It define basic configuration properties

  • type in the TRD wall
  • type of pad-plane (1D or 2D)
  • type of FEE ASIC (SPADIC or FASP)

Definition at line 34 of file CbmTrdModuleAbstract.h.

Constructor & Destructor Documentation

◆ CbmTrdModuleAbstract() [1/3]

CbmTrdModuleAbstract::CbmTrdModuleAbstract ( )

Default constructor.

Definition at line 12 of file CbmTrdModuleAbstract.cxx.

◆ CbmTrdModuleAbstract() [2/3]

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

Constructor with placement.

Definition at line 15 of file CbmTrdModuleAbstract.cxx.

References fLayerId, fModAddress, and fRotation.

◆ ~CbmTrdModuleAbstract()

CbmTrdModuleAbstract::~CbmTrdModuleAbstract ( )
virtual

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

References fModAddress.

◆ GetDx()

virtual Double_t CbmTrdModuleAbstract::GetDx ( ) const
inlinevirtual

Shortcut getter size x/2 [cm].

Definition at line 44 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 46 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 48 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 50 of file CbmTrdModuleAbstract.h.

References fAsicPar, and CbmTrdParModAsic::GetNofAsics().

◆ GetNcols()

virtual Int_t CbmTrdModuleAbstract::GetNcols ( ) const
inlinevirtual

◆ GetNrows()

virtual Int_t CbmTrdModuleAbstract::GetNrows ( ) const
inlinevirtual

Shortcut getter row wise.

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

References GetNcols().

Referenced by CbmTrdModuleSim2D::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 107 of file CbmTrdModuleAbstract.h.

References fDigiPar, and 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
inlinevirtual

◆ IsChannelMasked()

bool CbmTrdModuleAbstract::IsChannelMasked ( int ch) const

Inquire the ASIC par set.

Returns
true for actively masked channel

Definition at line 30 of file CbmTrdModuleAbstract.cxx.

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

◆ 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 ( CbmTrdParModAsic * p = nullptr)
inlinevirtual

Reimplemented in CbmTrdModuleSim2D, and CbmTrdModuleSimR.

Definition at line 81 of file CbmTrdModuleAbstract.h.

References fAsicPar.

◆ SetChmbPar()

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

Definition at line 82 of file CbmTrdModuleAbstract.h.

References fChmbPar.

◆ SetDigiPar()

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

Definition at line 83 of file CbmTrdModuleAbstract.h.

References fDigiPar.

◆ SetGainPar()

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

Definition at line 84 of file CbmTrdModuleAbstract.h.

References fGainPar.

◆ SetGeoPar()

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

Definition at line 85 of file CbmTrdModuleAbstract.h.

References fGeoPar.

Member Data Documentation

◆ fAsicPar

◆ fChmbPar

const CbmTrdParModGas* CbmTrdModuleAbstract::fChmbPar = nullptr
protected

detection description (HV, drift) of module

Definition at line 94 of file CbmTrdModuleAbstract.h.

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

◆ fDigiPar

◆ fGainPar

const CbmTrdParModGain* CbmTrdModuleAbstract::fGainPar = nullptr
protected

Analog to digital conversion for module.

Definition at line 96 of file CbmTrdModuleAbstract.h.

Referenced by SetGainPar().

◆ fGeoPar

const CbmTrdParModGeo* CbmTrdModuleAbstract::fGeoPar = nullptr
protected

link to gGeometry for module

Definition at line 97 of file CbmTrdModuleAbstract.h.

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

◆ fLayerId

Char_t CbmTrdModuleAbstract::fLayerId = -1
protected

◆ fModAddress

◆ fRotation

UChar_t CbmTrdModuleAbstract::fRotation = 0
protected

rotation angle for current module

Definition at line 90 of file CbmTrdModuleAbstract.h.

Referenced by CbmTrdModuleAbstract().


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