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

#include <BmnSiProfStationSet.h>

Collaboration diagram for BmnSiProfStationSet:

Public Member Functions

 BmnSiProfStationSet ()
 BmnSiProfStationSet (TString xml_config_file, map< Int_t, TVector3 > *shifts=nullptr)
virtual ~BmnSiProfStationSet ()
Int_t GetNStations ()
Double_t GetXStationPosition (Int_t station_num)
Double_t GetYStationPosition (Int_t station_num)
Double_t GetZStationPosition (Int_t station_num)
BmnSiProfStation * GetStation (Int_t station_num)
void Reset ()
Bool_t AddPointToDetector (Double_t xcoord, Double_t ycoord, Double_t zcoord, Double_t px, Double_t py, Double_t pz, Double_t dEloss, Int_t refID)
Int_t CountNAddedToDetectorPoints ()
void ProcessPointsInDetector ()
Int_t CountNProcessedPointsInDetector ()
Int_t GetPointStationOwnership (Double_t zcoord)
Int_t GetPointStationOwnership (Double_t xcoord, Double_t ycoord, Double_t zcoord)

Static Public Member Functions

static unique_ptr< BmnSiProfStationSet > Create (Int_t period, Int_t stp=0)

Protected Attributes

Int_t NStations
Double_t * XStationPositions
Double_t * YStationPositions
 x-position of each station [array]
Double_t * ZStationPositions
 y-position of each station [array]
BmnSiProfStation ** Stations
 z-position of each station [array]
map< Int_t, TVector3 > * fStatShifts
 Stations [array].

Private Member Functions

Bool_t CreateConfigurationFromXMLFile (TString xml_config_file)
Int_t CountNumberOfStations (TXMLNode *node)
Bool_t ParseStation (TXMLNode *node, Int_t iStation)

Detailed Description

Definition at line 13 of file BmnSiProfStationSet.h.

Constructor & Destructor Documentation

◆ BmnSiProfStationSet() [1/2]

BmnSiProfStationSet::BmnSiProfStationSet ( )

◆ BmnSiProfStationSet() [2/2]

BmnSiProfStationSet::BmnSiProfStationSet ( TString xml_config_file,
map< Int_t, TVector3 > * shifts = nullptr )

Definition at line 17 of file BmnSiProfStationSet.cxx.

References CreateConfigurationFromXMLFile(), fStatShifts, NStations, Stations, XStationPositions, YStationPositions, and ZStationPositions.

Here is the call graph for this function:

◆ ~BmnSiProfStationSet()

BmnSiProfStationSet::~BmnSiProfStationSet ( )
virtual

Member Function Documentation

◆ AddPointToDetector()

Bool_t BmnSiProfStationSet::AddPointToDetector ( Double_t xcoord,
Double_t ycoord,
Double_t zcoord,
Double_t px,
Double_t py,
Double_t pz,
Double_t dEloss,
Int_t refID )

Definition at line 106 of file BmnSiProfStationSet.cxx.

References GetPointStationOwnership(), and Stations.

Here is the call graph for this function:

◆ CountNAddedToDetectorPoints()

Int_t BmnSiProfStationSet::CountNAddedToDetectorPoints ( )

Definition at line 127 of file BmnSiProfStationSet.cxx.

References NStations, and Stations.

◆ CountNProcessedPointsInDetector()

Int_t BmnSiProfStationSet::CountNProcessedPointsInDetector ( )

Definition at line 143 of file BmnSiProfStationSet.cxx.

References NStations, and Stations.

◆ CountNumberOfStations()

Int_t BmnSiProfStationSet::CountNumberOfStations ( TXMLNode * node)
private

Definition at line 231 of file BmnSiProfStationSet.cxx.

References TXMLNode::GetChildren(), TXMLNode::GetNextNode(), and TXMLNode::GetNodeName().

Referenced by CreateConfigurationFromXMLFile().

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

◆ Create()

unique_ptr< BmnSiProfStationSet > BmnSiProfStationSet::Create ( Int_t period,
Int_t stp = 0 )
static

Definition at line 286 of file BmnSiProfStationSet.cxx.

References f.

Referenced by BmnHistProf::BmnHistProf().

Here is the caller graph for this function:

◆ CreateConfigurationFromXMLFile()

Bool_t BmnSiProfStationSet::CreateConfigurationFromXMLFile ( TString xml_config_file)
private

Definition at line 181 of file BmnSiProfStationSet.cxx.

References CountNumberOfStations(), TXMLNode::GetChildren(), TXMLNode::GetNextNode(), TXMLNode::GetNodeName(), TXMLDocument::GetRootNode(), TDOMParser::GetXMLDocument(), i, NStations, TDOMParser::ParseFile(), ParseStation(), TXMLParser::SetValidate(), Stations, XStationPositions, YStationPositions, and ZStationPositions.

Referenced by BmnSiProfStationSet().

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

◆ GetNStations()

Int_t BmnSiProfStationSet::GetNStations ( )
inline

Definition at line 38 of file BmnSiProfStationSet.h.

References NStations.

◆ GetPointStationOwnership() [1/2]

Int_t BmnSiProfStationSet::GetPointStationOwnership ( Double_t xcoord,
Double_t ycoord,
Double_t zcoord )

Definition at line 166 of file BmnSiProfStationSet.cxx.

References NModules, NStations, and Stations.

◆ GetPointStationOwnership() [2/2]

Int_t BmnSiProfStationSet::GetPointStationOwnership ( Double_t zcoord)

Definition at line 152 of file BmnSiProfStationSet.cxx.

References NModules, NStations, and Stations.

Referenced by AddPointToDetector().

Here is the caller graph for this function:

◆ GetStation()

BmnSiProfStation * BmnSiProfStationSet::GetStation ( Int_t station_num)

Definition at line 90 of file BmnSiProfStationSet.cxx.

References NStations, and Stations.

◆ GetXStationPosition()

Double_t BmnSiProfStationSet::GetXStationPosition ( Int_t station_num)

Definition at line 63 of file BmnSiProfStationSet.cxx.

References NStations, and XStationPositions.

◆ GetYStationPosition()

Double_t BmnSiProfStationSet::GetYStationPosition ( Int_t station_num)

Definition at line 72 of file BmnSiProfStationSet.cxx.

References NStations, and YStationPositions.

◆ GetZStationPosition()

Double_t BmnSiProfStationSet::GetZStationPosition ( Int_t station_num)

Definition at line 81 of file BmnSiProfStationSet.cxx.

References NStations, and ZStationPositions.

◆ ParseStation()

Bool_t BmnSiProfStationSet::ParseStation ( TXMLNode * node,
Int_t iStation )
private

Definition at line 244 of file BmnSiProfStationSet.cxx.

References fStatShifts, TXMLNode::GetAttributes(), TXMLAttr::GetName(), TXMLAttr::GetValue(), TXMLNode::HasAttributes(), Stations, XStationPositions, YStationPositions, and ZStationPositions.

Referenced by CreateConfigurationFromXMLFile().

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

◆ ProcessPointsInDetector()

void BmnSiProfStationSet::ProcessPointsInDetector ( )

Definition at line 136 of file BmnSiProfStationSet.cxx.

References NStations, and Stations.

◆ Reset()

void BmnSiProfStationSet::Reset ( )

Definition at line 99 of file BmnSiProfStationSet.cxx.

References NStations, and Stations.

Member Data Documentation

◆ fStatShifts

map<Int_t, TVector3>* BmnSiProfStationSet::fStatShifts
protected

Definition at line 25 of file BmnSiProfStationSet.h.

Referenced by BmnSiProfStationSet(), and ParseStation().

◆ NStations

◆ Stations

◆ XStationPositions

Double_t* BmnSiProfStationSet::XStationPositions
protected

◆ YStationPositions

Double_t* BmnSiProfStationSet::YStationPositions
protected

◆ ZStationPositions

Double_t* BmnSiProfStationSet::ZStationPositions
protected

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