BmnRoot
Loading...
Searching...
No Matches
CbmStsSimulationQa.h
Go to the documentation of this file.
1// -------------------------------------------------------------------------
2// ----- CbmStsSimulationQa header file -----
3// ----- Created 02/02/07 by R. Karabowicz -----
4// -------------------------------------------------------------------------
5
6
14#ifndef CBMSTSSIMULATIONQA_H
15#define CBMSTSSIMULATIONQA_H 1
16
17#include "FairTask.h"
18
19#include "TVector3.h"
20
21class TCanvas;
22class TPad;
23class TClonesArray;
24class TH1F;
25class TH2F;
26class TH3F;
27class TList;
29class CbmGeoStsPar;
30
31
32class CbmStsSimulationQa : public FairTask
33{
34 public:
37
41 CbmStsSimulationQa(Bool_t visualizeBool, Int_t iVerbose = 1);
42
43
46
47
49 virtual void SetParContainers();
50
51
53 virtual InitStatus Init();
54
55
57 virtual InitStatus ReInit();
58
59
61 virtual void Exec(Option_t* opt);
62
63 private:
65 virtual void Finish();
66
68 InitStatus GetGeometry();
69
70
72 void CreateHistos();
73
74
76 void Reset();
77
78
80 TClonesArray* fMCTracks; // MCtrack
81 TClonesArray* fSTSPoints; // MCpoints
82
83
85 FairGeoPassivePar* fPassGeo; // Passive geometry parameters
86 CbmGeoStsPar* fStsGeo; // STS geometry parameters
87 TVector3 fTargetPos; // Target centre position
88 Int_t fNStations; // Number of STS stations
89 Int_t fStationsMCId[10]; // MC ID of the STS stations
90 Int_t fStationNrFromMcId[10000]; // station number from mc id
91 Float_t fStationRadius[10];
92 Int_t fNSectors[10]; // Number of STS sectors per station
93
94
96 TH1F* fhMomAll;
97 TH2F *fhYPtMapAll;
98 TH1F *fhPdgCodeAll;
99 TH1F *fhStsPointsAll;
100 TH1F* fhMomRec;
101 TH2F *fhYPtMapRec;
102 TH1F *fhPdgCodeRec;
103 TH1F *fhStsPointsRec;
104 TH2F *fhMomStsPoints;
105 TH3F *fhStsPointsPosition;
106 TH2F *fhStationPoints[10];
107
108 TH1F *fhNofEvents;
109 TH1F *fhNofStsStations;
110
112 TList* fHistoList;
113
114
116 Int_t fNEvents;
117
118 Bool_t fOnlineAnalysis;
119 TCanvas* fOnlineCanvas;
120 TPad* fOnlinePad[10];
121
123 CbmStsSimulationQa operator=(const CbmStsSimulationQa&);
124
125 ClassDef(CbmStsSimulationQa,1);
126
127};
128
129#endif
130
virtual void Exec(Option_t *opt)
virtual InitStatus Init()
CbmStsSimulationQa(Bool_t visualizeBool, Int_t iVerbose=1)
virtual InitStatus ReInit()
virtual ~CbmStsSimulationQa()
virtual void SetParContainers()