1 | // ESAF : Euso Simulation and Analysis Framework |
---|
2 | // $Id: ETreeShowerPainter.hh 1194 2004-11-15 17:14:12Z thea $ |
---|
3 | // Author: Dmitry V.Naumov Aug, 1 2004 |
---|
4 | |
---|
5 | #ifndef __ETREESHOWERPAINTER_HH__ |
---|
6 | #define __ETREESHOWERPAINTER_HH__ |
---|
7 | |
---|
8 | //#include "euso.hh" |
---|
9 | #include <TObject.h> |
---|
10 | #include <TSeqCollection.h> |
---|
11 | |
---|
12 | class TGeoManager; |
---|
13 | class TGeoVolume; |
---|
14 | class TGeoMedium; |
---|
15 | class TTree; |
---|
16 | class EShower; |
---|
17 | class EEvent; |
---|
18 | class TH1F; |
---|
19 | /******************************************************************************* |
---|
20 | * |
---|
21 | * ETreeShowerPainter: class description |
---|
22 | * This class is responsible for reading tracks from the euso simulation tree |
---|
23 | * and doing its graphycal representation. It can draw the EUSO Field of View, |
---|
24 | * display 3D tracks, draw histogramms with Energy, Theta, Phi and X1 (more tome |
---|
25 | * come) and even make the animation of 3D tracks and histogramms |
---|
26 | ******************************************************************************/ |
---|
27 | |
---|
28 | class ETreeShowerPainter : public TObject { |
---|
29 | public: |
---|
30 | ETreeShowerPainter(TTree *); // ctor |
---|
31 | virtual ~ETreeShowerPainter(); // dtor |
---|
32 | virtual void Draw( Option_t * =""); |
---|
33 | |
---|
34 | inline Bool_t IsWorldBuilt() {return fWorldBuild;} // Checks if the geometry is built |
---|
35 | void Build(); // Build the geometry and read the tracks |
---|
36 | void BuildWorld(); // Build the geometry |
---|
37 | void AddShower(EShower*); // Adds new shower read from the file |
---|
38 | TH1F* BuildHistos(const char *name, const char *title); // Build histogramms |
---|
39 | void FillHistos(EShower *); // Fills the histogramms |
---|
40 | void DrawHistos(Option_t *); // Draw the histogramms |
---|
41 | |
---|
42 | private: |
---|
43 | TTree *fTree; // Pointer for the euso tree to read from |
---|
44 | EEvent *fEv; // Current Euso Event |
---|
45 | Bool_t fWorldBuild; // true if the geometry is build, false othewise |
---|
46 | TGeoVolume *fTop; // TOP Volume of the global geometry |
---|
47 | TGeoVolume *fFoVVolume; // Geometry realization of the Field of View of EUSO |
---|
48 | TGeoMedium *fVacuum; // Geometry Medium |
---|
49 | Int_t fCurrentTrack; // index of the current track read from fTree |
---|
50 | Int_t fEvTot; // Total number of events in the fTree |
---|
51 | TSeqCollection *fHistos; // Collection of histogramms representing the events |
---|
52 | ClassDef(ETreeShowerPainter,1) |
---|
53 | }; |
---|
54 | |
---|
55 | #endif /* __ETREESHOWERPAINTER_HH__ */ |
---|
56 | |
---|