1 | // ESAF : Euso Simulation and Analysis Framework |
---|
2 | // $Id: EDetectorHistoPainter.hh 2878 2011-04-28 13:15:36Z naumov $ |
---|
3 | // created May, 27 2004 |
---|
4 | |
---|
5 | #ifndef __EDETECTORHISTOPAINTER_HH__ |
---|
6 | #define __EDETECTORHISTOPAINTER_HH__ |
---|
7 | |
---|
8 | #include "TObject.h" |
---|
9 | #include "TSeqCollection.h" |
---|
10 | #include "TPolyLine.h" |
---|
11 | #include "TTimer.h" |
---|
12 | #include "TVector3.h" |
---|
13 | #include "TText.h" |
---|
14 | #include <map> |
---|
15 | #include <vector> |
---|
16 | |
---|
17 | class EDetector; |
---|
18 | class ERunParameters; |
---|
19 | class TCanvas; |
---|
20 | class TH1F; |
---|
21 | class EEvent; |
---|
22 | class TVirtualPad; |
---|
23 | |
---|
24 | |
---|
25 | class EDetectorHistoPainter : public TObject { |
---|
26 | public: |
---|
27 | EDetectorHistoPainter(); |
---|
28 | EDetectorHistoPainter(EEvent*); |
---|
29 | EDetectorHistoPainter(EDetector*, ERunParameters*); |
---|
30 | |
---|
31 | virtual ~EDetectorHistoPainter(); |
---|
32 | virtual void Clear(Option_t* =""); |
---|
33 | |
---|
34 | void Build(); |
---|
35 | TSeqCollection* GetListOfHistos() { return fHistos; } |
---|
36 | |
---|
37 | inline void SetDetector(EDetector *det) { fDetector = det; } |
---|
38 | inline void SetRunPars(ERunParameters *rp) { fRunPars = rp; } |
---|
39 | |
---|
40 | void DoGtuPhotonsHisto(TVirtualPad* = 0); |
---|
41 | void DoGtuPhotonsHisto2(TVirtualPad* = 0); |
---|
42 | void DoPhiCosThetaHisto(TVirtualPad* = 0); |
---|
43 | void DoPhotonsHistoCheckOptics(TVirtualPad* = 0); |
---|
44 | void DoXYHisto(TVirtualPad* = 0); |
---|
45 | void DoWavelengthXYHisto(TVirtualPad* = 0); |
---|
46 | |
---|
47 | TH1F *GetGtuHisto(const char *name, const char *title); |
---|
48 | |
---|
49 | void SetRangeUser(Double_t ufirst, Double_t ulast); |
---|
50 | |
---|
51 | ClassDef(EDetectorHistoPainter,0) |
---|
52 | private: |
---|
53 | Int_t fNumGtus; |
---|
54 | Float_t fFirstGtu; |
---|
55 | Float_t fLastGtu; |
---|
56 | Float_t fGtuLength; |
---|
57 | |
---|
58 | TSeqCollection *fHistos; |
---|
59 | EDetector *fDetector; |
---|
60 | ERunParameters *fRunPars; |
---|
61 | |
---|
62 | |
---|
63 | }; |
---|
64 | |
---|
65 | #endif /* __EDETECTORHISTOPAINTER_HH__ */ |
---|
66 | |
---|