CbmRoot
CbmFindPrimaryVertexEvents.h
Go to the documentation of this file.
1 
7 #ifndef CBMFINDPRIMARYVERTEXEVENTS_H
8 #define CBMFINDPRIMARYVERTEXEVENTS_H 1
9 
10 
11 #include "FairTask.h"
12 #include "TStopwatch.h"
13 
14 class TClonesArray;
16 class CbmVertex;
17 
18 
29 class CbmFindPrimaryVertexEvents : public FairTask {
30 
31 public:
34 
35 
40 
41  // Prevent auto copy constructor and assignment operator
45 
52  CbmFindPrimaryVertexEvents(const char* name,
53  const char* title,
54  CbmPrimaryVertexFinder* pvFinder);
55 
56 
59 
60 
62  virtual InitStatus Init();
63 
64 
66  virtual void Exec(Option_t* opt);
67 
68 
70  virtual void Finish();
71 
72 
73 private:
74  TStopwatch fTimer;
76  TClonesArray* fEvents;
77  TClonesArray* fTracks;
79 
80  Int_t fNofEvents;
81  Double_t fTimeTot;
82 
83 
85 };
86 
87 #endif
CbmFindPrimaryVertexEvents::Finish
virtual void Finish()
Definition: CbmFindPrimaryVertexEvents.cxx:141
CbmFindPrimaryVertexEvents::Exec
virtual void Exec(Option_t *opt)
Definition: CbmFindPrimaryVertexEvents.cxx:109
CbmFindPrimaryVertexEvents::Init
virtual InitStatus Init()
Definition: CbmFindPrimaryVertexEvents.cxx:76
CbmFindPrimaryVertexEvents::fNofEvents
Int_t fNofEvents
Total number of events processed.
Definition: CbmFindPrimaryVertexEvents.h:80
CbmFindPrimaryVertexEvents::CbmFindPrimaryVertexEvents
CbmFindPrimaryVertexEvents(const CbmFindPrimaryVertexEvents &)=delete
CbmFindPrimaryVertexEvents::operator=
CbmFindPrimaryVertexEvents & operator=(const CbmFindPrimaryVertexEvents &)=delete
CbmFindPrimaryVertexEvents::~CbmFindPrimaryVertexEvents
virtual ~CbmFindPrimaryVertexEvents()
Definition: CbmFindPrimaryVertexEvents.cxx:71
CbmFindPrimaryVertexEvents::fTracks
TClonesArray * fTracks
event array
Definition: CbmFindPrimaryVertexEvents.h:77
CbmPrimaryVertexFinder
Definition: CbmPrimaryVertexFinder.h:29
CbmVertex
Definition: CbmVertex.h:26
CbmFindPrimaryVertexEvents::fTimeTot
Double_t fTimeTot
Total execution time [s].
Definition: CbmFindPrimaryVertexEvents.h:81
CbmFindPrimaryVertexEvents::ClassDef
ClassDef(CbmFindPrimaryVertexEvents, 1)
CbmFindPrimaryVertexEvents
Task class for PV finding.
Definition: CbmFindPrimaryVertexEvents.h:29
CbmFindPrimaryVertexEvents::fTimer
TStopwatch fTimer
ROOT stopwatch.
Definition: CbmFindPrimaryVertexEvents.h:74
CbmFindPrimaryVertexEvents::fPrimVert
CbmVertex * fPrimVert
track array
Definition: CbmFindPrimaryVertexEvents.h:78
CbmFindPrimaryVertexEvents::fFinder
CbmPrimaryVertexFinder * fFinder
Concrete finder instance.
Definition: CbmFindPrimaryVertexEvents.h:75
CbmFindPrimaryVertexEvents::fEvents
TClonesArray * fEvents
Definition: CbmFindPrimaryVertexEvents.h:76
CbmFindPrimaryVertexEvents::CbmFindPrimaryVertexEvents
CbmFindPrimaryVertexEvents()
Definition: CbmFindPrimaryVertexEvents.cxx:24