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

#include <BmnATestDetector.h>

Inheritance diagram for BmnATestDetector:
Collaboration diagram for BmnATestDetector:

Public Types

typedef std::vector< BmnATestDetectorPlane > DetectorSet

Public Member Functions

 BmnATestDetector (Double_t detectorStep, const char *dumpPath=nullptr)
 BmnATestDetector (const char *jsonPath)
const BmnATestDetectorPlane * GetDetectors () const
const SVectGL * GetTestA () const
Double_t GetMinZ () const
Double_t GetMaxZ () const
Bool_t Save (const char *path) const
Bool_t Load (const char *path)
Public Member Functions inherited from BmnSimpleDM
virtual Int_t MaxModulesInStation () const noexcept override
virtual Int_t Alignables () const noexcept override
virtual Int_t IDfromHit (Int_t HitDetectorID) const noexcept override
virtual std::string DecodeID (Int_t id) const override
 BmnSimpleDM ()=delete
 BmnSimpleDM (Int_t moduleCnt)
virtual ~BmnSimpleDM () override
Public Member Functions inherited from BmnDetectorModel
virtual Bool_t IgnoreHit (Int_t) const
virtual Bool_t IgnoresSome () const
virtual std::vector< Composite > Composites () const
virtual Int_t TargetID () const
 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)

Private Member Functions

void RebuildDetectors ()

Private Attributes

Double_t fNominalZ [BMN_TEST_MODULE_COUNT]
SVectGL fMisalignments [BMN_TEST_MODULE_COUNT]
BmnATestDetectorPlane fDetectors [BMN_TEST_MODULE_COUNT]

Additional Inherited Members

Protected Member Functions inherited from BmnSimpleDM
virtual void Reset () noexcept override
virtual Int_t NextID () noexcept override
Protected Member Functions inherited from BmnDetectorModel
virtual Bool_t LoadGeometry (const char *)
Protected Attributes inherited from BmnDetectorModel
std::string fDescription {"no description"}
std::vector< Plane > fPlanes
Layer fTarget {0.0, 0.0}

Detailed Description

Definition at line 25 of file BmnATestDetector.h.

Member Typedef Documentation

◆ DetectorSet

Definition at line 28 of file BmnATestDetector.h.

Constructor & Destructor Documentation

◆ BmnATestDetector() [1/2]

BmnATestDetector::BmnATestDetector ( Double_t detectorStep,
const char * dumpPath = nullptr )

Definition at line 24 of file BmnATestDetector.cxx.

References BmnSimpleDM::BmnSimpleDM(), fMisalignments, fNominalZ, i, iX, iZ, RebuildDetectors(), and Save().

Here is the call graph for this function:

◆ BmnATestDetector() [2/2]

BmnATestDetector::BmnATestDetector ( const char * jsonPath)
inline

Definition at line 31 of file BmnATestDetector.h.

References BmnSimpleDM::BmnSimpleDM(), and Load().

Here is the call graph for this function:

Member Function Documentation

◆ GetDetectors()

const BmnATestDetectorPlane * BmnATestDetector::GetDetectors ( ) const
inline

Definition at line 37 of file BmnATestDetector.h.

References fDetectors.

◆ GetMaxZ()

Double_t BmnATestDetector::GetMaxZ ( ) const
inline

Definition at line 40 of file BmnATestDetector.h.

References fNominalZ.

◆ GetMinZ()

Double_t BmnATestDetector::GetMinZ ( ) const
inline

Definition at line 39 of file BmnATestDetector.h.

References fNominalZ.

◆ GetTestA()

const SVectGL * BmnATestDetector::GetTestA ( ) const
inline

Definition at line 38 of file BmnATestDetector.h.

References fMisalignments.

◆ Load()

Bool_t BmnATestDetector::Load ( const char * path)

Definition at line 66 of file BmnATestDetector.cxx.

References fMisalignments, fNominalZ, i, iX, iY, iZ, and RebuildDetectors().

Referenced by BmnATestDetector().

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

◆ RebuildDetectors()

void BmnATestDetector::RebuildDetectors ( )
private

Definition at line 96 of file BmnATestDetector.cxx.

References fDetectors, fMisalignments, fNominalZ, and i.

Referenced by BmnATestDetector(), and Load().

Here is the caller graph for this function:

◆ Save()

Bool_t BmnATestDetector::Save ( const char * path) const

Definition at line 46 of file BmnATestDetector.cxx.

References fMisalignments, fNominalZ, i, iX, iY, and iZ.

Referenced by BmnATestDetector().

Here is the caller graph for this function:

Member Data Documentation

◆ fDetectors

BmnATestDetectorPlane BmnATestDetector::fDetectors[BMN_TEST_MODULE_COUNT]
private

Definition at line 50 of file BmnATestDetector.h.

Referenced by GetDetectors(), and RebuildDetectors().

◆ fMisalignments

SVectGL BmnATestDetector::fMisalignments[BMN_TEST_MODULE_COUNT]
private

Definition at line 49 of file BmnATestDetector.h.

Referenced by BmnATestDetector(), GetTestA(), Load(), RebuildDetectors(), and Save().

◆ fNominalZ

Double_t BmnATestDetector::fNominalZ[BMN_TEST_MODULE_COUNT]
private

Definition at line 48 of file BmnATestDetector.h.

Referenced by BmnATestDetector(), GetMaxZ(), GetMinZ(), Load(), RebuildDetectors(), and Save().


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