source: JEM-EUSO/esaf_cc_at_lal/packages/common/gui/include/EusoHistoFactory.hh @ 114

Last change on this file since 114 was 114, checked in by moretto, 11 years ago

actual version of ESAF at CCin2p3

File size: 1.7 KB
Line 
1// ESAF : Euso Simulation and Analysis Framework
2// $Id: EusoHistoFactory.hh 2218 2005-10-18 23:17:30Z thea $
3// Singleton to create standard histograms for GUI
4// Each method of this class can produce a canvas with standard plot
5// for a single event or to compare different events
6// M.Pallavicini created Apr, 18 2003
7
8#ifndef __EUSOHISTOFACTORY_HH_
9#define __EUSOHISTOFACTORY_HH_
10
11#include "TH1.h"
12
13#include "euso.hh"
14
15class EEvent;
16class TCanvas;
17class TTree;
18
19enum EusoStandardHistoId {
20    HS_GTUTIME_1,
21    HS_PHOTON_PHICOSTH_1,
22    HS_PHOTON_XY_1,
23    HS_PHOTON_WLXY_1,
24    HG_TRIGGER_EFF_1   
25};
26
27class EusoHistoFactory {
28public:
29    virtual ~EusoHistoFactory();
30    static EusoHistoFactory *Get();
31
32    // event histograms (grouped in standard pads)
33    void DoHisto(EusoStandardHistoId, EEvent*, TCanvas* c=0);
34
35    // global histogram on a tree
36    void DoGlobalHisto(EusoStandardHistoId,TTree*,TCanvas* c=0);
37   
38    // Close windows if any
39    void Close();
40   
41private:
42    EusoHistoFactory();
43    static EusoHistoFactory *fMe;
44
45    inline void SetCanvas( TCanvas* val) { pCanvas = val;}
46    inline TCanvas* Canvas() { return pCanvas;}
47    TCanvas *pCanvas;
48
49    // single event histograms
50    // Time distribution of photons at various stage of Euso detector
51    void DoGtuPhotonsHisto(EEvent*,TCanvas *c);
52    void DoPhiCosThetaHisto(EEvent*,TCanvas *c);
53    //Photons in plane XY at various stage of Eudo detector
54    void DoXYHisto(EEvent* ev, TCanvas *c);
55    //Photons in plane XY on IFS at different wavelengths
56    void DoWavelengthXYHisto(EEvent* ev, TCanvas *c);
57
58    // gloabal histograms
59    void DoTriggerEffic1(TTree*,TCanvas*);
60
61    ClassDef(EusoHistoFactory,0)
62};
63
64#endif  /* __EUSOHISTOFACTORY_HH_ */
65
Note: See TracBrowser for help on using the repository browser.