1 | // ESAF : Euso Simulation and Analysis Framework |
---|
2 | |
---|
3 | // Author: Alba Cappa Jan 30, 2005 |
---|
4 | |
---|
5 | #ifndef __ESINGLEPHOTONSPAINTER_HH__ |
---|
6 | #define __ESINGLEPHOTONSPAINTER_HH__ |
---|
7 | |
---|
8 | #include "EAtmosphere.hh" |
---|
9 | #include "TPolyMarker3D.h" |
---|
10 | #include <TArrayI.h> |
---|
11 | |
---|
12 | #include <map> |
---|
13 | |
---|
14 | /******************************************************************************* |
---|
15 | * |
---|
16 | * ESinglePhotonsPainter: this class plots the last position of the |
---|
17 | * photons in atmosphere |
---|
18 | * |
---|
19 | ******************************************************************************/ |
---|
20 | |
---|
21 | class ESinglePhotonsPainter : public TObject{ |
---|
22 | public: |
---|
23 | ESinglePhotonsPainter(); |
---|
24 | |
---|
25 | ESinglePhotonsPainter( EAtmosphere* ); |
---|
26 | |
---|
27 | virtual ~ESinglePhotonsPainter(); |
---|
28 | |
---|
29 | virtual void Draw( Option_t* ="" ); |
---|
30 | virtual void Paint( Option_t* ="" ); |
---|
31 | void DefineMScattCut(const TArrayI& array); |
---|
32 | |
---|
33 | void BuildPoints(); |
---|
34 | private: |
---|
35 | |
---|
36 | void Reset(); |
---|
37 | |
---|
38 | EAtmosphere *fAtmosphere; |
---|
39 | |
---|
40 | // for each kind of photon history BEFORE transmission to detector (5) |
---|
41 | // + 1 for all the photons AFTER transmission to detector |
---|
42 | Double_t fXmin[6], fXmax[6], fYmin[6], fYmax[6], fZmin[6], fZmax[6]; |
---|
43 | |
---|
44 | Int_t fMarkerStyle; |
---|
45 | Int_t fMarkerSize; |
---|
46 | |
---|
47 | std::map< Int_t, TPolyMarker3D* > fPoints_fluo; // fluo photons BEFORE transmission to detector |
---|
48 | std::map< Int_t, TPolyMarker3D* > fPoints_ckov; // ckov photons BEFORE transmission to detector |
---|
49 | std::map< Int_t, TPolyMarker3D* > fPoints_trans; // all photons AFTER transmission to detector |
---|
50 | |
---|
51 | TArrayI fIndex_list; // if MScatt cut : list of indices of selected photons -- ALL photons otherwise |
---|
52 | |
---|
53 | ClassDef(ESinglePhotonsPainter,1) |
---|
54 | |
---|
55 | }; |
---|
56 | |
---|
57 | #endif /* __EDETECTORPHOTONPLAYER_HH_ */ |
---|
58 | |
---|
59 | |
---|