CbmRoot
Loading...
Searching...
No Matches
CbmRichMCbmAerogelAna.h
Go to the documentation of this file.
1/* Copyright (C) 2020 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Florian Uhlig [committer] */
4
5#ifndef MCBM_RICH_Aerogel
6#define MCBM_RICH_Aerogel
7
8#include "CbmEvent.h"
10#include "FairTask.h"
11class TClonesArray;
12class CbmRichRing;
13class CbmRichHit;
14class CbmTofTracklet;
15class CbmHistManager;
16class TVector3;
17class CbmDigiManager;
18
19#include <map>
20#include <vector>
21
22using namespace std;
23
24
25class CbmRichMCbmAerogelAna : public FairTask {
26
27 public:
32
37
41 virtual InitStatus Init();
42
46 virtual void Exec(Option_t* option);
47
51 virtual void Finish();
52
57 void SetOutputDir(const string& dir) { fOutputDir = dir; }
58
59
63 void DrawFromFile(const string& fileName, const string& outputDir);
64
65
69 void DoDrawCanvas(bool val = true) { fDoDrawCanvas = val; }
70
74 void DoWriteHistToFile(bool val = true) { fDoWriteHistToFile = val; }
75
76
80 void XOffsetHistos(Double_t offset = 0.) { fXOffsetHisto = offset; }
81
82 private:
84
85 TClonesArray* fRichHits;
86
87 TClonesArray* fRichRings;
88
89 TClonesArray* fCbmEvent;
90
92
93 Double_t fXOffsetHisto;
94
95 Int_t fEventNum;
96
98
100
102
103
104 string fOutputDir; // output dir for results
105
107 bool fDoDrawCanvas = true;
108
112 void InitHistograms();
113
117 void DrawHist();
118
119 void RichRings();
120 ;
121
122 bool doToT(CbmRichHit* hit);
123
124 Bool_t cutRadius(CbmRichRing* ring);
125
126
131
136
137
138 ClassDef(CbmRichMCbmAerogelAna, 1)
139};
140
141#endif
Ring finder implementation based on Hough Transform method.
CbmDigiManager.
Histogram manager.
void DrawFromFile(const string &fileName, const string &outputDir)
Draw histogram from file.
bool doToT(CbmRichHit *hit)
CbmRichMCbmAerogelAna(const CbmRichMCbmAerogelAna &)
Copy constructor.
void DrawHist()
Draw histograms.
void DoWriteHistToFile(bool val=true)
CbmRichMCbmAerogelAna()
Standard constructor.
virtual void Finish()
Inherited from FairTask.
void InitHistograms()
Initialize histograms.
Bool_t cutRadius(CbmRichRing *ring)
virtual ~CbmRichMCbmAerogelAna()
Standard destructor.
CbmRichMCbmAerogelAna & operator=(const CbmRichMCbmAerogelAna &)
Assignment operator.
virtual void Exec(Option_t *option)
Inherited from FairTask.
void SetOutputDir(const string &dir)
Set output directory where you want to write results (figures and json).
void XOffsetHistos(Double_t offset=0.)
void DoDrawCanvas(bool val=true)
virtual InitStatus Init()
Inherited from FairTask.
Provides information on attaching a TofHit to a TofTrack.
Hash for CbmL1LinkKey.