ATTPCROOT  0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
AtEventDrawTaskProto.h
Go to the documentation of this file.
1 #ifndef AtEVENTDRAWTASKPROTO_H
2 #define AtEVENTDRAWTASKPROTO_H
3 
4 #include <Rtypes.h>
5 #include <TString.h>
6 // FairRoot classes
7 #include <FairTask.h>
8 
10 class AtHit;
11 class AtMap;
12 class AtRawEvent;
13 class TBuffer;
14 class TCanvas;
15 class TClass;
16 class TClonesArray;
17 class TEveBoxSet;
18 class TEveLine;
19 class TEvePointSet;
20 class TF1;
21 class TGraph;
22 class TH1D;
23 class TH1F;
24 class TH1I;
25 class TH2F;
26 class TH2Poly;
27 class TH3F;
28 class TMemberInspector;
29 class TPaletteAxis;
30 
31 class AtEventDrawTaskProto : public FairTask {
32 public:
34 
35  virtual ~AtEventDrawTaskProto();
36 
37  virtual InitStatus Init();
38  virtual void Exec(Option_t *option);
39  void Reset();
40  void SetHitAttributes(Color_t, Size_t, Style_t);
41  void Set3DHitStyleBar();
42  void Set3DHitStyleBox();
43 
44  static void SelectPad(const char *rawevt);
45 
46  void SetProtoMap(TString map) { fMap = map; }
47 
48 protected:
49  virtual void DrawPadWave();
50  virtual void DrawPadPlane();
51  virtual void DrawPadAll();
52  virtual void DrawMesh();
53  virtual void DrawProtoSpace();
54  virtual void DrawProtoEL();
55  virtual void DrawProtoHough();
56  virtual void DrawProtoELAna();
57  virtual void DrawProtoVertex();
58  virtual void DrawProtoKine();
59  virtual void DrawProtoAux();
60 
61  void DrawHitPoints();
62  void DrawProtoPattern();
63  void DrawProtoPatternAna();
64 
65  void UpdateCvsPadWave();
66  void UpdateCvsPadPlane();
67  void UpdateCvsPadAll();
68  void UpdateCvsMesh();
69  void UpdateCvsProtoQ();
70  void UpdateCvsProtoEL();
71  void UpdateCvsProtoVertex();
72  void UpdateCvsProtoKine();
73  void UpdateCvsProtoAux();
74 
75  EColor GetTrackColor(int i);
76 
77  // Basic types
78 
79  Int_t fMultiHit{10};
80  Int_t f3DHitStyle;
81  Bool_t fUnpackHough{};
84  Bool_t fIsRawData;
85  Color_t fHitColor;
86  Size_t fHitSize;
87  Style_t fHitStyle;
88 
89  // ROOT Objects
90  TPaletteAxis *fPadPlanePal{};
91 
92  TH3F *f3DHist{};
93 
94  TH1I *fPadAll[2015]{};
95  TH1D *fPhiDistr[5]{};
96  TH1I *fPadWave{};
97  TH2Poly *fPadPlane{};
98  TH1F *fMesh{};
99  TGraph *fQHitPattern[4]{};
100  TGraph *fQELossPattern[4]{};
101  TF1 *fHoughFit[4]{};
102  TGraph *fQELossPatternAna[4]{};
103  TF1 *fFit[4]{};
104  TH2F *fQVertex[4]{};
105  TH2F *fQKine[4]{};
106  TH1F *fAuxChannels[9]{};
107 
108  TCanvas *fCvsPadWave{};
109  TCanvas *fCvsPadPlane{};
110  TCanvas *fCvsPadAll{};
111  TCanvas *fCvsMesh{};
112  TCanvas *fCvsQuadrant1{};
113  TCanvas *fCvsQuadrant2{};
114  TCanvas *fCvsQuadrant3{};
115  TCanvas *fCvsQuadrant4{};
116  TCanvas *fCvsELQuadrant1{};
117  TCanvas *fCvsELQuadrant2{};
118  TCanvas *fCvsELQuadrant3{};
119  TCanvas *fCvsELQuadrant4{};
120  TCanvas *fCvsVertex{};
121  TCanvas *fCvsKineAA{};
122  TCanvas *fCvsAux{};
123 
125  TString fMap;
126 
127  TClonesArray *fHitArray{};
128  TClonesArray *fRawEventArray{};
129  TClonesArray *fProtoEventArray{};
130  TClonesArray *fProtoEventAnaArray{};
131  TClonesArray *fPatternEventArray{};
132 
133  TEvePointSet *fHitSet;
134  TEveBoxSet *fhitBoxSet;
135  TEvePointSet *fHitSetPR[20]{};
136 
138 
143 
144  TEveLine *fLineArray[20]{};
145  Int_t fLineNum{};
146  Int_t fTrackNum{};
147 
148  Bool_t kIsPRDrawn;
150 
152 };
153 
154 #endif
AtMap
Definition: AtMap.h:33
AtEventDrawTaskProto::fAuxChannels
TH1F * fAuxChannels[9]
Definition: AtEventDrawTaskProto.h:106
AtEventDrawTaskProto::UpdateCvsProtoEL
void UpdateCvsProtoEL()
Definition: AtEventDrawTaskProto.cxx:846
AtEventDrawTaskProto::fHitColor
Color_t fHitColor
Definition: AtEventDrawTaskProto.h:85
AtEventDrawTaskProto::UpdateCvsProtoKine
void UpdateCvsProtoKine()
Definition: AtEventDrawTaskProto.cxx:866
AtEventDrawTaskProto::DrawHitPoints
void DrawHitPoints()
Definition: AtEventDrawTaskProto.cxx:260
AtEventDrawTaskProto::GetTrackColor
EColor GetTrackColor(int i)
Definition: AtEventDrawTaskProto.cxx:1030
AtEventDrawTaskProto::fPadPlanePal
TPaletteAxis * fPadPlanePal
Definition: AtEventDrawTaskProto.h:90
AtEventDrawTaskProto::fCvsQuadrant1
TCanvas * fCvsQuadrant1
Definition: AtEventDrawTaskProto.h:112
AtEventDrawTaskProto::fHoughFit
TF1 * fHoughFit[4]
Definition: AtEventDrawTaskProto.h:101
AtEventDrawTaskProto::ClassDef
ClassDef(AtEventDrawTaskProto, 1)
AtEventDrawTaskProto::fSaveTextData
Bool_t fSaveTextData
Definition: AtEventDrawTaskProto.h:149
AtEventDrawTaskProto::Exec
virtual void Exec(Option_t *option)
Definition: AtEventDrawTaskProto.cxx:202
AtEventDrawTaskProto::fCvsQuadrant3
TCanvas * fCvsQuadrant3
Definition: AtEventDrawTaskProto.h:114
AtEventDrawTaskProto::fPhiDistr
TH1D * fPhiDistr[5]
Definition: AtEventDrawTaskProto.h:95
AtEventDrawTaskProto::fCvsELQuadrant2
TCanvas * fCvsELQuadrant2
Definition: AtEventDrawTaskProto.h:117
AtEventDrawTaskProto::AtEventDrawTaskProto
AtEventDrawTaskProto()
Definition: AtEventDrawTaskProto.cxx:71
AtEventDrawTaskProto::fQKine
TH2F * fQKine[4]
Definition: AtEventDrawTaskProto.h:105
AtEventDrawTaskProto::fPatternEventArray
TClonesArray * fPatternEventArray
Definition: AtEventDrawTaskProto.h:131
AtEventDrawTaskProto::Reset
void Reset()
Definition: AtEventDrawTaskProto.cxx:225
AtEventDrawTaskProto::fIniHit
AtHit * fIniHit
Definition: AtEventDrawTaskProto.h:140
AtEventDrawTaskProto::DrawMesh
virtual void DrawMesh()
Definition: AtEventDrawTaskProto.cxx:668
AtEventDrawTaskProto::fLineArray
TEveLine * fLineArray[20]
Definition: AtEventDrawTaskProto.h:144
AtEventDrawTaskProto::fhitBoxSet
TEveBoxSet * fhitBoxSet
Definition: AtEventDrawTaskProto.h:134
AtEventDrawTaskProto::DrawProtoPattern
void DrawProtoPattern()
Definition: AtEventDrawTaskProto.cxx:512
AtEventDrawTaskProto::fIsLinearHough
Bool_t fIsLinearHough
Definition: AtEventDrawTaskProto.h:83
AtEventDrawTaskProto::fProtoEventAnaArray
TClonesArray * fProtoEventAnaArray
Definition: AtEventDrawTaskProto.h:130
AtEventDrawTaskProto::fRawEventArray
TClonesArray * fRawEventArray
Definition: AtEventDrawTaskProto.h:128
AtEventDrawTaskProto::fCvsELQuadrant1
TCanvas * fCvsELQuadrant1
Definition: AtEventDrawTaskProto.h:116
AtEventDrawTaskProto::fMultiHit
Int_t fMultiHit
Definition: AtEventDrawTaskProto.h:79
AtEventDrawTaskProto::DrawProtoPatternAna
void DrawProtoPatternAna()
Definition: AtEventDrawTaskProto.cxx:555
AtEventDrawTaskProto::UpdateCvsProtoVertex
void UpdateCvsProtoVertex()
Definition: AtEventDrawTaskProto.cxx:859
AtEventDrawTaskProto::DrawProtoHough
virtual void DrawProtoHough()
Definition: AtEventDrawTaskProto.cxx:553
AtEventDrawTaskProto::Set3DHitStyleBox
void Set3DHitStyleBox()
Definition: AtEventDrawTaskProto.cxx:1025
AtEventDrawTaskProto::SetProtoMap
void SetProtoMap(TString map)
Definition: AtEventDrawTaskProto.h:46
AtEventDrawTaskProto::UpdateCvsPadPlane
void UpdateCvsPadPlane()
Definition: AtEventDrawTaskProto.cxx:814
AtEventDrawTaskProto::fDetmap
AtMap * fDetmap
Definition: AtEventDrawTaskProto.h:141
AtEventDrawTaskProto::fCvsPadAll
TCanvas * fCvsPadAll
Definition: AtEventDrawTaskProto.h:110
AtRawEvent
Definition: AtRawEvent.h:34
AtEventDrawTaskProto::fEventManager
AtEventManagerProto * fEventManager
AtTPCROOT objects.
Definition: AtEventDrawTaskProto.h:139
AtEventDrawTaskProto::Set3DHitStyleBar
void Set3DHitStyleBar()
Definition: AtEventDrawTaskProto.cxx:1020
AtEventDrawTaskProto::fHitSize
Size_t fHitSize
Definition: AtEventDrawTaskProto.h:86
AtEventDrawTaskProto::UpdateCvsPadAll
void UpdateCvsPadAll()
Definition: AtEventDrawTaskProto.cxx:820
AtEventDrawTaskProto::DrawPadWave
virtual void DrawPadWave()
Definition: AtEventDrawTaskProto.cxx:617
AtEventDrawTaskProto::f3DHist
TH3F * f3DHist
Definition: AtEventDrawTaskProto.h:92
AtEventDrawTaskProto::fRawevent
AtRawEvent * fRawevent
Definition: AtEventDrawTaskProto.h:142
AtEventDrawTaskProto::fCvsMesh
TCanvas * fCvsMesh
Definition: AtEventDrawTaskProto.h:111
AtEventDrawTaskProto::DrawProtoKine
virtual void DrawProtoKine()
Definition: AtEventDrawTaskProto.cxx:767
AtEventDrawTaskProto::Init
virtual InitStatus Init()
Definition: AtEventDrawTaskProto.cxx:125
AtEventDrawTaskProto::fUnpackHough
Bool_t fUnpackHough
Definition: AtEventDrawTaskProto.h:81
AtEventDrawTaskProto::fTrackNum
Int_t fTrackNum
Definition: AtEventDrawTaskProto.h:146
AtEventDrawTaskProto::fCvsAux
TCanvas * fCvsAux
Definition: AtEventDrawTaskProto.h:122
AtEventDrawTaskProto::fProtoEventArray
TClonesArray * fProtoEventArray
Definition: AtEventDrawTaskProto.h:129
AtEventDrawTaskProto::DrawProtoAux
virtual void DrawProtoAux()
Definition: AtEventDrawTaskProto.cxx:795
AtEventDrawTaskProto::fCvsKineAA
TCanvas * fCvsKineAA
Definition: AtEventDrawTaskProto.h:121
AtEventDrawTaskProto::fCvsPadWave
TCanvas * fCvsPadWave
Definition: AtEventDrawTaskProto.h:108
AtEventDrawTaskProto::f3DHitStyle
Int_t f3DHitStyle
Definition: AtEventDrawTaskProto.h:80
AtEventDrawTaskProto::fQELossPatternAna
TGraph * fQELossPatternAna[4]
Definition: AtEventDrawTaskProto.h:102
AtEventDrawTaskProto::DrawProtoEL
virtual void DrawProtoEL()
Definition: AtEventDrawTaskProto.cxx:678
AtEventDrawTaskProto::DrawProtoELAna
virtual void DrawProtoELAna()
Definition: AtEventDrawTaskProto.cxx:715
AtEventManagerProto
Definition: AtEventManagerProto.h:19
AtEventDrawTaskProto::UpdateCvsProtoQ
void UpdateCvsProtoQ()
Definition: AtEventDrawTaskProto.cxx:833
AtEventDrawTaskProto::fCvsQuadrant2
TCanvas * fCvsQuadrant2
Definition: AtEventDrawTaskProto.h:113
AtEventDrawTaskProto::fHitSet
TEvePointSet * fHitSet
Definition: AtEventDrawTaskProto.h:133
AtEventDrawTaskProto::kIsPRDrawn
Bool_t kIsPRDrawn
Definition: AtEventDrawTaskProto.h:148
AtEventDrawTaskProto::fIsCircularHough
Bool_t fIsCircularHough
Definition: AtEventDrawTaskProto.h:82
AtEventDrawTaskProto::fCvsQuadrant4
TCanvas * fCvsQuadrant4
Definition: AtEventDrawTaskProto.h:115
AtEventDrawTaskProto::fMesh
TH1F * fMesh
Definition: AtEventDrawTaskProto.h:98
AtEventDrawTaskProto
Definition: AtEventDrawTaskProto.h:31
AtEventDrawTaskProto::fQELossPattern
TGraph * fQELossPattern[4]
Definition: AtEventDrawTaskProto.h:100
AtEventDrawTaskProto::fQHitPattern
TGraph * fQHitPattern[4]
Definition: AtEventDrawTaskProto.h:99
AtEventDrawTaskProto::fCvsVertex
TCanvas * fCvsVertex
Definition: AtEventDrawTaskProto.h:120
AtEventDrawTaskProto::SelectPad
static void SelectPad(const char *rawevt)
Definition: AtEventDrawTaskProto.cxx:910
AtEventDrawTaskProto::fLineNum
Int_t fLineNum
Definition: AtEventDrawTaskProto.h:145
AtEventDrawTaskProto::DrawPadPlane
virtual void DrawPadPlane()
Definition: AtEventDrawTaskProto.cxx:626
AtEventDrawTaskProto::DrawProtoVertex
virtual void DrawProtoVertex()
Definition: AtEventDrawTaskProto.cxx:740
AtEventDrawTaskProto::fMap
TString fMap
Definition: AtEventDrawTaskProto.h:125
AtEventDrawTaskProto::fFit
TF1 * fFit[4]
Definition: AtEventDrawTaskProto.h:103
AtEventDrawTaskProto::~AtEventDrawTaskProto
virtual ~AtEventDrawTaskProto()
Definition: AtEventDrawTaskProto.cxx:119
AtEventDrawTaskProto::fIsRawData
Bool_t fIsRawData
Definition: AtEventDrawTaskProto.h:84
AtEventDrawTaskProto::fQVertex
TH2F * fQVertex[4]
Definition: AtEventDrawTaskProto.h:104
AtEventDrawTaskProto::fHitStyle
Style_t fHitStyle
Definition: AtEventDrawTaskProto.h:87
AtEventDrawTaskProto::UpdateCvsMesh
void UpdateCvsMesh()
Definition: AtEventDrawTaskProto.cxx:826
AtEventDrawTaskProto::DrawProtoSpace
virtual void DrawProtoSpace()
Definition: AtEventDrawTaskProto.cxx:676
AtEventDrawTaskProto::fPadAll
TH1I * fPadAll[2015]
Definition: AtEventDrawTaskProto.h:94
AtEventDrawTaskProto::fCvsELQuadrant3
TCanvas * fCvsELQuadrant3
Definition: AtEventDrawTaskProto.h:118
AtEventDrawTaskProto::fHitSetPR
TEvePointSet * fHitSetPR[20]
Definition: AtEventDrawTaskProto.h:135
AtEventDrawTaskProto::fHoughLinearFit
TF1 * fHoughLinearFit
Definition: AtEventDrawTaskProto.h:124
AtEventDrawTaskProto::DrawPadAll
virtual void DrawPadAll()
Definition: AtEventDrawTaskProto.cxx:647
AtEventDrawTaskProto::fHitArray
TClonesArray * fHitArray
Definition: AtEventDrawTaskProto.h:127
AtEventDrawTaskProto::SetHitAttributes
void SetHitAttributes(Color_t, Size_t, Style_t)
Definition: AtEventDrawTaskProto.cxx:1013
AtEventDrawTaskProto::fCvsELQuadrant4
TCanvas * fCvsELQuadrant4
Definition: AtEventDrawTaskProto.h:119
AtEventDrawTaskProto::fPadPlane
TH2Poly * fPadPlane
Definition: AtEventDrawTaskProto.h:97
AtEventDrawTaskProto::fPadWave
TH1I * fPadWave
Definition: AtEventDrawTaskProto.h:96
AtEventDrawTaskProto::UpdateCvsProtoAux
void UpdateCvsProtoAux()
Definition: AtEventDrawTaskProto.cxx:873
AtEventDrawTaskProto::fCvsPadPlane
TCanvas * fCvsPadPlane
Definition: AtEventDrawTaskProto.h:109
AtHit
Point in space with charge.
Definition: AtHit.h:27
AtEventDrawTaskProto::UpdateCvsPadWave
void UpdateCvsPadWave()
Update functions //////.
Definition: AtEventDrawTaskProto.cxx:808