CbmRoot
Loading...
Searching...
No Matches
CbmFindPrimaryVertex.h
Go to the documentation of this file.
1/* Copyright (C) 2006-2021 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Denis Bertini [committer], Volker Friese */
4
5// -------------------------------------------------------------------------
6// ----- CbmFindPrimaryVertex header file -----
7// ----- Created 28/11/05 by V. Friese -----
8// -------------------------------------------------------------------------
9
10
23#ifndef CBMFINDPRIMARYVERTEX_H
24#define CBMFINDPRIMARYVERTEX_H 1
25
26
27#include "CbmDefs.h"
28#include "CbmVertex.h"
29#include "FairTask.h"
30#include "TStopwatch.h"
31
32class TClonesArray;
34
35
36class CbmFindPrimaryVertex : public FairTask {
37
38 public:
41
42
47
48
55 CbmFindPrimaryVertex(const char* name, const char* title, CbmPrimaryVertexFinder* pvFinder);
56
57
59 virtual ~CbmFindPrimaryVertex();
60
61
63 virtual InitStatus Init();
64
65
67 virtual void Exec(Option_t* opt);
68
69
71 virtual void Finish();
72
77 void SetTrackType(ECbmDataType trackType) { fTrackType = trackType; }
78
79 private:
80 TStopwatch fTimer;
82 TClonesArray* fEvents = nullptr;
83 TClonesArray* fTracks;
86
87 Int_t fNofTs = 0;
88 Int_t fNofEvents = 0;
89 Double_t fNofTracks = 0;
90 Double_t fNofTracksUsed = 0.;
91 Double_t fTimeTot = 0.;
92
95
97};
98
99#endif
ECbmDataType
Definition CbmDefs.h:90
virtual void Exec(Option_t *opt)
Double_t fNofTracks
Number of input tracks.
CbmPrimaryVertexFinder * fFinder
virtual InitStatus Init()
ClassDef(CbmFindPrimaryVertex, 1)
Int_t fNofEvents
Number of processed events.
void SetTrackType(ECbmDataType trackType)
Sets type of tracks used for building the primary vertex.
Double_t fNofTracksUsed
Number of tracks used for vertex finding.
CbmFindPrimaryVertex(const CbmFindPrimaryVertex &)
CbmFindPrimaryVertex & operator=(const CbmFindPrimaryVertex &)
Int_t fNofTs
Number of processed timeslices.
Double_t fTimeTot
Total execution time [s].