CbmRoot
Loading...
Searching...
No Matches
CbmRichUrqmdTest.h
Go to the documentation of this file.
1/* Copyright (C) 2012-2024 UGiessen/JINR-LIT, Giessen/Dubna
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Andrey Lebedev, Semen Lebedev [committer], Martin Beyer */
4
5#ifndef CBM_RICH_URQMD_TEST
6#define CBM_RICH_URQMD_TEST
7
8#include "FairTask.h"
9class TClonesArray;
10class CbmRichRing;
11class TCanvas;
12class CbmHistManager;
13class CbmMCDataArray;
14class CbmMCEventList;
15class CbmDigiManager;
16class CbmLink;
17
18#include <map>
19#include <vector>
20
21
22class CbmRichUrqmdTest : public FairTask {
23
24 public:
29
33 virtual ~CbmRichUrqmdTest();
34
38 virtual InitStatus Init();
39
43 virtual void Exec(Option_t* option);
44
48 virtual void Finish();
49
50
55 void SetOutputDir(const std::string& dir) { fOutputDir = dir; }
56
57
58 private:
59 CbmHistManager* fHM = nullptr;
60
61 std::string fOutputDir = ""; // output dir for results
62
63 TClonesArray* fRichHits = nullptr;
64 TClonesArray* fRichRings = nullptr;
67 TClonesArray* fRichRingMatches = nullptr;
68 TClonesArray* fRichProjections = nullptr;
71
72 int fEventNum = 0;
73 int fMinNofHits = 7; // Min number of hits in ring for detector acceptance calculation.
74
75 std::map<CbmLink, int> fNofHitsInRingMap; // Number of hits in the MC RICH ring
76
77 std::vector<std::pair<int, int>> fVertexZStsSlices; // Slices (Zmin - Zmax) inside STS
78
82 void InitHistograms();
83
85
89 void NofRings();
90
94 void NofHitsAndPoints();
95
99 void NofProjections();
100
104 void Vertex();
105
106
110 void DrawHist();
111
112 void PmtXYSource();
113
118
123
124 ClassDef(CbmRichUrqmdTest, 1)
125};
126
127#endif
CbmDigiManager.
Histogram manager.
Access to a MC data branch for time-based analysis.
Container class for MC events with number, file and start time.
CbmHistManager * fHM
std::vector< std::pair< int, int > > fVertexZStsSlices
CbmRichUrqmdTest & operator=(const CbmRichUrqmdTest &)
Assignment operator.
TClonesArray * fRichRings
CbmMCDataArray * fRichPoints
virtual void Exec(Option_t *option)
Inherited from FairTask.
virtual InitStatus Init()
Inherited from FairTask.
void DrawHist()
Draw histograms.
CbmMCEventList * fEventList
TClonesArray * fRichHits
CbmRichUrqmdTest()
Standard constructor.
TClonesArray * fRichProjections
CbmRichUrqmdTest(const CbmRichUrqmdTest &)
Copy constructor.
void InitHistograms()
Initialize histograms.
std::string fOutputDir
void SetOutputDir(const std::string &dir)
Set output directory where you want to write results (figures and json).
virtual void Finish()
Inherited from FairTask.
CbmMCDataArray * fMcTracks
virtual ~CbmRichUrqmdTest()
Standard destructor.
std::map< CbmLink, int > fNofHitsInRingMap
TClonesArray * fRichRingMatches
CbmDigiManager * fDigiMan