/[PAMELA software]/eventviewer/flight/inc/FEVdetector.h
ViewVC logotype

Annotation of /eventviewer/flight/inc/FEVdetector.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (hide annotations) (download)
Tue Apr 17 16:05:14 2007 UTC (17 years, 7 months ago) by mocchiut
Branch: MAIN
CVS Tags: v2r01
Changes since 1.7: +4 -3 lines
File MIME type: text/plain
Strange bug (lead to crash) which appears using ROOT >= 5.14 fixed

1 mocchiut 1.1 #ifndef __FEVdetector__
2     #define __FEVdetector__
3     #include <feventvstruct.h>
4     #include <TObjectTable.h>
5     #include <TGClient.h>
6     #include <TGButton.h>
7     #include <TGComboBox.h>
8     #include <TGLabel.h>
9     #include <TGTextEntry.h>
10     #include <TGFrame.h>
11     #include <TGButtonGroup.h>
12     #include <TGProgressBar.h>
13     #include <TGMsgBox.h>
14     #include <TGComboBox.h>
15     #include <TTree.h>
16     #include <TClassEdit.h>
17     #include <TObject.h>
18     #include <TList.h>
19     #include <TSystem.h>
20     #include <TSystemDirectory.h>
21     #include <TString.h>
22     #include <TFile.h>
23     #include <TClass.h>
24     #include <TCanvas.h>
25     #include <TH1.h>
26     #include <TH1F.h>
27     #include <TH2D.h>
28     #include <TLatex.h>
29     #include <TPad.h>
30     #include <TPaveLabel.h>
31     #include <TLine.h>
32     #include <TPolyLine.h>
33     #include <TChain.h>
34     #include <TApplication.h>
35     #include <TVirtualX.h>
36     #include <TGClient.h>
37     #include <TGWindow.h>
38     #include <TEllipse.h>
39     #include <TArrow.h>
40     #include <TStyle.h>
41 mocchiut 1.2 #include <TLeaf.h>
42     #include <TLeafElement.h>
43     #include <TLeafF.h>
44     #include <TLeafC.h>
45     #include <TLeafD.h>
46 mocchiut 1.4 #include <TBranchClones.h>
47 mocchiut 1.1 //
48     #include <PamLevel2.h>
49     #include <PamelaRun.h>
50     #include <physics/calorimeter/CalorimeterEvent.h>
51     #include <physics/trigger/TriggerEvent.h>
52     #include <physics/tof/TofEvent.h>
53     #include <physics/tracker/TrackerEvent.h>
54     #include <physics/anticounter/AnticounterEvent.h>
55     #include <physics/neutronDetector/NeutronEvent.h>
56     #include <physics/S4/S4Event.h>
57     #include <CalibCalPedEvent.h>
58    
59     //
60     #include <OrbitalInfo.h>
61     #include <RunInfo.h>
62     #include <FEVpamevcontrol.h>
63     //
64     class FEVdetector : public TObject {
65    
66     private:
67     TCanvas *thefigure;
68 mocchiut 1.8 // TFile *file;
69 mocchiut 1.5 // TTree *otr;
70     TChain *otr;
71     // TTree *runtree;
72 mocchiut 1.7 // TChain *runtree;
73 mocchiut 1.1 pamela::PscuHeader *ph;
74     pamela::EventHeader *eh;
75     pamela::calorimeter::CalorimeterEvent *de;
76     pamela::tracker::TrackerEvent *trk;
77     pamela::neutron::NeutronEvent *ne;
78     pamela::neutron::NeutronRecord *nr;
79     pamela::anticounter::AnticounterEvent *ace;
80     pamela::S4::S4Event *s4;
81     pamela::trigger::TriggerEvent *trigger;
82     pamela::tof::TofEvent *tof;
83 mocchiut 1.5 // OrbitalInfo *oinfoL2;
84     // ItoRunInfo *runinfo;
85 mocchiut 1.1 PAMevcontrol *pamgui;
86     Int_t *ctrlword;
87     Int_t thisentry;
88     Int_t b[4];
89     Float_t mip[2][22][96];
90     Bool_t defcalib;
91     struct Calib calib;
92     struct Evento evento;
93     void ColorMIP(Float_t mip, int& colo);
94     void ColorTOFMIP(Float_t mip, int& colo);
95     void ColorTRKMIP(Float_t mip, int& colo, Int_t img);
96     void ShowPalette();
97     void ShowCalo(Bool_t upd);
98     void ShowTRK(Bool_t upd);
99     void ShowTrack();
100     void ShowTOF();
101     void ShowAC();
102     void ShowS4(Bool_t upd);
103     void ShowND();
104 mocchiut 1.4
105 mocchiut 1.5 // void PrintData(TTree *,Long64_t, Int_t);
106     // void PrintLeaves(TTree *, Int_t, TBranchElement *,Int_t);
107 mocchiut 1.4 void ShowInfo(TString);
108    
109 mocchiut 1.1 void Calo1stcalib();
110     int OLDCaloFindCalibs();
111     int CaloPede(Int_t s);
112     void CaloFindBaseRaw(Int_t l, Int_t m, Int_t pre);
113     void CaloCompressData(Int_t l, Int_t m, Int_t pre);
114    
115     public:
116 mocchiut 1.8 PamLevel2 *L2;
117 mocchiut 1.1 struct Levels level;
118     struct Variables var;
119 mocchiut 1.2 TString ddec;
120 mocchiut 1.1 Int_t lastevno;
121     Int_t firstevno;
122     Int_t si;
123     // Int_t jumpto;
124     Int_t maxevent;
125     Int_t minevent;
126     Int_t headc;
127     Int_t headcold;
128     Int_t OBT;
129     Int_t OOBT;
130     Int_t DOBT;
131     Int_t calotrig;
132     Int_t toftrig;
133     Int_t s4pulser;
134     // Int_t selection;
135     // Int_t doflag;
136     // Int_t seldone;
137     TString trcs;
138     //
139     FEVdetector(TString filename, TString selfile, Int_t &mainctrlword, TCanvas &figure);
140     void SetGUIPtr(PAMevcontrol &mainpamgui);
141 mocchiut 1.2 void SetDDEC(TString);
142 mocchiut 1.1 void checkctrlword();
143     void add(TString name);
144 mocchiut 1.5 //Int_t Load(TTree &mainotr, TFile &mainfile);
145 mocchiut 1.8 // TChain *Load(TFile &mainfile);
146     TChain *Load(TString mainfile);
147 mocchiut 1.5 TChain *GetChain(){return otr;};
148 mocchiut 1.7 // TChain *GetRunChain(){return runtree;};
149 mocchiut 1.1 void GetWindow();
150     void ClearVariables();
151     void GetEntry(Int_t i);
152     void SetEntry(Int_t i);
153     void GetGeneralInfo();
154     void DisplayEvent();
155     void DrawX(Float_t cx, Float_t cy, Float_t si, Variables & var);
156     int GetThisEntry(){return (thisentry);};
157     int GetCounter();
158     int SelectEvent();
159 mocchiut 1.6 //
160     PamLevel2 *GetL2(){return L2;};
161     //
162 mocchiut 1.1 };
163    
164     #endif

  ViewVC Help
Powered by ViewVC 1.1.23