/[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.9 - (hide annotations) (download)
Fri Oct 19 09:14:00 2007 UTC (17 years, 1 month ago) by mocchiut
Branch: MAIN
CVS Tags: v3r00, v4r00, v2r02
Changes since 1.8: +1 -0 lines
File MIME type: text/plain
Added headers to compile with ROOT v5.16/x

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.9 #include <TStreamerInfo.h>
48 mocchiut 1.1 //
49     #include <PamLevel2.h>
50     #include <PamelaRun.h>
51     #include <physics/calorimeter/CalorimeterEvent.h>
52     #include <physics/trigger/TriggerEvent.h>
53     #include <physics/tof/TofEvent.h>
54     #include <physics/tracker/TrackerEvent.h>
55     #include <physics/anticounter/AnticounterEvent.h>
56     #include <physics/neutronDetector/NeutronEvent.h>
57     #include <physics/S4/S4Event.h>
58     #include <CalibCalPedEvent.h>
59    
60     //
61     #include <OrbitalInfo.h>
62     #include <RunInfo.h>
63     #include <FEVpamevcontrol.h>
64     //
65     class FEVdetector : public TObject {
66    
67     private:
68     TCanvas *thefigure;
69 mocchiut 1.8 // TFile *file;
70 mocchiut 1.5 // TTree *otr;
71     TChain *otr;
72     // TTree *runtree;
73 mocchiut 1.7 // TChain *runtree;
74 mocchiut 1.1 pamela::PscuHeader *ph;
75     pamela::EventHeader *eh;
76     pamela::calorimeter::CalorimeterEvent *de;
77     pamela::tracker::TrackerEvent *trk;
78     pamela::neutron::NeutronEvent *ne;
79     pamela::neutron::NeutronRecord *nr;
80     pamela::anticounter::AnticounterEvent *ace;
81     pamela::S4::S4Event *s4;
82     pamela::trigger::TriggerEvent *trigger;
83     pamela::tof::TofEvent *tof;
84 mocchiut 1.5 // OrbitalInfo *oinfoL2;
85     // ItoRunInfo *runinfo;
86 mocchiut 1.1 PAMevcontrol *pamgui;
87     Int_t *ctrlword;
88     Int_t thisentry;
89     Int_t b[4];
90     Float_t mip[2][22][96];
91     Bool_t defcalib;
92     struct Calib calib;
93     struct Evento evento;
94     void ColorMIP(Float_t mip, int& colo);
95     void ColorTOFMIP(Float_t mip, int& colo);
96     void ColorTRKMIP(Float_t mip, int& colo, Int_t img);
97     void ShowPalette();
98     void ShowCalo(Bool_t upd);
99     void ShowTRK(Bool_t upd);
100     void ShowTrack();
101     void ShowTOF();
102     void ShowAC();
103     void ShowS4(Bool_t upd);
104     void ShowND();
105 mocchiut 1.4
106 mocchiut 1.5 // void PrintData(TTree *,Long64_t, Int_t);
107     // void PrintLeaves(TTree *, Int_t, TBranchElement *,Int_t);
108 mocchiut 1.4 void ShowInfo(TString);
109    
110 mocchiut 1.1 void Calo1stcalib();
111     int OLDCaloFindCalibs();
112     int CaloPede(Int_t s);
113     void CaloFindBaseRaw(Int_t l, Int_t m, Int_t pre);
114     void CaloCompressData(Int_t l, Int_t m, Int_t pre);
115    
116     public:
117 mocchiut 1.8 PamLevel2 *L2;
118 mocchiut 1.1 struct Levels level;
119     struct Variables var;
120 mocchiut 1.2 TString ddec;
121 mocchiut 1.1 Int_t lastevno;
122     Int_t firstevno;
123     Int_t si;
124     // Int_t jumpto;
125     Int_t maxevent;
126     Int_t minevent;
127     Int_t headc;
128     Int_t headcold;
129     Int_t OBT;
130     Int_t OOBT;
131     Int_t DOBT;
132     Int_t calotrig;
133     Int_t toftrig;
134     Int_t s4pulser;
135     // Int_t selection;
136     // Int_t doflag;
137     // Int_t seldone;
138     TString trcs;
139     //
140     FEVdetector(TString filename, TString selfile, Int_t &mainctrlword, TCanvas &figure);
141     void SetGUIPtr(PAMevcontrol &mainpamgui);
142 mocchiut 1.2 void SetDDEC(TString);
143 mocchiut 1.1 void checkctrlword();
144     void add(TString name);
145 mocchiut 1.5 //Int_t Load(TTree &mainotr, TFile &mainfile);
146 mocchiut 1.8 // TChain *Load(TFile &mainfile);
147     TChain *Load(TString mainfile);
148 mocchiut 1.5 TChain *GetChain(){return otr;};
149 mocchiut 1.7 // TChain *GetRunChain(){return runtree;};
150 mocchiut 1.1 void GetWindow();
151     void ClearVariables();
152     void GetEntry(Int_t i);
153     void SetEntry(Int_t i);
154     void GetGeneralInfo();
155     void DisplayEvent();
156     void DrawX(Float_t cx, Float_t cy, Float_t si, Variables & var);
157     int GetThisEntry(){return (thisentry);};
158     int GetCounter();
159     int SelectEvent();
160 mocchiut 1.6 //
161     PamLevel2 *GetL2(){return L2;};
162     //
163 mocchiut 1.1 };
164    
165     #endif

  ViewVC Help
Powered by ViewVC 1.1.23