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; |
189 |
void FillClass(); |
void FillClass(); |
190 |
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); |
191 |
void HandleTRK_CALIB(Bool_t pk1, Bool_t pk2); |
void HandleTRK_CALIB(Bool_t pk1, Bool_t pk2); |
192 |
|
void HandleTRK_CALIB(GL_TRK_CALIB*); |
193 |
// |
// |
194 |
void RemoveCALIBS(); |
void RemoveCALIBS(); |
195 |
void ValidationOFF(); |
void ValidationOFF(); |
196 |
void ReArrangeRUNS(); |
void ReArrangeRUNS(); |
197 |
void RemoveRUNS(); |
void RemoveRUNS(); |
198 |
void RemoveFILES(); |
void RemoveFILES(UInt_t idtsy); |
199 |
// |
// |
200 |
Bool_t IsDebug(){return(debug);}; |
Bool_t IsDebug(){return(debug);}; |
201 |
Bool_t IsRunAlreadyInserted(); |
Bool_t IsRunAlreadyInserted(); |
202 |
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); |
203 |
Bool_t AutoBoot(){return(AUTOBOOT);}; |
Bool_t AutoBoot(){return(AUTOBOOT);}; |
204 |
// |
// |
205 |
Bool_t MissingTRK_CALIB(UInt_t t1,UInt_t t2); |
// Bool_t MissingTRK_CALIB(UInt_t t1,UInt_t t2); |
206 |
|
UInt_t MissingTRK_CALIB(UInt_t t1,UInt_t t2); |
207 |
// |
// |
208 |
Long64_t PKT(UInt_t pkt_num); |
Long64_t PKT(UInt_t pkt_num); |
209 |
// |
// |
217 |
|
|
218 |
public: |
public: |
219 |
// |
// |
220 |
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 |
221 |
// |
// |
222 |
void Close(); // destructor |
void Close(); // destructor |
223 |
// |
// |
243 |
void SetNoFrag(Bool_t nf); |
void SetNoFrag(Bool_t nf); |
244 |
void SetAutoBoot(Bool_t nf); |
void SetAutoBoot(Bool_t nf); |
245 |
void SetPedantic(Bool_t pd); |
void SetPedantic(Bool_t pd); |
246 |
|
void SetRelaxed(Bool_t pd){ if ( pd ) printf(" WARNING: USING RELAXED CONDITIONS, ARE YOU SURE ON WHAT YOU'RE DOING? \n"); RELAXED=pd;}; |
247 |
void SetPhysEndRunVariables(); |
void SetPhysEndRunVariables(); |
248 |
// |
// |
249 |
|
void SetTag(TString ntag){tag=ntag;}; |
250 |
|
// |
251 |
Bool_t SetID_RAW(); |
Bool_t SetID_RAW(); |
252 |
// |
// |
253 |
Int_t SetUpperLimits(); |
Int_t SetUpperLimits(); |
268 |
// |
// |
269 |
TString GetRawFile(){return((TString)gSystem->BaseName(filerawname.Data()));}; |
TString GetRawFile(){return((TString)gSystem->BaseName(filerawname.Data()));}; |
270 |
TString GetRootFile(){return((TString)gSystem->BaseName(filerootname.Data()));}; |
TString GetRootFile(){return((TString)gSystem->BaseName(filerootname.Data()));}; |
271 |
TString GetRootName(){return(filerootname);}; |
TString GetRootName(){return((TString)gSystem->ExpandPathName(filerootname.Data()));}; |
272 |
TString GetRawName(){return(filerawname);}; |
TString GetRawName(){return(filerawname);}; |
273 |
TString GetRawPath(); |
TString GetRawPath(); |
274 |
TString GetRootPath(); |
TString GetRootPath(); |
279 |
// |
// |
280 |
Int_t assignBOOT_NUMBER(); |
Int_t assignBOOT_NUMBER(); |
281 |
Int_t insertPamelaRootFile(); |
Int_t insertPamelaRootFile(); |
282 |
|
Int_t insertPamelaRootFile(GL_ROOT*); |
283 |
Int_t insertPamelaRawFile(); |
Int_t insertPamelaRawFile(); |
284 |
|
Int_t insertPamelaRawFile(GL_RAW*); |
285 |
Int_t insertPamelaGL_TIMESYNC(); |
Int_t insertPamelaGL_TIMESYNC(); |
286 |
Int_t insertPamelaRUN(); |
Int_t insertPamelaRUN(); |
287 |
Int_t insertCALO_CALIB(); |
Int_t insertCALO_CALIB(); |
295 |
Int_t ValidateRuns(); |
Int_t ValidateRuns(); |
296 |
Int_t ValidateRuns(TString valfile); |
Int_t ValidateRuns(TString valfile); |
297 |
Int_t assignVALIDATION(UInt_t ,Bool_t ); |
Int_t assignVALIDATION(UInt_t ,Bool_t ); |
298 |
|
Int_t assignVALIDATION(UInt_t ,UInt_t ); |
299 |
Int_t removeFile(TString rootfilename); |
Int_t removeFile(TString rootfilename); |
300 |
// |
// |
301 |
|
Bool_t IsChewbacca(){return chewbacca;}; |
302 |
// void OpenFile(); |
// void OpenFile(); |
303 |
void CheckValidate(Long64_t olderthan); |
void CheckValidate(Long64_t olderthan); |
304 |
void CheckConnection(); |
void CheckConnection(); |
307 |
void LockTables(); |
void LockTables(); |
308 |
void UnLockTables(); |
void UnLockTables(); |
309 |
// |
// |
310 |
|
void NotChewbacca(UInt_t boot, UInt_t tsync, UInt_t obt0, Bool_t gpamela); |
311 |
|
// |
312 |
|
|
313 |
Bool_t NoFrag(){return(NOFRAG);}; |
Bool_t NoFrag(){return(NOFRAG);}; |
314 |
Bool_t InsertRoot(){return(INSERT_ROOT);}; |
Bool_t InsertRoot(){return(INSERT_ROOT);}; |
318 |
// Functions for TLE |
// Functions for TLE |
319 |
Int_t populateTLE(); |
Int_t populateTLE(); |
320 |
|
|
321 |
UInt_t ValidateTrkCalib( CalibTrk1Event* calibtrk , EventHeader* h); |
UInt_t ValidateTrkCalib( CalibTrk1Event* calibtrk , EventHeader* h, TFile* file); |
322 |
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); }; |
323 |
|
|
324 |
|
UInt_t ValidateTrkCalib( CalibTrk1Event* calibtrk , EventHeader* h){return ValidateTrkCalib((CalibTrk1Event*)calibtrk,h,file); }; |
325 |
|
UInt_t ValidateTrkCalib( CalibTrk2Event* calibtrk , EventHeader* h){return ValidateTrkCalib((CalibTrk1Event*)calibtrk,h,file); }; |
326 |
|
|
327 |
UInt_t Check(); |
UInt_t Check(); |
328 |
UInt_t Check(UInt_t from, UInt_t to); |
UInt_t Check(UInt_t from, UInt_t to); |