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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Jul 14 14:17:57 2006 UTC (18 years, 4 months ago) by mocchiut
Branch: MAIN
CVS Tags: v2r00beta
File MIME type: text/plain
New _BETA_ and buggy version

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

  ViewVC Help
Powered by ViewVC 1.1.23