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

#include <SrcVertexFinder.h>

Inheritance diagram for SrcVertexFinder:
Collaboration diagram for SrcVertexFinder:

Public Member Functions

 SrcVertexFinder ()
 SrcVertexFinder (Int_t period, Bool_t isExp)
virtual ~SrcVertexFinder ()
virtual InitStatus Init ()
virtual void Exec (Option_t *opt)
virtual void Finish ()
void FindVertexAnalitically (vector< BmnTrack > &lTracks, vector< BmnTrack > &rTracks)
void FindVertexByVirtualPlanes (vector< BmnTrack > &lTracks, vector< BmnTrack > &rTracks)
Float_t FindVZByVirtualPlanes (Float_t z_0, Float_t range, vector< BmnTrack > tracks, Float_t &minDist)
void CreateArmCandidates (vector< BmnTrack > &lTracks, vector< BmnTrack > &rTracks)

Private Member Functions

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

Private Attributes

Int_t fEventNo
Int_t fPeriodId
TClonesArray * fGlobalTracksArray
TClonesArray * fGemHitsArray
TClonesArray * fTof400HitsArray
TClonesArray * fMwpcTracksArray
TClonesArray * fVertexArray
TClonesArray * fArmTracksArray
Double_t fTime
Bool_t fisExp
FairField * fField
BmnKalmanFilter * fKalman

Detailed Description

Definition at line 22 of file SrcVertexFinder.h.

Constructor & Destructor Documentation

◆ SrcVertexFinder() [1/2]

SrcVertexFinder::SrcVertexFinder ( )
inline

Definition at line 26 of file SrcVertexFinder.h.

◆ SrcVertexFinder() [2/2]

SrcVertexFinder::SrcVertexFinder ( Int_t period,
Bool_t isExp )

◆ ~SrcVertexFinder()

SrcVertexFinder::~SrcVertexFinder ( )
virtual

Definition at line 26 of file SrcVertexFinder.cxx.

References fKalman.

Member Function Documentation

◆ CalcMeanDist()

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

Definition at line 439 of file SrcVertexFinder.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:

◆ CreateArmCandidates()

void SrcVertexFinder::CreateArmCandidates ( vector< BmnTrack > & lTracks,
vector< BmnTrack > & rTracks )

Definition at line 523 of file SrcVertexFinder.cxx.

References fGemHitsArray, fisExp, fTof400HitsArray, BmnTrack::GetParamFirst(), BmnTrack::GetParamLast(), BmnHit::GetStation(), and BmnTrack::SetB().

Referenced by Exec().

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

◆ Exec()

void SrcVertexFinder::Exec ( Option_t * opt)
virtual

Definition at line 79 of file SrcVertexFinder.cxx.

References CreateArmCandidates(), fArmTracksArray, fEventNo, fGlobalTracksArray, FindVertexAnalitically(), fTime, fVertexArray, BmnVertex::Print(), TStopwatch::RealTime(), BmnTrack::SetFlag(), TStopwatch::Start(), and TStopwatch::Stop().

Here is the call graph for this function:

◆ FindVertexAnalitically()

void SrcVertexFinder::FindVertexAnalitically ( vector< BmnTrack > & lTracks,
vector< BmnTrack > & rTracks )

Definition at line 130 of file SrcVertexFinder.cxx.

References dist(), fArmTracksArray, fGlobalTracksArray, fMwpcTracksArray, fVertexArray, BmnTrack::GetFlag(), BmnTrack::GetParamFirst(), GetVzByVectorStraightTracks(), BmnTrack::SetNHits(), x, y, and z.

Referenced by Exec().

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

◆ FindVertexByVirtualPlanes()

void SrcVertexFinder::FindVertexByVirtualPlanes ( vector< BmnTrack > & lTracks,
vector< BmnTrack > & rTracks )

Definition at line 290 of file SrcVertexFinder.cxx.

References TMath::C(), dist(), fArmTracksArray, fGlobalTracksArray, FindVZByVirtualPlanes(), fKalman, fVertexArray, BmnTrack::GetB(), BmnTrack::GetFlag(), BmnTrack::GetLength(), BmnTrack::GetParamFirst(), BmnTrack::GetParamLast(), GetZ(), kBMNERROR, TMath::Mean(), BmnTrack::SetB(), BmnTrack::SetFlag(), BmnTrack::SetLength(), and BmnTrack::SetNHits().

Here is the call graph for this function:

◆ FindVZByVirtualPlanes()

Float_t SrcVertexFinder::FindVZByVirtualPlanes ( Float_t z_0,
Float_t range,
vector< BmnTrack > tracks,
Float_t & minDist )

Definition at line 452 of file SrcVertexFinder.cxx.

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

Referenced by FindVertexByVirtualPlanes().

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

◆ Finish()

void SrcVertexFinder::Finish ( )
virtual

Definition at line 430 of file SrcVertexFinder.cxx.

References fTime.

◆ Init()

InitStatus SrcVertexFinder::Init ( )
virtual

Member Data Documentation

◆ fArmTracksArray

TClonesArray* SrcVertexFinder::fArmTracksArray
private

◆ fEventNo

Int_t SrcVertexFinder::fEventNo
private

Definition at line 42 of file SrcVertexFinder.h.

Referenced by SrcVertexFinder(), and Exec().

◆ fField

FairField* SrcVertexFinder::fField
private

Definition at line 57 of file SrcVertexFinder.h.

◆ fGemHitsArray

TClonesArray* SrcVertexFinder::fGemHitsArray
private

Definition at line 47 of file SrcVertexFinder.h.

Referenced by SrcVertexFinder(), CreateArmCandidates(), and Init().

◆ fGlobalTracksArray

TClonesArray* SrcVertexFinder::fGlobalTracksArray
private

◆ fisExp

Bool_t SrcVertexFinder::fisExp
private

Definition at line 56 of file SrcVertexFinder.h.

Referenced by SrcVertexFinder(), and CreateArmCandidates().

◆ fKalman

BmnKalmanFilter* SrcVertexFinder::fKalman
private

◆ fMwpcTracksArray

TClonesArray* SrcVertexFinder::fMwpcTracksArray
private

Definition at line 49 of file SrcVertexFinder.h.

Referenced by SrcVertexFinder(), FindVertexAnalitically(), and Init().

◆ fPeriodId

Int_t SrcVertexFinder::fPeriodId
private

Definition at line 43 of file SrcVertexFinder.h.

Referenced by SrcVertexFinder().

◆ fTime

Double_t SrcVertexFinder::fTime
private

Definition at line 54 of file SrcVertexFinder.h.

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

◆ fTof400HitsArray

TClonesArray* SrcVertexFinder::fTof400HitsArray
private

Definition at line 48 of file SrcVertexFinder.h.

Referenced by SrcVertexFinder(), CreateArmCandidates(), and Init().

◆ fVertexArray

TClonesArray* SrcVertexFinder::fVertexArray
private

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