BmnRoot 26.10.0-210-gc52d34b0
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnRun9DM Class Reference

#include <BmnRun9DM.h>

Inheritance diagram for BmnRun9DM:
Collaboration diagram for BmnRun9DM:

Public Member Functions

virtual Int_t MaxModulesInStation () const noexcept override
virtual Int_t Alignables () const noexcept override
virtual Int_t TargetID () const noexcept override
virtual Int_t IDfromHit (Int_t CbmDetectorID) const noexcept override
virtual Bool_t IgnoreHit (Int_t CbmDetectorID) const noexcept override
virtual Bool_t IgnoresSome () const noexcept override
virtual std::string DecodeID (Int_t id) const override
virtual std::vector< Composite > Composites () const override
 BmnRun9DM (Bool_t withTarget=kTRUE)
virtual ~BmnRun9DM () override=default
Public Member Functions inherited from BmnDetectorModel
 BmnDetectorModel ()=default
virtual ~BmnDetectorModel ()=default
Bool_t Init (const char *targetGeoFile=nullptr)
Bool_t Initialized () const
Int_t EncodedID (Int_t idx) const
Int_t Idx (Int_t ID) const
Int_t IdxFromHit (Int_t hitID) const
Bool_t UnknownID (Int_t hitID) const
const std::string & Description () const
const std::vector< Plane > & Geometry () const
const Layer & Target () const
Double_t TargetShift () const noexcept
void ShiftTarget (Double_t dz)

Protected Types

enum  { kFirst , kLast }

Protected Member Functions

Int_t StationModules (Int_t station) const noexcept
virtual Int_t StationAlignables (Int_t station) const noexcept
virtual Int_t FirstModule (Int_t) const noexcept
virtual Int_t FirstStation () const noexcept
virtual Int_t LastStation () const noexcept
virtual Bool_t LoadGeometry (const char *targetGeoFile) override
virtual void Reset () noexcept override
virtual Int_t NextID () noexcept override

Protected Attributes

Int_t fSystem {-1}
Int_t fStation {-1}
Int_t fModule {-1}
const Bool_t fWithTarget {kTRUE}
Protected Attributes inherited from BmnDetectorModel
std::string fDescription {"no description"}
std::vector< Plane > fPlanes
Layer fTarget {0.0, 0.0}

Static Protected Attributes

static constexpr const Int_t VSP_SYSTEM_ID {DetectorId::kVSP}
static constexpr const Int_t SIL_SYSTEM_ID {DetectorId::kSILICON}
static constexpr const Int_t GEM_SYSTEM_ID {DetectorId::kGEM}
static constexpr const Int_t TRG_SYSTEM_ID {DetectorId::kREF}
static constexpr const Int_t VSP_STATION_CNT {1}
static constexpr const Int_t SIL_STATION_CNT {4}
static constexpr const Int_t GEM_STATION_CNT {8}
static constexpr const Int_t ALL_STATION_CNT {VSP_STATION_CNT + SIL_STATION_CNT + GEM_STATION_CNT}
static constexpr const Int_t STA_NUM_START {1}
static constexpr const Int_t MOD_NUM_START {1}
static constexpr const Int_t VSP_STATION_IDX [2] {STA_NUM_START, STA_NUM_START + VSP_STATION_CNT - 1}
static constexpr const Int_t SIL_STATION_IDX [2] {VSP_STATION_IDX[kLast] + 1, VSP_STATION_IDX[kLast] + SIL_STATION_CNT}
static constexpr const Int_t GEM_STATION_IDX [2] {SIL_STATION_IDX[kLast] + 1, SIL_STATION_IDX[kLast] + GEM_STATION_CNT}
static constexpr const Int_t VSP_MODULES [VSP_STATION_CNT] {6}
static constexpr const Int_t SIL_MODULES [SIL_STATION_CNT] {6, 10, 14, 18}
static constexpr const Int_t GEM_MODULES [GEM_STATION_CNT] {8, 8, 8, 8, 8, 8, 8, 0}

Detailed Description

Definition at line 52 of file BmnRun9DM.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protected
Enumerator
kFirst 
kLast 

Definition at line 58 of file BmnRun9DM.h.

Constructor & Destructor Documentation

◆ BmnRun9DM()

BmnRun9DM::BmnRun9DM ( Bool_t withTarget = kTRUE)
inlineexplicit

Definition at line 240 of file BmnRun9DM.h.

References BmnDetectorModel::fDescription, and fWithTarget.

Referenced by BmnRun9DMflat::BmnRun9DMflat().

Here is the caller graph for this function:

◆ ~BmnRun9DM()

virtual BmnRun9DM::~BmnRun9DM ( )
overridevirtualdefault

Member Function Documentation

◆ Alignables()

virtual Int_t BmnRun9DM::Alignables ( ) const
inlineoverridevirtualnoexcept

Implements BmnDetectorModel.

Definition at line 170 of file BmnRun9DM.h.

References FirstStation(), fWithTarget, i, LastStation(), and StationAlignables().

Referenced by geometry(), and LoadGeometry().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Composites()

virtual std::vector< Composite > BmnRun9DM::Composites ( ) const
inlineoverridevirtual

Reimplemented from BmnDetectorModel.

Reimplemented in BmnRun9DMflat, and BmnRun9HalfDM.

Definition at line 210 of file BmnRun9DM.h.

References FirstStation(), LastStation(), BmnDetectorModel::Composite::leaves, BmnDetectorModel::Composite::name, STA_NUM_START, and StationAlignables().

Here is the call graph for this function:

◆ DecodeID()

virtual std::string BmnRun9DM::DecodeID ( Int_t id) const
inlineoverridevirtual

Implements BmnDetectorModel.

Definition at line 203 of file BmnRun9DM.h.

References TString::Data(), and BmnDetectorList::GetSystemNameCaps().

Referenced by comment_ids(), and geometry().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FirstModule()

virtual Int_t BmnRun9DM::FirstModule ( Int_t ) const
inlineprotectedvirtualnoexcept

Reimplemented in BmnRun9HalfDM.

Definition at line 96 of file BmnRun9DM.h.

References MOD_NUM_START.

Referenced by NextID(), and Reset().

Here is the caller graph for this function:

◆ FirstStation()

virtual Int_t BmnRun9DM::FirstStation ( ) const
inlineprotectedvirtualnoexcept

Definition at line 100 of file BmnRun9DM.h.

Referenced by Alignables(), Composites(), BmnRun9HalfDM::Composites(), MaxModulesInStation(), and Reset().

Here is the caller graph for this function:

◆ IDfromHit()

virtual Int_t BmnRun9DM::IDfromHit ( Int_t CbmDetectorID) const
inlineoverridevirtualnoexcept

Implements BmnDetectorModel.

Definition at line 184 of file BmnRun9DM.h.

◆ IgnoreHit()

virtual Bool_t BmnRun9DM::IgnoreHit ( Int_t CbmDetectorID) const
inlineoverridevirtualnoexcept

Reimplemented from BmnDetectorModel.

Reimplemented in BmnRun9HalfDM.

Definition at line 188 of file BmnRun9DM.h.

References ALL_STATION_CNT, STA_NUM_START, StationModules(), and TRG_SYSTEM_ID.

Referenced by BmnRun9HalfDM::IgnoreHit().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IgnoresSome()

virtual Bool_t BmnRun9DM::IgnoresSome ( ) const
inlineoverridevirtualnoexcept

Reimplemented from BmnDetectorModel.

Reimplemented in BmnRun9HalfDM.

Definition at line 194 of file BmnRun9DM.h.

References ALL_STATION_CNT, and StationModules().

Here is the call graph for this function:

◆ LastStation()

virtual Int_t BmnRun9DM::LastStation ( ) const
inlineprotectedvirtualnoexcept

Definition at line 101 of file BmnRun9DM.h.

References ALL_STATION_CNT.

Referenced by Alignables(), Composites(), BmnRun9HalfDM::Composites(), MaxModulesInStation(), and NextID().

Here is the caller graph for this function:

◆ LoadGeometry()

Bool_t BmnRun9DM::LoadGeometry ( const char * targetGeoFile)
overrideprotectedvirtual

Reimplemented from BmnDetectorModel.

Definition at line 42 of file BmnRun9DM.cxx.

References Alignables(), ALL_STATION_CNT, BmnGemStripStationSet::Create(), BmnDetectorModel::EncodedID(), BmnDetectorModel::fPlanes, BmnDetectorModel::fTarget, GEM_STATION_IDX, GEM_SYSTEM_ID, kFirst, TGeoUnit::millimeter, MOD_NUM_START, SIL_STATION_IDX, SIL_SYSTEM_ID, STA_NUM_START, StationModules(), TargetID(), VSP_STATION_IDX, VSP_SYSTEM_ID, x, and y.

Here is the call graph for this function:

◆ MaxModulesInStation()

virtual Int_t BmnRun9DM::MaxModulesInStation ( ) const
inlineoverridevirtualnoexcept

Implements BmnDetectorModel.

Definition at line 161 of file BmnRun9DM.h.

References FirstStation(), i, LastStation(), and StationAlignables().

Here is the call graph for this function:

◆ NextID()

virtual Int_t BmnRun9DM::NextID ( )
inlineoverrideprotectedvirtualnoexcept

Implements BmnDetectorModel.

Definition at line 119 of file BmnRun9DM.h.

References FirstModule(), fModule, fStation, fSystem, fWithTarget, GEM_SYSTEM_ID, kLast, LastStation(), SIL_STATION_IDX, SIL_SYSTEM_ID, STA_NUM_START, StationAlignables(), TargetID(), TRG_SYSTEM_ID, and VSP_STATION_IDX.

Here is the call graph for this function:

◆ Reset()

virtual void BmnRun9DM::Reset ( )
inlineoverrideprotectedvirtualnoexcept

Implements BmnDetectorModel.

Definition at line 108 of file BmnRun9DM.h.

References FirstModule(), FirstStation(), fModule, fStation, fSystem, GEM_SYSTEM_ID, SIL_STATION_CNT, SIL_SYSTEM_ID, STA_NUM_START, VSP_STATION_CNT, and VSP_SYSTEM_ID.

Here is the call graph for this function:

◆ StationAlignables()

virtual Int_t BmnRun9DM::StationAlignables ( Int_t station) const
inlineprotectedvirtualnoexcept

Reimplemented in BmnRun9HalfDM.

Definition at line 94 of file BmnRun9DM.h.

References StationModules().

Referenced by Alignables(), Composites(), MaxModulesInStation(), NextID(), and BmnRun9HalfDM::StationAlignables().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ StationModules()

Int_t BmnRun9DM::StationModules ( Int_t station) const
inlineprotectednoexcept

Definition at line 83 of file BmnRun9DM.h.

References GEM_MODULES, SIL_MODULES, SIL_STATION_CNT, VSP_MODULES, and VSP_STATION_CNT.

Referenced by BmnRun9HalfDM::FirstModule(), IgnoreHit(), BmnRun9HalfDM::IgnoreHit(), IgnoresSome(), LoadGeometry(), StationAlignables(), and BmnRun9HalfDM::StationAlignables().

Here is the caller graph for this function:

◆ TargetID()

virtual Int_t BmnRun9DM::TargetID ( ) const
inlineoverridevirtualnoexcept

Reimplemented from BmnDetectorModel.

Definition at line 178 of file BmnRun9DM.h.

References fWithTarget, MOD_NUM_START, STA_NUM_START, and TRG_SYSTEM_ID.

Referenced by LoadGeometry(), and NextID().

Here is the caller graph for this function:

Member Data Documentation

◆ ALL_STATION_CNT

const Int_t BmnRun9DM::ALL_STATION_CNT {VSP_STATION_CNT + SIL_STATION_CNT + GEM_STATION_CNT}
staticprotected

Definition at line 68 of file BmnRun9DM.h.

Referenced by IgnoreHit(), IgnoresSome(), LastStation(), and LoadGeometry().

◆ fModule

Int_t BmnRun9DM::fModule {-1}
protected

Definition at line 55 of file BmnRun9DM.h.

Referenced by NextID(), and Reset().

◆ fStation

Int_t BmnRun9DM::fStation {-1}
protected

Definition at line 55 of file BmnRun9DM.h.

Referenced by NextID(), and Reset().

◆ fSystem

Int_t BmnRun9DM::fSystem {-1}
protected

Definition at line 55 of file BmnRun9DM.h.

Referenced by NextID(), and Reset().

◆ fWithTarget

const Bool_t BmnRun9DM::fWithTarget {kTRUE}
protected

Definition at line 56 of file BmnRun9DM.h.

Referenced by BmnRun9DM(), Alignables(), NextID(), and TargetID().

◆ GEM_MODULES

const Int_t BmnRun9DM::GEM_MODULES[GEM_STATION_CNT] {8, 8, 8, 8, 8, 8, 8, 0}
staticprotected

Definition at line 76 of file BmnRun9DM.h.

Referenced by StationModules().

◆ GEM_STATION_CNT

const Int_t BmnRun9DM::GEM_STATION_CNT {8}
staticprotected

Definition at line 67 of file BmnRun9DM.h.

◆ GEM_STATION_IDX

const Int_t BmnRun9DM::GEM_STATION_IDX[2] {SIL_STATION_IDX[kLast] + 1, SIL_STATION_IDX[kLast] + GEM_STATION_CNT}
staticprotected

Definition at line 74 of file BmnRun9DM.h.

Referenced by LoadGeometry().

◆ GEM_SYSTEM_ID

const Int_t BmnRun9DM::GEM_SYSTEM_ID {DetectorId::kGEM}
staticprotected

Definition at line 65 of file BmnRun9DM.h.

Referenced by LoadGeometry(), NextID(), and Reset().

◆ MOD_NUM_START

const Int_t BmnRun9DM::MOD_NUM_START {1}
staticprotected

◆ SIL_MODULES

const Int_t BmnRun9DM::SIL_MODULES[SIL_STATION_CNT] {6, 10, 14, 18}
staticprotected

Definition at line 75 of file BmnRun9DM.h.

Referenced by StationModules().

◆ SIL_STATION_CNT

const Int_t BmnRun9DM::SIL_STATION_CNT {4}
staticprotected

Definition at line 67 of file BmnRun9DM.h.

Referenced by Reset(), and StationModules().

◆ SIL_STATION_IDX

const Int_t BmnRun9DM::SIL_STATION_IDX[2] {VSP_STATION_IDX[kLast] + 1, VSP_STATION_IDX[kLast] + SIL_STATION_CNT}
staticprotected

Definition at line 73 of file BmnRun9DM.h.

Referenced by LoadGeometry(), and NextID().

◆ SIL_SYSTEM_ID

const Int_t BmnRun9DM::SIL_SYSTEM_ID {DetectorId::kSILICON}
staticprotected

Definition at line 64 of file BmnRun9DM.h.

Referenced by LoadGeometry(), NextID(), and Reset().

◆ STA_NUM_START

const Int_t BmnRun9DM::STA_NUM_START {1}
staticprotected

◆ TRG_SYSTEM_ID

const Int_t BmnRun9DM::TRG_SYSTEM_ID {DetectorId::kREF}
staticprotected

Definition at line 66 of file BmnRun9DM.h.

Referenced by IgnoreHit(), NextID(), and TargetID().

◆ VSP_MODULES

const Int_t BmnRun9DM::VSP_MODULES[VSP_STATION_CNT] {6}
staticprotected

Definition at line 75 of file BmnRun9DM.h.

Referenced by StationModules().

◆ VSP_STATION_CNT

const Int_t BmnRun9DM::VSP_STATION_CNT {1}
staticprotected

Definition at line 67 of file BmnRun9DM.h.

Referenced by Reset(), and StationModules().

◆ VSP_STATION_IDX

const Int_t BmnRun9DM::VSP_STATION_IDX[2] {STA_NUM_START, STA_NUM_START + VSP_STATION_CNT - 1}
staticprotected

Definition at line 72 of file BmnRun9DM.h.

Referenced by LoadGeometry(), and NextID().

◆ VSP_SYSTEM_ID

const Int_t BmnRun9DM::VSP_SYSTEM_ID {DetectorId::kVSP}
staticconstexprprotected

Definition at line 64 of file BmnRun9DM.h.

Referenced by LoadGeometry(), and Reset().


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