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