5 |
#include <list> |
#include <list> |
6 |
// |
// |
7 |
#include <TSQLServer.h> |
#include <TSQLServer.h> |
|
#include <TArrayD.h> |
|
8 |
// |
// |
9 |
#include <EventHeader.h> |
#include <EventHeader.h> |
10 |
#include <PscuHeader.h> |
#include <PscuHeader.h> |
49 |
UInt_t tsync; |
UInt_t tsync; |
50 |
UInt_t toffset; |
UInt_t toffset; |
51 |
// |
// |
52 |
|
// Long64_t olderthan; |
53 |
|
// |
54 |
UInt_t BOOTNO; |
UInt_t BOOTNO; |
55 |
UInt_t obt0; |
UInt_t obt0; |
56 |
UInt_t id; |
UInt_t id; |
77 |
// |
// |
78 |
Bool_t NOBOOT; |
Bool_t NOBOOT; |
79 |
Bool_t debug; |
Bool_t debug; |
80 |
|
|
81 |
|
// flag to control profiler actions |
82 |
|
Bool_t INSERT_RAW; |
83 |
|
Bool_t INSERT_ROOT; |
84 |
|
Bool_t VALIDATE; |
85 |
|
|
86 |
|
TDatime *clean_time; |
87 |
|
|
88 |
// |
// |
89 |
typedef std::list<const char*> pcksList; |
typedef std::list<const char*> pcksList; |
90 |
static void getPacketsNames(pcksList &pcksNames){ |
static void getPacketsNames(pcksList &pcksNames){ |
150 |
Bool_t IsRunAlreadyInserted(); |
Bool_t IsRunAlreadyInserted(); |
151 |
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); |
152 |
// |
// |
153 |
|
Bool_t MissingTRK_CALIB(UInt_t t1,UInt_t t2); |
154 |
|
// |
155 |
UInt_t PKT(UInt_t pkt_num); |
UInt_t PKT(UInt_t pkt_num); |
156 |
// |
// |
157 |
ULong64_t OBT(UInt_t obt); |
ULong64_t OBT(UInt_t obt); |
158 |
// |
// |
|
TArrayD S4_paramfit(pamela::CalibS4Event *S4CalibEvent); |
|
|
// |
|
159 |
|
|
160 |
public: |
public: |
161 |
// |
// |
177 |
void SetObt0(UInt_t ts); |
void SetObt0(UInt_t ts); |
178 |
void SetCommonGLRUN(UInt_t absth, UInt_t abstt); |
void SetCommonGLRUN(UInt_t absth, UInt_t abstt); |
179 |
void SetNOBOOT(Bool_t noboot); |
void SetNOBOOT(Bool_t noboot); |
180 |
|
void SetOlderThan(Long64_t oldthan); |
181 |
// |
// |
182 |
Bool_t SetID_RAW(); |
Bool_t SetID_RAW(); |
183 |
// |
// |
202 |
TString GetRootPath(){return((TString)gSystem->DirName(filerootname.Data())+'/');}; |
TString GetRootPath(){return((TString)gSystem->DirName(filerootname.Data())+'/');}; |
203 |
TString GetRootName(){return(filerootname);}; |
TString GetRootName(){return(filerootname);}; |
204 |
TString GetRawName(){return(filerawname);}; |
TString GetRawName(){return(filerawname);}; |
205 |
|
|
206 |
|
const char* GetCleanTime(){return clean_time->AsSQLString();}; |
207 |
// |
// |
208 |
// Functions |
// Functions |
209 |
// |
// |
215 |
Int_t insertCALO_CALIB(); |
Int_t insertCALO_CALIB(); |
216 |
Int_t insertTRK_CALIB(); |
Int_t insertTRK_CALIB(); |
217 |
Int_t insertS4_CALIB(); |
Int_t insertS4_CALIB(); |
218 |
// |
Int_t CleanGL_RUN_FRAGMENTS(); |
219 |
void OpenFile(); |
Int_t ValidateRuns(); |
220 |
|
Int_t assignVALIDATION(UInt_t ,Bool_t ); |
221 |
|
// |
222 |
|
// void OpenFile(); |
223 |
|
void CheckValidate(Long64_t olderthan); |
224 |
|
void CheckConnection(); |
225 |
void CheckFile(); |
void CheckFile(); |
226 |
// |
// |
227 |
|
|
228 |
|
Bool_t InsertRoot(){return(INSERT_ROOT);}; |
229 |
|
Bool_t InsertRaw(){return(INSERT_RAW);}; |
230 |
|
Bool_t Validate(){return(VALIDATE);}; |
231 |
|
|
232 |
}; |
}; |
233 |
#endif /* PAMELA_DB_OPERATIONS_H */ |
#endif /* PAMELA_DB_OPERATIONS_H */ |