91 |
|
|
92 |
// flag to control profiler actions |
// flag to control profiler actions |
93 |
Bool_t STATIC; |
Bool_t STATIC; |
94 |
|
Bool_t KEEPENV; |
95 |
Bool_t INSERT_RAW; |
Bool_t INSERT_RAW; |
96 |
Bool_t INSERT_ROOT; |
Bool_t INSERT_ROOT; |
97 |
Bool_t VALIDATE; |
Bool_t VALIDATE; |
98 |
Bool_t NOFRAG; |
Bool_t NOFRAG; |
99 |
Bool_t AUTOBOOT; |
Bool_t AUTOBOOT; |
100 |
Bool_t PEDANTIC; |
Bool_t PEDANTIC; |
101 |
|
Bool_t RELAXED; |
102 |
|
|
103 |
// flags and variables for chewbacca |
// flags and variables for chewbacca |
104 |
Bool_t chewbacca; |
Bool_t chewbacca; |
105 |
UInt_t chID; |
UInt_t chID; |
106 |
// |
// |
107 |
|
TString tag; |
108 |
|
TString chiby; |
109 |
|
// |
110 |
UInt_t chpktinit; |
UInt_t chpktinit; |
111 |
UInt_t chpktfinal; |
UInt_t chpktfinal; |
112 |
UInt_t chobtinit; |
UInt_t chobtinit; |
113 |
UInt_t chobtfinal; |
UInt_t chobtfinal; |
114 |
|
UInt_t chrtinit; |
115 |
Int_t nrhbef; |
Int_t nrhbef; |
116 |
Int_t nrhaf; |
Int_t nrhaf; |
117 |
Int_t nrtbef; |
Int_t nrtbef; |
124 |
UInt_t chobtts; |
UInt_t chobtts; |
125 |
UInt_t chlastts; |
UInt_t chlastts; |
126 |
UInt_t chresursts; |
UInt_t chresursts; |
127 |
|
UInt_t idresof; |
128 |
UInt_t chboot; |
UInt_t chboot; |
129 |
UInt_t chminentry; |
UInt_t chminentry; |
130 |
|
|
190 |
void FillClass(); |
void FillClass(); |
191 |
void FillClass(Bool_t mishead, Bool_t mistrail, Int_t firstev, Int_t lastev); |
void FillClass(Bool_t mishead, Bool_t mistrail, Int_t firstev, Int_t lastev); |
192 |
void HandleTRK_CALIB(Bool_t pk1, Bool_t pk2); |
void HandleTRK_CALIB(Bool_t pk1, Bool_t pk2); |
193 |
|
void HandleTRK_CALIB(GL_TRK_CALIB*); |
194 |
// |
// |
195 |
void RemoveCALIBS(); |
void RemoveCALIBS(); |
196 |
void ValidationOFF(); |
void ValidationOFF(); |
197 |
void ReArrangeRUNS(); |
void ReArrangeRUNS(); |
198 |
void RemoveRUNS(); |
void RemoveRUNS(); |
199 |
void RemoveFILES(); |
void RemoveFILES(UInt_t idtsy); |
200 |
// |
// |
201 |
Bool_t IsDebug(){return(debug);}; |
Bool_t IsDebug(){return(debug);}; |
202 |
Bool_t IsRunAlreadyInserted(); |
Bool_t IsRunAlreadyInserted(); |
203 |
Bool_t IsRunConsistent(Bool_t mishead, Bool_t mistrail, UInt_t &firstev, UInt_t &lastev); |
Bool_t IsRunConsistent(Bool_t mishead, Bool_t mistrail, UInt_t &firstev, UInt_t &lastev); |
204 |
Bool_t AutoBoot(){return(AUTOBOOT);}; |
Bool_t AutoBoot(){return(AUTOBOOT);}; |
205 |
// |
// |
206 |
Bool_t MissingTRK_CALIB(UInt_t t1,UInt_t t2); |
// Bool_t MissingTRK_CALIB(UInt_t t1,UInt_t t2); |
207 |
|
UInt_t MissingTRK_CALIB(UInt_t t1,UInt_t t2); |
208 |
// |
// |
209 |
Long64_t PKT(UInt_t pkt_num); |
Long64_t PKT(UInt_t pkt_num); |
210 |
// |
// |
218 |
|
|
219 |
public: |
public: |
220 |
// |
// |
221 |
PamelaDBOperations(TString host, TString user, TString password, TString filerawname, TString filerootname, UInt_t boot, UInt_t tsync, UInt_t obt0, Bool_t debug, TString tlefilename,UInt_t dwinput, Bool_t staticp, Bool_t gpamela); // constructor |
PamelaDBOperations(TString host, TString user, TString password, TString filerawname, TString filerootname, UInt_t boot, UInt_t tsync, UInt_t obt0, Bool_t debug, TString tlefilename,UInt_t dwinput, Bool_t staticp, Bool_t gpamela, Bool_t keepenv); // constructor |
222 |
// |
// |
223 |
void Close(); // destructor |
void Close(); // destructor |
224 |
// |
// |
244 |
void SetNoFrag(Bool_t nf); |
void SetNoFrag(Bool_t nf); |
245 |
void SetAutoBoot(Bool_t nf); |
void SetAutoBoot(Bool_t nf); |
246 |
void SetPedantic(Bool_t pd); |
void SetPedantic(Bool_t pd); |
247 |
|
void SetRelaxed(Bool_t pd){ if ( pd ) printf(" WARNING: USING RELAXED CONDITIONS, ARE YOU SURE ON WHAT YOU'RE DOING? \n"); RELAXED=pd;}; |
248 |
void SetPhysEndRunVariables(); |
void SetPhysEndRunVariables(); |
249 |
// |
// |
250 |
|
void SetTag(TString ntag){tag=ntag;}; |
251 |
|
// |
252 |
Bool_t SetID_RAW(); |
Bool_t SetID_RAW(); |
253 |
// |
// |
254 |
Int_t SetUpperLimits(); |
Int_t SetUpperLimits(); |
269 |
// |
// |
270 |
TString GetRawFile(){return((TString)gSystem->BaseName(filerawname.Data()));}; |
TString GetRawFile(){return((TString)gSystem->BaseName(filerawname.Data()));}; |
271 |
TString GetRootFile(){return((TString)gSystem->BaseName(filerootname.Data()));}; |
TString GetRootFile(){return((TString)gSystem->BaseName(filerootname.Data()));}; |
272 |
TString GetRootName(){return(filerootname);}; |
TString GetRootName(){return((TString)gSystem->ExpandPathName(filerootname.Data()));}; |
273 |
TString GetRawName(){return(filerawname);}; |
TString GetRawName(){return(filerawname);}; |
274 |
TString GetRawPath(); |
TString GetRawPath(); |
275 |
TString GetRootPath(); |
TString GetRootPath(); |
280 |
// |
// |
281 |
Int_t assignBOOT_NUMBER(); |
Int_t assignBOOT_NUMBER(); |
282 |
Int_t insertPamelaRootFile(); |
Int_t insertPamelaRootFile(); |
283 |
|
Int_t insertPamelaRootFile(GL_ROOT*); |
284 |
Int_t insertPamelaRawFile(); |
Int_t insertPamelaRawFile(); |
285 |
|
Int_t insertPamelaRawFile(GL_RAW*); |
286 |
Int_t insertPamelaGL_TIMESYNC(); |
Int_t insertPamelaGL_TIMESYNC(); |
287 |
Int_t insertPamelaRUN(); |
Int_t insertPamelaRUN(); |
288 |
Int_t insertCALO_CALIB(); |
Int_t insertCALO_CALIB(); |
296 |
Int_t ValidateRuns(); |
Int_t ValidateRuns(); |
297 |
Int_t ValidateRuns(TString valfile); |
Int_t ValidateRuns(TString valfile); |
298 |
Int_t assignVALIDATION(UInt_t ,Bool_t ); |
Int_t assignVALIDATION(UInt_t ,Bool_t ); |
299 |
|
Int_t assignVALIDATION(UInt_t ,UInt_t ); |
300 |
Int_t removeFile(TString rootfilename); |
Int_t removeFile(TString rootfilename); |
301 |
// |
// |
302 |
|
Bool_t IsChewbacca(){return chewbacca;}; |
303 |
// void OpenFile(); |
// void OpenFile(); |
304 |
void CheckValidate(Long64_t olderthan); |
void CheckValidate(Long64_t olderthan); |
305 |
void CheckConnection(); |
void CheckConnection(); |
308 |
void LockTables(); |
void LockTables(); |
309 |
void UnLockTables(); |
void UnLockTables(); |
310 |
// |
// |
311 |
|
void NotChewbacca(UInt_t boot, UInt_t tsync, UInt_t obt0, Bool_t gpamela); |
312 |
|
// |
313 |
|
|
314 |
Bool_t NoFrag(){return(NOFRAG);}; |
Bool_t NoFrag(){return(NOFRAG);}; |
315 |
Bool_t InsertRoot(){return(INSERT_ROOT);}; |
Bool_t InsertRoot(){return(INSERT_ROOT);}; |
319 |
// Functions for TLE |
// Functions for TLE |
320 |
Int_t populateTLE(); |
Int_t populateTLE(); |
321 |
|
|
322 |
UInt_t ValidateTrkCalib( CalibTrk1Event* calibtrk , EventHeader* h); |
UInt_t ValidateTrkCalib( CalibTrk1Event* calibtrk , EventHeader* h, TFile* file); |
323 |
UInt_t ValidateTrkCalib( CalibTrk2Event* calibtrk , EventHeader* h){return ValidateTrkCalib((CalibTrk1Event*)calibtrk,h); }; |
UInt_t ValidateTrkCalib( CalibTrk2Event* calibtrk , EventHeader* h, TFile* file){return ValidateTrkCalib((CalibTrk1Event*)calibtrk,h,file); }; |
324 |
|
|
325 |
|
UInt_t ValidateTrkCalib( CalibTrk1Event* calibtrk , EventHeader* h){return ValidateTrkCalib((CalibTrk1Event*)calibtrk,h,file); }; |
326 |
|
UInt_t ValidateTrkCalib( CalibTrk2Event* calibtrk , EventHeader* h){return ValidateTrkCalib((CalibTrk1Event*)calibtrk,h,file); }; |
327 |
|
|
328 |
UInt_t Check(); |
UInt_t Check(); |
329 |
UInt_t Check(UInt_t from, UInt_t to); |
UInt_t Check(UInt_t from, UInt_t to); |