BmnRoot 26.10.0-233-gb9bbe585
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnDetectorModel Class Referenceabstract

#include <BmnDetectorModel.h>

Inheritance diagram for BmnDetectorModel:
Collaboration diagram for BmnDetectorModel:

Classes

struct  Composite
struct  Plane
struct  Layer

Public Member Functions

virtual Int_t MaxModulesInStation () const =0
virtual Int_t Alignables () const =0
virtual Int_t IDfromHit (Int_t HitDetectorID) const =0
virtual Bool_t IgnoreHit (Int_t) const
virtual Bool_t IgnoresSome () const
virtual std::vector< Composite > Composites () const
virtual Int_t TargetID () const
virtual std::string DecodeID (Int_t id) const =0
 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 Member Functions

virtual void Reset ()=0
virtual Int_t NextID ()=0
virtual Bool_t LoadGeometry (const char *)

Protected Attributes

std::string fDescription {"no description"}
std::vector< Plane > fPlanes
Layer fTarget {0.0, 0.0}

Private Attributes

Bool_t fInitialized {kFALSE}
std::map< Int_t, Int_t > fIDtoIdx
VecInt_t fIdxToID
Double_t fTargetShift {0.0}

Detailed Description

Definition at line 27 of file BmnDetectorModel.h.

Constructor & Destructor Documentation

◆ BmnDetectorModel()

BmnDetectorModel::BmnDetectorModel ( )
default

◆ ~BmnDetectorModel()

virtual BmnDetectorModel::~BmnDetectorModel ( )
virtualdefault

Member Function Documentation

◆ Alignables()

virtual Int_t BmnDetectorModel::Alignables ( ) const
pure virtual

Implemented in BmnRun8DM, BmnRun9DM, and BmnSimpleDM.

Referenced by BmnAlignHierarchy::BeginBuild(), BmnAlignHierarchy::BuildFlat(), Init(), BmnAlignTestTask::Make(), and BmnAlignConfig::WriteSolution().

Here is the caller graph for this function:

◆ Composites()

virtual std::vector< Composite > BmnDetectorModel::Composites ( ) const
inlinevirtual

Reimplemented in BmnRun8HalfDM, BmnRun9DM, BmnRun9DMflat, and BmnRun9HalfDM.

Definition at line 81 of file BmnDetectorModel.h.

◆ DecodeID()

virtual std::string BmnDetectorModel::DecodeID ( Int_t id) const
pure virtual

Implemented in BmnRun8DM, BmnRun9DM, and BmnSimpleDM.

Referenced by BmnAlignHierarchy::BeginBuild(), BmnAlignConfig::LoadConstraints(), BmnAlignConfig::LoadPresigmas(), BmnAlignTestTask::Make(), and BmnAlignConfig::ReadSolution().

Here is the caller graph for this function:

◆ Description()

const std::string & BmnDetectorModel::Description ( ) const
inline

Definition at line 103 of file BmnDetectorModel.h.

References fDescription.

Referenced by BmnAligner::BmnAligner(), and mp2prep().

Here is the caller graph for this function:

◆ EncodedID()

Int_t BmnDetectorModel::EncodedID ( Int_t idx) const
inline

Definition at line 96 of file BmnDetectorModel.h.

References fIdxToID, and fInitialized.

Referenced by BmnAlignHierarchy::BeginBuild(), expandS(), geometry(), histo(), BmnRun9DM::LoadGeometry(), BmnAlignTestTask::Make(), BmnAlignReport::ModesBelow(), mp2prep(), and BmnAlignConfig::WriteSolution().

Here is the caller graph for this function:

◆ Geometry()

const std::vector< Plane > & BmnDetectorModel::Geometry ( ) const
inline

Definition at line 104 of file BmnDetectorModel.h.

References fPlanes.

Referenced by geometry(), and BmnAlignConfig::LoadConstraints().

Here is the caller graph for this function:

◆ IDfromHit()

virtual Int_t BmnDetectorModel::IDfromHit ( Int_t HitDetectorID) const
pure virtual

Implemented in BmnRun8cgDM, BmnRun8DM, BmnRun9DM, and BmnSimpleDM.

Referenced by IdxFromHit().

Here is the caller graph for this function:

◆ Idx()

Int_t BmnDetectorModel::Idx ( Int_t ID) const
inline

Definition at line 97 of file BmnDetectorModel.h.

References fIDtoIdx, and fInitialized.

Referenced by expandS(), histo(), BmnAlignConfig::LoadConstraints(), BmnAlignConfig::LoadPresigmas(), BmnAlignTestTask::Make(), mp2prep(), BmnAlignConfig::ReadSolution(), and ShiftTarget().

Here is the caller graph for this function:

◆ IdxFromHit()

Int_t BmnDetectorModel::IdxFromHit ( Int_t hitID) const
inline

Definition at line 98 of file BmnDetectorModel.h.

References fIDtoIdx, fInitialized, and IDfromHit().

Referenced by BmnAlignTestTask::Make().

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

◆ IgnoreHit()

virtual Bool_t BmnDetectorModel::IgnoreHit ( Int_t ) const
inlinevirtual

Reimplemented in BmnRun8cgHalfDM, BmnRun8GemBotDM, BmnRun8GemTopDM, BmnRun8HalfDM, BmnRun9DM, and BmnRun9HalfDM.

Definition at line 76 of file BmnDetectorModel.h.

Referenced by BmnAcceptHit().

Here is the caller graph for this function:

◆ IgnoresSome()

virtual Bool_t BmnDetectorModel::IgnoresSome ( ) const
inlinevirtual

Reimplemented in BmnRun8cgHalfDM, BmnRun8HalfDM, BmnRun9DM, and BmnRun9HalfDM.

Definition at line 78 of file BmnDetectorModel.h.

◆ Init()

Bool_t BmnDetectorModel::Init ( const char * targetGeoFile = nullptr)
inline

Definition at line 120 of file BmnDetectorModel.h.

References Alignables(), fIDtoIdx, fIdxToID, fInitialized, fPlanes, fTarget, fTargetShift, LoadGeometry(), NextID(), and Reset().

Referenced by align(), expandS(), expdata(), expdataNN(), geometry(), histo(), histoGL(), makett(), mp2prep(), review(), run_reco_aln(), tracks3d(), and vertex().

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

◆ Initialized()

Bool_t BmnDetectorModel::Initialized ( ) const
inline

Definition at line 95 of file BmnDetectorModel.h.

References fInitialized.

Referenced by BmnAligner::BmnAligner().

Here is the caller graph for this function:

◆ LoadGeometry()

virtual Bool_t BmnDetectorModel::LoadGeometry ( const char * )
inlineprotectedvirtual

Reimplemented in BmnRun9DM.

Definition at line 67 of file BmnDetectorModel.h.

Referenced by Init().

Here is the caller graph for this function:

◆ MaxModulesInStation()

virtual Int_t BmnDetectorModel::MaxModulesInStation ( ) const
pure virtual

Implemented in BmnRun8DM, BmnRun9DM, and BmnSimpleDM.

◆ NextID()

virtual Int_t BmnDetectorModel::NextID ( )
protectedpure virtual

Implemented in BmnRun8cgDM, BmnRun8cgHalfDM, BmnRun8DM, BmnRun9DM, and BmnSimpleDM.

Referenced by Init().

Here is the caller graph for this function:

◆ Reset()

virtual void BmnDetectorModel::Reset ( )
protectedpure virtual

Implemented in BmnRun8cgDM, BmnRun8cgHalfDM, BmnRun8DM, BmnRun9DM, and BmnSimpleDM.

Referenced by Init().

Here is the caller graph for this function:

◆ ShiftTarget()

void BmnDetectorModel::ShiftTarget ( Double_t dz)
inline

Definition at line 111 of file BmnDetectorModel.h.

References fPlanes, fTarget, fTargetShift, Idx(), and TargetID().

Here is the call graph for this function:

◆ Target()

const Layer & BmnDetectorModel::Target ( ) const
inline

Definition at line 105 of file BmnDetectorModel.h.

References fTarget.

Referenced by BmnRootIterator::BmnRootIterator(), geometry(), BmnAlignTestTask::Make(), and vertex().

Here is the caller graph for this function:

◆ TargetID()

virtual Int_t BmnDetectorModel::TargetID ( ) const
inlinevirtual

Reimplemented in BmnRun9DM.

Definition at line 84 of file BmnDetectorModel.h.

Referenced by BmnRootIterator::BmnRootIterator(), BmnAlignTestTask::Make(), BmnAlignConfig::ReadSolution(), ShiftTarget(), and BmnAlignConfig::WriteSolution().

Here is the caller graph for this function:

◆ TargetShift()

Double_t BmnDetectorModel::TargetShift ( ) const
inlinenoexcept

Definition at line 106 of file BmnDetectorModel.h.

References fTargetShift.

Referenced by BmnAlignConfig::ReadSolution(), and BmnAlignConfig::WriteSolution().

Here is the caller graph for this function:

◆ UnknownID()

Bool_t BmnDetectorModel::UnknownID ( Int_t hitID) const
inline

Definition at line 99 of file BmnDetectorModel.h.

References fIDtoIdx, and fInitialized.

Referenced by expandS(), mp2prep(), and BmnAlignConfig::ReadSolution().

Here is the caller graph for this function:

Member Data Documentation

◆ fDescription

◆ fIDtoIdx

std::map<Int_t, Int_t> BmnDetectorModel::fIDtoIdx
private

Definition at line 53 of file BmnDetectorModel.h.

Referenced by Idx(), IdxFromHit(), Init(), and UnknownID().

◆ fIdxToID

VecInt_t BmnDetectorModel::fIdxToID
private

Definition at line 54 of file BmnDetectorModel.h.

Referenced by EncodedID(), and Init().

◆ fInitialized

Bool_t BmnDetectorModel::fInitialized {kFALSE}
private

Definition at line 51 of file BmnDetectorModel.h.

Referenced by EncodedID(), Idx(), IdxFromHit(), Init(), Initialized(), and UnknownID().

◆ fPlanes

std::vector<Plane> BmnDetectorModel::fPlanes
protected

Definition at line 58 of file BmnDetectorModel.h.

Referenced by Geometry(), Init(), BmnRun9DM::LoadGeometry(), and ShiftTarget().

◆ fTarget

Layer BmnDetectorModel::fTarget {0.0, 0.0}
protected

Definition at line 59 of file BmnDetectorModel.h.

Referenced by Init(), BmnRun9DM::LoadGeometry(), ShiftTarget(), and Target().

◆ fTargetShift

Double_t BmnDetectorModel::fTargetShift {0.0}
private

Definition at line 55 of file BmnDetectorModel.h.

Referenced by Init(), ShiftTarget(), and TargetShift().


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