BmnRoot
Loading...
Searching...
No Matches
BmnAlignerApply Class Reference

#include <BmnAlignerApply.h>

Inheritance diagram for BmnAlignerApply:
[legend]
Collaboration diagram for BmnAlignerApply:
[legend]

Public Member Functions

 BmnAlignerApply ()=delete
 
 BmnAlignerApply (const BmnMeasureModel *measureModel, const BmnDetectorModel *modelDetector, const char *alignFilePath, Bool_t applyLorentz=kTRUE)
 
virtual ~BmnAlignerApply ()=default
 
virtual InitStatus Init ()
 
virtual void Exec (Option_t *opt)
 
virtual void Finish ()
 
 ClassDef (BmnAlignerApply, 0)
 
 BmnAlignerApply ()=delete
 
 BmnAlignerApply (const BmnMeasureModel *measureModel, const BmnDetectorModel *modelDetector, const char *alignFilePath, Bool_t applyLorentz=kTRUE)
 
virtual ~BmnAlignerApply ()=default
 
virtual InitStatus Init ()
 
virtual void Exec (Option_t *opt)
 
virtual void Finish ()
 
 ClassDef (BmnAlignerApply, 0)
 
- Public Member Functions inherited from BmnAligner< HitType >
 BmnAligner (const BmnMeasureModel *measureModel, const BmnDetectorModel *modelDetector, const char *constraintsPath=nullptr, Int_t nThreads=1)
 
 BmnAligner (const BmnMeasureModel *measureModel, const BmnDetectorModel *modelDetector, const char *filesListPath, const char *constraintsPath=nullptr, Int_t nThreads=1)
 
virtual ~BmnAligner ()
 
Bool_t Align (Bool_t fixEvery=kFALSE)
 
virtual Bool_t PrepareData (const char *tracksPath=nullptr)
 
Bool_t SaveSolution (const char *jsonPath, Bool_t withAlpha=kFALSE)
 
Bool_t LoadSolution (const char *jsonPath, Bool_t withAlpha=kTRUE, Bool_t withMSE=kTRUE)
 
virtual void Draw ()
 
Bool_t Initialized () const noexcept
 
Int_t TotalTracks () const noexcept
 
Int_t TotalHits () const noexcept
 
Double_t OmegaScaleFactor () const noexcept
 
BmnAlignResultGetCurrentResult () const noexcept
 
BmnAlignResultGetResult (Bool_t last=kTRUE) const noexcept
 
 BmnAligner (const BmnMeasureModel *measureModel, const BmnDetectorModel *modelDetector, const char *constraintsPath=nullptr, Int_t nThreads=1)
 
 BmnAligner (const BmnMeasureModel *measureModel, const BmnDetectorModel *modelDetector, const char *filesListPath, const char *constraintsPath=nullptr, Int_t nThreads=1)
 
virtual ~BmnAligner ()
 
Bool_t Align (Bool_t fixEvery=kFALSE)
 
virtual Bool_t PrepareData (const char *tracksPath=nullptr)
 
Bool_t SaveSolution (const char *jsonPath, Bool_t withAlpha=kFALSE)
 
Bool_t LoadSolution (const char *jsonPath, Bool_t withAlpha=kTRUE, Bool_t withMSE=kTRUE)
 
virtual void Draw ()
 
Bool_t Initialized () const noexcept
 
Int_t TotalTracks () const noexcept
 
Int_t TotalHits () const noexcept
 
Double_t OmegaScaleFactor () const noexcept
 
BmnAlignResultGetCurrentResult () const noexcept
 
BmnAlignResultGetResult (Bool_t last=kTRUE) const noexcept
 
- Public Member Functions inherited from BmnTask
 BmnTask ()
 
 BmnTask (const char *name, Int_t iVerbose=1)
 
virtual ~BmnTask ()
 Destroy the BmnTask object.
 
virtual void OnlineWrite (const std::unique_ptr< TTree > &resultTree)
 Write task resul to tree.
 
 BmnTask (const BmnTask &)=delete
 
BmnTaskoperator= (const BmnTask &)=delete
 
 ClassDef (BmnTask, 1)
 
 BmnTask ()
 
 BmnTask (const char *name, Int_t iVerbose=1)
 
virtual ~BmnTask ()
 Destroy the BmnTask object.
 
virtual void OnlineWrite (const std::unique_ptr< TTree > &resultTree)
 Write task resul to tree.
 
 BmnTask (const BmnTask &)=delete
 
BmnTaskoperator= (const BmnTask &)=delete
 
 ClassDef (BmnTask, 1)
 

Additional Inherited Members

- Protected Types inherited from BmnAligner< HitType >
typedef std::array< Bool_t, BMN_MODULE_COUNTDetectorFlags_t
 
typedef std::array< Int_t, BMN_MODULE_COUNTDetectorHitCount_t
 
typedef ROOT::Math::BrentMinimizer1D Minimizer1D_t
 
typedef std::array< Bool_t, BMN_MODULE_COUNTDetectorFlags_t
 
typedef std::array< Int_t, BMN_MODULE_COUNTDetectorHitCount_t
 
typedef ROOT::Math::BrentMinimizer1D Minimizer1D_t
 
- Protected Member Functions inherited from BmnAligner< HitType >
virtual Bool_t IterateAlignment ()
 
Double_t CalculateMSE (const SVectGLT &solution)
 
virtual Double_t CalculateMSE (Bool_t withResiduals)
 
Bool_t SolveGlobal (const TMatrixD &mCL, const TVectorD &vBL)
 
virtual void ReportResults () const
 
Bool_t LoadConstraints ()
 
void InitIterators ()
 
void PrepareDrawing ()
 
void DrawResiduals ()
 
void AddBlankSolution ()
 
void StoreZeroSolution (const std::vector< SVectLC > &AlphaZero)
 
void MarkTime (TStopwatch &timer)
 
void DoneInTime (TStopwatch &timer, const char *stage)
 
Int_t GetThreadCount () const noexcept
 
BmnSimpleProgressBarGetProgressBar () noexcept
 
virtual Bool_t IterateAlignment ()
 
Double_t CalculateMSE (const SVectGLT &solution)
 
virtual Double_t CalculateMSE (Bool_t withResiduals)
 
Bool_t SolveGlobal (const TMatrixD &mCL, const TVectorD &vBL)
 
virtual void ReportResults () const
 
Bool_t LoadConstraints ()
 
void InitIterators ()
 
void PrepareDrawing ()
 
void DrawResiduals ()
 
void AddBlankSolution ()
 
void StoreZeroSolution (const std::vector< SVectLC > &AlphaZero)
 
void MarkTime (TStopwatch &timer)
 
void DoneInTime (TStopwatch &timer, const char *stage)
 
Int_t GetThreadCount () const noexcept
 
BmnSimpleProgressBarGetProgressBar () noexcept
 
- Protected Attributes inherited from BmnAligner< HitType >
BmnSimpleProgressBar fProgressBar
 
Bool_t fInitialized {kFALSE}
 
Bool_t fMSEclcSlow {kFALSE}
 
UInt_t fMSEclcCounter {0u}
 
UInt_t fMSEclcTick {1u}
 
Double_t fTotalCpuTime {0.0}
 
Double_t fTotalRealTime {0.0}
 
Double_t fOmegaScaleFactor {1.0}
 
Int_t fIteration {-1}
 
Int_t fRegularIters {0}
 
Int_t fActiveDetCount {BMN_MODULE_COUNT}
 
DetectorFlags_t fDetectorActive
 
std::vector< Bool_t > * fpTrackUsable {nullptr}
 
Int_t fTracksUsableCnt {0}
 
Int_t fTotalTracks {0}
 
Int_t fTotalHits {0}
 
DetectorHitCount_t fHitsPerDetector {}
 
Minimizer1D_t fBrent
 
const BmnMeasureModelfpMeasureModel
 
const BmnDetectorModelfpDetModel
 
const char * fpConstraintsPath
 
std::vector< TVectorD > fConstraints {}
 
Int_t fConstraintsCnt {0}
 
BmnRootIteratorfpRootIterator {nullptr}
 
BmnRamIterator< HitType > * fpRamIterator {nullptr}
 
BmnDataIteratorfpIteratorMain {nullptr}
 
HitTypefpHits {nullptr}
 
Byte_t * fpHitsData {nullptr}
 
Int_t * fpFirstHits {nullptr}
 
BmnAlignResultfpResultLast {nullptr}
 
BmnAlignResultfpResultCurrent {nullptr}
 
std::deque< BmnAlignResultfIterationResults
 
TPad * fpPad3D {nullptr}
 
TPad * fpPadG1 {nullptr}
 
TPad * fpPadG2 {nullptr}
 
TPad * fpPadG3 {nullptr}
 
TPad * fpPadG4 {nullptr}
 
Double_t fMaxZvalue {0.0}
 

Detailed Description

Definition at line 24 of file BmnAlignerApply.h.

Constructor & Destructor Documentation

◆ BmnAlignerApply() [1/4]

BmnAlignerApply::BmnAlignerApply ( )
delete

◆ BmnAlignerApply() [2/4]

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

Definition at line 35 of file BmnAlignerApply.h.

◆ ~BmnAlignerApply() [1/2]

virtual BmnAlignerApply::~BmnAlignerApply ( )
virtualdefault

◆ BmnAlignerApply() [3/4]

BmnAlignerApply::BmnAlignerApply ( )
delete

◆ BmnAlignerApply() [4/4]

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

Definition at line 35 of file BmnAlignerApply.h.

◆ ~BmnAlignerApply() [2/2]

virtual BmnAlignerApply::~BmnAlignerApply ( )
virtualdefault

Member Function Documentation

◆ ClassDef() [1/2]

BmnAlignerApply::ClassDef ( BmnAlignerApply  ,
 
)

◆ ClassDef() [2/2]

BmnAlignerApply::ClassDef ( BmnAlignerApply  ,
 
)

◆ Exec() [1/2]

◆ Exec() [2/2]

virtual void BmnAlignerApply::Exec ( Option_t *  opt)
virtual

◆ Finish() [1/2]

void BmnAlignerApply::Finish ( )
virtual

Definition at line 268 of file BmnAlignerApply.cxx.

◆ Finish() [2/2]

virtual void BmnAlignerApply::Finish ( )
virtual

◆ Init() [1/2]

InitStatus BmnAlignerApply::Init ( )
virtual

◆ Init() [2/2]

virtual InitStatus BmnAlignerApply::Init ( )
virtual

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