BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnVertexFinder Class Reference

#include <BmnVertexFinder.h>

Inheritance diagram for BmnVertexFinder:
Collaboration diagram for BmnVertexFinder:

Public Member Functions

 BmnVertexFinder ()
 BmnVertexFinder (Int_t period)
virtual ~BmnVertexFinder ()
virtual InitStatus Init ()
virtual void Exec (Option_t *opt)
virtual void Finish ()
BmnVertex FindPrimaryVertex (TClonesArray *tracks)
BmnVertex FindSecondaryVertex (TClonesArray *tracks)
Float_t FindVZByVirtualPlanes (Float_t z_0, Float_t range, TClonesArray *tracks, Int_t flag)
 BmnVertexFinder ()
 BmnVertexFinder (Int_t period)
virtual ~BmnVertexFinder ()
virtual InitStatus Init ()
virtual void Exec (Option_t *opt)
virtual void Finish ()
BmnVertex FindPrimaryVertex (TClonesArray *tracks)
BmnVertex FindSecondaryVertex (TClonesArray *tracks)
Float_t FindVZByVirtualPlanes (Float_t z_0, Float_t range, TClonesArray *tracks, Int_t flag)

Private Member Functions

Double_t CalcRms2D (vector< Double_t > x, vector< Double_t > y)
Double_t CalcMeanDist (vector< Double_t > x, vector< Double_t > y)
Double_t CalcRms2D (vector< Double_t > x, vector< Double_t > y)
Double_t CalcMeanDist (vector< Double_t > x, vector< Double_t > y)

Private Attributes

TString fGlobalTracksBranchName
TString fVertexBranchName
Int_t fEventNo
Int_t fPeriodId
TClonesArray * fGlobalTracksArray
TClonesArray * fVertexArray
Double_t fTime
Bool_t fRobustRefit
FairField * fField
BmnKalmanFilter * fKalman

Detailed Description

Definition at line 21 of file BmnVertexFinder.h.

Constructor & Destructor Documentation

◆ BmnVertexFinder() [1/4]

BmnVertexFinder::BmnVertexFinder ( )
inline

Definition at line 25 of file BmnVertexFinder.h.

Referenced by CalcMeanDist().

Here is the caller graph for this function:

◆ BmnVertexFinder() [2/4]

BmnVertexFinder::BmnVertexFinder ( Int_t period)

◆ ~BmnVertexFinder() [1/2]

BmnVertexFinder::~BmnVertexFinder ( )
virtual

Definition at line 22 of file BmnVertexFinder.cxx.

References fKalman.

◆ BmnVertexFinder() [3/4]

BmnVertexFinder::BmnVertexFinder ( )
inline

Definition at line 25 of file BmnVertexFinder.h.

◆ BmnVertexFinder() [4/4]

BmnVertexFinder::BmnVertexFinder ( Int_t period)

◆ ~BmnVertexFinder() [2/2]

virtual BmnVertexFinder::~BmnVertexFinder ( )
virtual

Member Function Documentation

◆ CalcMeanDist() [1/2]

Double_t BmnVertexFinder::CalcMeanDist ( vector< Double_t > x,
vector< Double_t > y )
private

Definition at line 322 of file BmnVertexFinder.cxx.

References i, TMath::Sq(), TMath::Sqrt(), x, and y.

Referenced by FindVZByVirtualPlanes().

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

◆ CalcMeanDist() [2/2]

Double_t BmnVertexFinder::CalcMeanDist ( vector< Double_t > x,
vector< Double_t > y )
private

References BmnVertexFinder(), fEventNo, fField, fGlobalTracksArray, fGlobalTracksBranchName, fKalman, fPeriodId, fRobustRefit, fTime, fVertexArray, fVertexBranchName, x, and y.

Here is the call graph for this function:

◆ CalcRms2D() [1/2]

Double_t BmnVertexFinder::CalcRms2D ( vector< Double_t > x,
vector< Double_t > y )
private

Definition at line 302 of file BmnVertexFinder.cxx.

References TMath::Sq(), TMath::Sqrt(), x, and y.

Referenced by FindPrimaryVertex(), and FindSecondaryVertex().

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

◆ CalcRms2D() [2/2]

Double_t BmnVertexFinder::CalcRms2D ( vector< Double_t > x,
vector< Double_t > y )
private

References x, and y.

◆ Exec() [1/2]

void BmnVertexFinder::Exec ( Option_t * opt)
virtual

Definition at line 56 of file BmnVertexFinder.cxx.

References fEventNo, fGlobalTracksArray, FindPrimaryVertex(), FindSecondaryVertex(), fTime, fVertexArray, TStopwatch::RealTime(), TStopwatch::Start(), and TStopwatch::Stop().

Here is the call graph for this function:

◆ Exec() [2/2]

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

◆ FindPrimaryVertex() [1/2]

BmnVertex BmnVertexFinder::FindPrimaryVertex ( TClonesArray * tracks)

Definition at line 81 of file BmnVertexFinder.cxx.

References TMath::Abs(), TObjArray::At(), CalcRms2D(), FindVZByVirtualPlanes(), fKalman, fPeriodId, TObjArray::GetEntriesFast(), BmnTrack::GetFlag(), BmnTrack::GetParamFirst(), kBMNERROR, TMath::Mean(), and BmnTrack::SetFlag().

Referenced by Exec().

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

◆ FindPrimaryVertex() [2/2]

BmnVertex BmnVertexFinder::FindPrimaryVertex ( TClonesArray * tracks)

◆ FindSecondaryVertex() [1/2]

BmnVertex BmnVertexFinder::FindSecondaryVertex ( TClonesArray * tracks)

Definition at line 146 of file BmnVertexFinder.cxx.

References TObjArray::At(), CalcRms2D(), FindVZByVirtualPlanes(), fKalman, fPeriodId, TObjArray::GetEntriesFast(), BmnTrack::GetFlag(), BmnTrack::GetParamFirst(), kBMNERROR, and TMath::Mean().

Referenced by Exec().

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

◆ FindSecondaryVertex() [2/2]

BmnVertex BmnVertexFinder::FindSecondaryVertex ( TClonesArray * tracks)

◆ FindVZByVirtualPlanes() [1/2]

Float_t BmnVertexFinder::FindVZByVirtualPlanes ( Float_t z_0,
Float_t range,
TClonesArray * tracks,
Int_t flag )

Definition at line 190 of file BmnVertexFinder.cxx.

References TObjArray::At(), CalcMeanDist(), TGraph::Fit(), fKalman, TObjArray::GetEntriesFast(), BmnTrack::GetFlag(), BmnTrack::GetParamFirst(), kBMNERROR, nPlanes, ROOT::Fit::FitResult::Parameter(), BmnTrack::SetFlag(), zMax, and zMin.

Referenced by FindPrimaryVertex(), and FindSecondaryVertex().

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

◆ FindVZByVirtualPlanes() [2/2]

Float_t BmnVertexFinder::FindVZByVirtualPlanes ( Float_t z_0,
Float_t range,
TClonesArray * tracks,
Int_t flag )

◆ Finish() [1/2]

void BmnVertexFinder::Finish ( )
virtual

Definition at line 293 of file BmnVertexFinder.cxx.

References fTime.

◆ Finish() [2/2]

virtual void BmnVertexFinder::Finish ( )
virtual

◆ Init() [1/2]

InitStatus BmnVertexFinder::Init ( )
virtual

◆ Init() [2/2]

virtual InitStatus BmnVertexFinder::Init ( )
virtual

Member Data Documentation

◆ fEventNo

Int_t BmnVertexFinder::fEventNo
private

Definition at line 45 of file BmnVertexFinder.h.

Referenced by BmnVertexFinder(), CalcMeanDist(), and Exec().

◆ fField

FairField * BmnVertexFinder::fField
private

Definition at line 54 of file BmnVertexFinder.h.

Referenced by CalcMeanDist().

◆ fGlobalTracksArray

TClonesArray * BmnVertexFinder::fGlobalTracksArray
private

Definition at line 48 of file BmnVertexFinder.h.

Referenced by BmnVertexFinder(), CalcMeanDist(), Exec(), and Init().

◆ fGlobalTracksBranchName

TString BmnVertexFinder::fGlobalTracksBranchName
private

Definition at line 42 of file BmnVertexFinder.h.

Referenced by BmnVertexFinder(), CalcMeanDist(), and Init().

◆ fKalman

BmnKalmanFilter * BmnVertexFinder::fKalman
private

◆ fPeriodId

Int_t BmnVertexFinder::fPeriodId
private

◆ fRobustRefit

Bool_t BmnVertexFinder::fRobustRefit
private

Definition at line 53 of file BmnVertexFinder.h.

Referenced by BmnVertexFinder(), and CalcMeanDist().

◆ fTime

Double_t BmnVertexFinder::fTime
private

Definition at line 51 of file BmnVertexFinder.h.

Referenced by CalcMeanDist(), Exec(), and Finish().

◆ fVertexArray

TClonesArray * BmnVertexFinder::fVertexArray
private

Definition at line 49 of file BmnVertexFinder.h.

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

◆ fVertexBranchName

TString BmnVertexFinder::fVertexBranchName
private

Definition at line 43 of file BmnVertexFinder.h.

Referenced by BmnVertexFinder(), CalcMeanDist(), and Init().


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