CbmRoot
Loading...
Searching...
No Matches
CbmFindPrimaryVertex Class Reference

#include <CbmFindPrimaryVertex.h>

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

Public Member Functions

 CbmFindPrimaryVertex ()
 
 CbmFindPrimaryVertex (CbmPrimaryVertexFinder *pvFinder)
 
 CbmFindPrimaryVertex (const char *name, const char *title, CbmPrimaryVertexFinder *pvFinder)
 
virtual ~CbmFindPrimaryVertex ()
 
virtual InitStatus Init ()
 
virtual void Exec (Option_t *opt)
 
virtual void Finish ()
 
void SetTrackType (ECbmDataType trackType)
 Sets type of tracks used for building the primary vertex.
 

Private Member Functions

 CbmFindPrimaryVertex (const CbmFindPrimaryVertex &)
 
CbmFindPrimaryVertexoperator= (const CbmFindPrimaryVertex &)
 
 ClassDef (CbmFindPrimaryVertex, 1)
 

Private Attributes

TStopwatch fTimer
 
CbmPrimaryVertexFinderfFinder
 
TClonesArray * fEvents = nullptr
 
TClonesArray * fTracks
 
CbmVertexfPrimVert
 
ECbmDataType fTrackType = ECbmDataType::kStsTrack
 
Int_t fNofTs = 0
 Number of processed timeslices.
 
Int_t fNofEvents = 0
 Number of processed events.
 
Double_t fNofTracks = 0
 Number of input tracks.
 
Double_t fNofTracksUsed = 0.
 Number of tracks used for vertex finding.
 
Double_t fTimeTot = 0.
 Total execution time [s].
 

Detailed Description

Definition at line 36 of file CbmFindPrimaryVertex.h.

Constructor & Destructor Documentation

◆ CbmFindPrimaryVertex() [1/4]

CbmFindPrimaryVertex::CbmFindPrimaryVertex ( )

Default constructor

Definition at line 26 of file CbmFindPrimaryVertex.cxx.

References fFinder, fNofEvents, fPrimVert, fTimer, fTimeTot, and fTracks.

Referenced by CbmFindPrimaryVertex(), ClassDef(), and operator=().

◆ CbmFindPrimaryVertex() [2/4]

CbmFindPrimaryVertex::CbmFindPrimaryVertex ( CbmPrimaryVertexFinder * pvFinder)

Standard constructor

Parameters
pvFinderPointer to concrete vertex finder

Definition at line 41 of file CbmFindPrimaryVertex.cxx.

References fFinder, fNofEvents, fPrimVert, fTimer, fTimeTot, and fTracks.

◆ CbmFindPrimaryVertex() [3/4]

CbmFindPrimaryVertex::CbmFindPrimaryVertex ( const char * name,
const char * title,
CbmPrimaryVertexFinder * pvFinder )

Constructor with name and title

Parameters
nameName of task
titleTitle of task
pvFinderPointer to vertex finder concrete object

Definition at line 56 of file CbmFindPrimaryVertex.cxx.

References fFinder, fNofEvents, fPrimVert, fTimer, fTimeTot, and fTracks.

◆ ~CbmFindPrimaryVertex()

CbmFindPrimaryVertex::~CbmFindPrimaryVertex ( )
virtual

Destructor

Definition at line 70 of file CbmFindPrimaryVertex.cxx.

◆ CbmFindPrimaryVertex() [4/4]

CbmFindPrimaryVertex::CbmFindPrimaryVertex ( const CbmFindPrimaryVertex & )
private

Member Function Documentation

◆ ClassDef()

CbmFindPrimaryVertex::ClassDef ( CbmFindPrimaryVertex ,
1  )
private

◆ Exec()

void CbmFindPrimaryVertex::Exec ( Option_t * opt)
virtual

Task execution

Definition at line 134 of file CbmFindPrimaryVertex.cxx.

References fEvents, fFinder, fNofEvents, fNofTracks, fNofTracksUsed, fNofTs, fPrimVert, fTimeTot, and fTracks.

◆ Finish()

void CbmFindPrimaryVertex::Finish ( )
virtual

Finish

Definition at line 190 of file CbmFindPrimaryVertex.cxx.

References fEvents, fNofEvents, fNofTracks, fNofTracksUsed, fNofTs, and fTimeTot.

◆ Init()

InitStatus CbmFindPrimaryVertex::Init ( )
virtual

Initialisation

Definition at line 75 of file CbmFindPrimaryVertex.cxx.

References fEvents, fFinder, fPrimVert, fTracks, fTrackType, and kGlobalTrack.

◆ operator=()

CbmFindPrimaryVertex & CbmFindPrimaryVertex::operator= ( const CbmFindPrimaryVertex & )
private

◆ SetTrackType()

void CbmFindPrimaryVertex::SetTrackType ( ECbmDataType trackType)
inline

Sets type of tracks used for building the primary vertex.

Note
the ECbmDataType::kStsTrack type use as default

Definition at line 77 of file CbmFindPrimaryVertex.h.

References fTrackType.

Member Data Documentation

◆ fEvents

TClonesArray* CbmFindPrimaryVertex::fEvents = nullptr
private

Definition at line 82 of file CbmFindPrimaryVertex.h.

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

◆ fFinder

CbmPrimaryVertexFinder* CbmFindPrimaryVertex::fFinder
private

◆ fNofEvents

Int_t CbmFindPrimaryVertex::fNofEvents = 0
private

Number of processed events.

Definition at line 88 of file CbmFindPrimaryVertex.h.

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

◆ fNofTracks

Double_t CbmFindPrimaryVertex::fNofTracks = 0
private

Number of input tracks.

Definition at line 89 of file CbmFindPrimaryVertex.h.

Referenced by Exec(), and Finish().

◆ fNofTracksUsed

Double_t CbmFindPrimaryVertex::fNofTracksUsed = 0.
private

Number of tracks used for vertex finding.

Definition at line 90 of file CbmFindPrimaryVertex.h.

Referenced by Exec(), and Finish().

◆ fNofTs

Int_t CbmFindPrimaryVertex::fNofTs = 0
private

Number of processed timeslices.

Definition at line 87 of file CbmFindPrimaryVertex.h.

Referenced by Exec(), and Finish().

◆ fPrimVert

CbmVertex* CbmFindPrimaryVertex::fPrimVert
private

◆ fTimer

TStopwatch CbmFindPrimaryVertex::fTimer
private

◆ fTimeTot

Double_t CbmFindPrimaryVertex::fTimeTot = 0.
private

Total execution time [s].

Definition at line 91 of file CbmFindPrimaryVertex.h.

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

◆ fTracks

TClonesArray* CbmFindPrimaryVertex::fTracks
private

◆ fTrackType

ECbmDataType CbmFindPrimaryVertex::fTrackType = ECbmDataType::kStsTrack
private

Definition at line 85 of file CbmFindPrimaryVertex.h.

Referenced by Init(), and SetTrackType().


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