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

#include <BmnAlignerApply.h>

Inheritance diagram for BmnAlignerApply:
Collaboration diagram for BmnAlignerApply:

Public Member Functions

 BmnAlignerApply ()=delete
 BmnAlignerApply (const BmnMeasureModel *measureModel, const BmnDetectorModel *modelDetector, const char *alignFilePath, Bool_t applyLorentz=kTRUE)
virtual ~BmnAlignerApply ()
virtual InitStatus Init ()
virtual void Exec (Option_t *opt)
virtual void Finish ()
Public Member Functions inherited from BmnTask
 BmnTask ()
 Default constructor.
 BmnTask (const char *name, Int_t iVerbose=1)
 Standard constructor.
virtual ~BmnTask ()
 Destroy the BmnTask object.
virtual void OnlineWrite (const std::unique_ptr< TTree > &resultTree)
 Write task resul to tree.
 BmnTask (const BmnTask &)=delete
BmnTask & operator= (const BmnTask &)=delete

Private Member Functions

InitStatus LorentzCorrectionInit ()

Private Attributes

const BmnMeasureModel * fpMeasureModel
const BmnDetectorModel * fpDetModel
BmnAlignHierarchy fHierarchy
VecSVectGL_t fCorrections
const char * fAlignFilePath
const Bool_t fLorentzCorrectionApply
TClonesArray * fpStsHitsArray {nullptr}
Int_t fHitsAligned {0}
Int_t fHitsIgnored {0}
Int_t fHitsFailed {0}
Bool_t fieldFlag {kFALSE}
std::map< int, TH2D * > fhLorCorX [17]
std::map< int, TH2D * > fhLorCorY [17]

Detailed Description

Definition at line 36 of file BmnAlignerApply.h.

Constructor & Destructor Documentation

◆ BmnAlignerApply() [1/2]

BmnAlignerApply::BmnAlignerApply ( )
delete

◆ BmnAlignerApply() [2/2]

BmnAlignerApply::BmnAlignerApply ( const BmnMeasureModel * measureModel,
const BmnDetectorModel * modelDetector,
const char * alignFilePath,
Bool_t applyLorentz = kTRUE )
inline

Definition at line 51 of file BmnAlignerApply.h.

References fAlignFilePath, fLorentzCorrectionApply, fpDetModel, and fpMeasureModel.

◆ ~BmnAlignerApply()

BmnAlignerApply::~BmnAlignerApply ( )
virtual

Definition at line 30 of file BmnAlignerApply.cxx.

References fhLorCorX, and fhLorCorY.

Member Function Documentation

◆ Exec()

void BmnAlignerApply::Exec ( Option_t * opt)
virtual

Definition at line 289 of file BmnAlignerApply.cxx.

References TMath::Abs(), align(), fCorrections, fHitsAligned, fHitsFailed, fHitsIgnored, fhLorCorX, fhLorCorY, fieldFlag, fLorentzCorrectionApply, fpDetModel, fpMeasureModel, fpStsHitsArray, CbmStsHit::GetSectorNr(), CbmStsHit::GetStationNr(), CbmStsHit::GetSystemId(), TH1::GetXaxis(), TAxis::GetXmax(), TAxis::GetXmin(), TH1::GetYaxis(), i, TH2::Interpolate(), and kGEM.

Here is the call graph for this function:

◆ Finish()

void BmnAlignerApply::Finish ( )
virtual

Definition at line 415 of file BmnAlignerApply.cxx.

References fHitsAligned, fHitsFailed, and fHitsIgnored.

◆ Init()

InitStatus BmnAlignerApply::Init ( )
virtual

Definition at line 40 of file BmnAlignerApply.cxx.

References fAlignFilePath, fCorrections, fHierarchy, fLorentzCorrectionApply, fpDetModel, fpStsHitsArray, BmnAlignConfig::Solution::leaves, LorentzCorrectionInit(), BmnAlignConfig::NodeValues::node, BmnAlignConfig::ReadSolution(), and BmnAlignConfig::NodeValues::values.

Here is the call graph for this function:

◆ LorentzCorrectionInit()

InitStatus BmnAlignerApply::LorentzCorrectionInit ( )
private

Definition at line 92 of file BmnAlignerApply.cxx.

References TMath::Abs(), TString::Atoi(), TString::Contains(), digiRunHeader, fhLorCorX, fhLorCorY, fieldFlag, TString::First(), TDirectoryFile::Get(), TH2::GetBinContent(), TDirectory::GetListOfKeys(), TDirectoryFile::GetListOfKeys(), TNamed::GetName(), TH1::GetNbinsX(), TH1::GetNbinsY(), TH1::GetXaxis(), TAxis::GetXmax(), TAxis::GetXmin(), TH1::GetYaxis(), TString::Insert(), TKey::IsFolder(), TString::Itoa(), TString::Length(), TFile::Open(), TKey::ReadObj(), TH2::SetBinContent(), and TH1::SetDirectory().

Referenced by Init().

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

Member Data Documentation

◆ fAlignFilePath

const char* BmnAlignerApply::fAlignFilePath
private

Definition at line 44 of file BmnAlignerApply.h.

Referenced by BmnAlignerApply(), and Init().

◆ fCorrections

VecSVectGL_t BmnAlignerApply::fCorrections
private

Definition at line 42 of file BmnAlignerApply.h.

Referenced by Exec(), and Init().

◆ fHierarchy

BmnAlignHierarchy BmnAlignerApply::fHierarchy
private

Definition at line 41 of file BmnAlignerApply.h.

Referenced by Init().

◆ fHitsAligned

Int_t BmnAlignerApply::fHitsAligned {0}
private

Definition at line 47 of file BmnAlignerApply.h.

Referenced by Exec(), and Finish().

◆ fHitsFailed

Int_t BmnAlignerApply::fHitsFailed {0}
private

Definition at line 47 of file BmnAlignerApply.h.

Referenced by Exec(), and Finish().

◆ fHitsIgnored

Int_t BmnAlignerApply::fHitsIgnored {0}
private

Definition at line 47 of file BmnAlignerApply.h.

Referenced by Exec(), and Finish().

◆ fhLorCorX

std::map<int, TH2D*> BmnAlignerApply::fhLorCorX[17]
private

Definition at line 74 of file BmnAlignerApply.h.

Referenced by ~BmnAlignerApply(), Exec(), and LorentzCorrectionInit().

◆ fhLorCorY

std::map<int, TH2D*> BmnAlignerApply::fhLorCorY[17]
private

Definition at line 74 of file BmnAlignerApply.h.

Referenced by ~BmnAlignerApply(), Exec(), and LorentzCorrectionInit().

◆ fieldFlag

Bool_t BmnAlignerApply::fieldFlag {kFALSE}
private

Definition at line 73 of file BmnAlignerApply.h.

Referenced by Exec(), and LorentzCorrectionInit().

◆ fLorentzCorrectionApply

const Bool_t BmnAlignerApply::fLorentzCorrectionApply
private

Definition at line 45 of file BmnAlignerApply.h.

Referenced by BmnAlignerApply(), Exec(), and Init().

◆ fpDetModel

const BmnDetectorModel* BmnAlignerApply::fpDetModel
private

Definition at line 40 of file BmnAlignerApply.h.

Referenced by BmnAlignerApply(), Exec(), and Init().

◆ fpMeasureModel

const BmnMeasureModel* BmnAlignerApply::fpMeasureModel
private

Definition at line 39 of file BmnAlignerApply.h.

Referenced by BmnAlignerApply(), and Exec().

◆ fpStsHitsArray

TClonesArray* BmnAlignerApply::fpStsHitsArray {nullptr}
private

Definition at line 46 of file BmnAlignerApply.h.

Referenced by Exec(), and Init().


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