/[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.4 - (hide annotations) (download)
Wed Feb 28 09:29:54 2007 UTC (17 years, 9 months ago) by mocchiut
Branch: MAIN
Changes since 1.3: +4 -0 lines
File MIME type: text/plain
Started adding routines for data printout handling

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

  ViewVC Help
Powered by ViewVC 1.1.23