CbmRoot
Loading...
Searching...
No Matches
CbmMvdHitfinder.h
Go to the documentation of this file.
1/* Copyright (C) 2014-2020 Institut fuer Kernphysik, Goethe-Universitaet Frankfurt, Frankfurt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Philipp Sitzmann [committer] */
4
5// ----------------------------------------------------------------------------
6// ----- CbmMvdHitfinder header file -----
7// ----- Created by C. Dritsa (2009) -----
8// ----- Maintained by M.Deveaux (m.deveaux(att)gsi.de) -----
9// ----------------------------------------------------------------------------
10
11#ifndef CBMMVDHITFINDER_H
12#define CBMMVDHITFINDER_H 1
13
14#include "CbmDefs.h"
15#include "FairTask.h" // for InitStatus, FairTask
16
17#include <Rtypes.h> // for ClassDef
18#include <RtypesCore.h> // for Int_t, Bool_t, Option_t, UInt_t, kTRUE
19#include <TStopwatch.h> // for TStopwatch
20
21#include <string>
22
23class CbmDigiManager;
24class CbmEvent;
25class CbmMvdDetector;
26class TBuffer;
27class TClass;
28class TClonesArray;
29class TMemberInspector;
30
31class CbmMvdHitfinder : public FairTask {
32
33 public:
36
37
42 CbmMvdHitfinder(const char* name, Int_t iVerbose = 1);
43 CbmMvdHitfinder(const char* name, Int_t mode, Int_t iVerbose);
44
46 virtual ~CbmMvdHitfinder();
47
48 void Exec(Option_t* opt);
49 void UseClusterfinder(Bool_t clusterfinderFlag)
50 {
51 fUseClusterfinder = clusterfinderFlag;
52 }; //* enable use of external clusterfinder
54
62 void SetMode(ECbmRecoMode mode) { fEventMode = mode; }
63
64 protected:
66
67 private:
70
71 TClonesArray* fInputCluster;
72 TClonesArray* fHits;
73 TClonesArray* fEvents = nullptr;
74
78 TStopwatch fTimer;
79 Int_t fmode;
80
82
83 Int_t fNofTs = 0;
84
85 // ----- Private methods ---------------------------------------------
87 virtual InitStatus Init();
88
89
91 virtual InitStatus ReInit();
92
93
95 virtual void Finish();
96
97
99 void Register();
100
101
103 void Reset();
104
105 void GetMvdGeometry();
106
108 void PrintParameters() const;
109 std::string ParametersToString() const;
110
111 void ProcessData(CbmEvent*);
112
113 private:
116
118};
119
120
121#endif
ECbmRecoMode
Reconstruct the full time slice or event-by-event.
Definition CbmDefs.h:162
CbmDigiManager.
Class characterising one event by a collection of links (indices) to data objects,...
Definition CbmEvent.h:34
TClonesArray * fEvents
virtual InitStatus ReInit()
virtual ~CbmMvdHitfinder()
void Exec(Option_t *opt)
void PrintParameters() const
CbmDigiManager * fDigiMan
void SetMode(ECbmRecoMode mode)
Set execution mode.
std::string ParametersToString() const
virtual void Finish()
CbmMvdDetector * fDetector
TClonesArray * fInputCluster
TStopwatch fTimer
ROOT timer.
Int_t fNofTs
Number of time slices processed.
ClassDef(CbmMvdHitfinder, 1)
UInt_t fHitfinderPluginNr
Input array of events.
void UseClusterfinder(Bool_t clusterfinderFlag)
CbmMvdHitfinder operator=(const CbmMvdHitfinder &)
CbmMvdHitfinder(const CbmMvdHitfinder &)
virtual InitStatus Init()
TClonesArray * fHits
void ProcessData(CbmEvent *)
ECbmRecoMode fEventMode
Time-slice or event-by-event.