CbmRoot
Loading...
Searching...
No Matches
CbmMvdClusterfinder.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// ----- CbmMvdClusterfinder header file -----
7// ----- Created by P.Sitzmann 03.12.2014 -----
8// ----------------------------------------------------------------------------
9
10
11#ifndef CBMMVDCLUSTERFINDER_H
12#define CBMMVDCLUSTERFINDER_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#include <TString.h> // for TString
21
22class CbmDigiManager;
23class CbmEvent;
24class CbmMvdDetector;
25class TBuffer;
26class TClass;
27class TClonesArray;
28class TMemberInspector;
29
30
31class CbmMvdClusterfinder : public FairTask {
32
33 public:
36
37
42 CbmMvdClusterfinder(const char* name, Int_t mode = 0, Int_t iVerbose = 1);
43
44
52 void SetMode(ECbmRecoMode mode) { fEventMode = mode; }
53
56
57 void Exec(Option_t* opt);
58
60
61 private:
63 Int_t fMode;
67
68 TClonesArray* fCluster;
69 TClonesArray* fEvents = nullptr;
70
72
73 TString fBranchName; // Name of input branch (MvdDigi)
74
75
76 TStopwatch fTimer;
77
79
80 Int_t fNofTs = 0;
81
82 // ----- Private methods ---------------------------------------------
84 virtual InitStatus Init();
85
86
88 virtual InitStatus ReInit();
89
90
92 virtual void Finish();
93
95 void Register();
96
97 void GetMvdGeometry();
98
99
101 void Reset();
102
103
105 void PrintParameters() const;
106 std::string ParametersToString() const;
107
108 void ProcessData(CbmEvent* event);
109
110 private:
113
115};
116
117
118#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
Int_t fNofTs
Number of time slices processed.
void Exec(Option_t *opt)
TStopwatch fTimer
ROOT timer.
CbmMvdDetector * fDetector
virtual InitStatus Init()
virtual InitStatus ReInit()
ClassDef(CbmMvdClusterfinder, 1)
std::string ParametersToString() const
ECbmRecoMode fEventMode
Time-slice or event-by-event.
void SetMode(ECbmRecoMode mode)
Set execution mode.
UInt_t fClusterPluginNr
Input array of events.
CbmDigiManager * fDigiMan
CbmMvdClusterfinder(const CbmMvdClusterfinder &)
void ProcessData(CbmEvent *event)
CbmMvdClusterfinder operator=(const CbmMvdClusterfinder &)