/[PAMELA software]/YodaProfiler/src/YodaProfiler.cpp
ViewVC logotype

Diff of /YodaProfiler/src/YodaProfiler.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by mocchiut, Wed Aug 30 11:18:13 2006 UTC revision 1.9 by mocchiut, Tue Sep 12 13:22:55 2006 UTC
# Line 14  using namespace std; Line 14  using namespace std;
14  //  //
15  void usage(){  void usage(){
16    printf("\nUsage:\n");    printf("\nUsage:\n");
17    printf("\n YodaProfiler [-v | --verbose] [-h | --help] [--version] -rawFile raw_filename -yodaFile yoda_filename \n");    printf("\n YodaProfiler [options] -rawFile raw_filename -yodaFile yoda_filename \n");
18    printf("\n            [-host host] [-user username] [-psw password] \n");    printf("\n -rawFile        full path to the raw file\n");
19      printf("\n -yodaFile       full path to the YODA file\n");
20      printf("\n Options can be: \n");
21    printf("\n --version       print informations about compilation and exit\n");    printf("\n --version       print informations about compilation and exit\n");
22    printf("\n -h | --help     print this help and exit \n");    printf("\n -h | --help     print this help and exit \n");
23    printf("\n -v | --verbose  be verbose [default: print nothing on STDOUT]\n");    printf("\n -v | --verbose  be verbose [default]\n");
24      printf("\n -s | --silent   print nothing on STDOUT\n");
25    printf("\n -g | --debug    be very verbose [default: no]\n");    printf("\n -g | --debug    be very verbose [default: no]\n");
   printf("\n -rawFile        full path to the raw file\n");  
   printf("\n -yodaFile       full path to the YODA file\n");  
26    printf("\n -boot number    CPU boot number [default = taken from VarDump]\n");    printf("\n -boot number    CPU boot number [default = taken from VarDump]\n");
27    printf("\n -tsync number   timesync (s) [default = taken from data]\n");    printf("\n -tsync number   timesync (s) [default = taken from data]\n");
28    printf("\n -obt0 number    obt at timesync (ms) [default = taken from data]\n");    printf("\n -obt0 number    obt at timesync (ms) [default = taken from data]\n");
29    printf("\n -host           name for the host [default = mysql://localhost/pamelaprod]\n");    printf("\n -clean number   number in seconds after which the fragment table\n");
30    printf("\n -user           username for the DB [default = anonymous] \n");    printf("\n                 can be cleaned and runs validated [default = -1 do not clean],\n");
31    printf("\n -psw            password for the DB [default = \"\"]\n");    printf("\n                 if 0 force cleaning immediatly, if negative do not clean\n");
32    printf("\nExamples: \n");    printf("\n -host           name for the host [default = $PAM_DBHOST or mysql://localhost/pamelaprod]\n");
33    printf("\n YodaProfiler -rawFile /path/to/raw/files/000_000_00000_cln2.pam -yodaFile /path/to/filesfromyoda/000_000_00000_cln2.root \n\n");    printf("\n -user           username for the DB [default = $PAM_DBUSER or \"anonymous\"] \n");
34      printf("\n -psw            password for the DB [default = $PAM_DBPSW or \"\"]\n");
35      printf("\n The order of input files and options does not matter. \n");
36      printf("\nExample: \n");
37      printf("\n YodaProfiler -yodaFile /path/to/raw/files/000_000_00000_cln2.pam -rawFile /path/to/filesfromyoda/000_000_00000_cln2.root -v \n\n");
38  };  };
39  //  //
40  int main(int numinp, char *inps[]){  int main(int numinp, char *inps[]){
# Line 41  int main(int numinp, char *inps[]){ Line 46  int main(int numinp, char *inps[]){
46    UInt_t boot = 0;    UInt_t boot = 0;
47    UInt_t tsync = 0;    UInt_t tsync = 0;
48    UInt_t obt0 = 0;    UInt_t obt0 = 0;
49      //  Long64_t olderthan = 864000LL;
50      Long64_t olderthan = -1LL;
51      
52      //
53      //
54      TString filerawname  = "";
55      TString filerootname = "";
56      //
57      TString host = "mysql://localhost/pamelaprod";
58      TString user = "anonymous";
59      TString password = "";
60      //
61      const char *pamdbhost = gSystem->Getenv("PAM_DBHOST");
62      const char *pamdbuser = gSystem->Getenv("PAM_DBUSER");
63      const char *pamdbpsw = gSystem->Getenv("PAM_DBPSW");
64      if ( !pamdbhost ) pamdbhost = "";
65      if ( !pamdbuser ) pamdbuser = "";
66      if ( !pamdbpsw ) pamdbpsw = "";
67      if ( strcmp(pamdbhost,"") ) host = pamdbhost;
68      if ( strcmp(pamdbuser,"") ) user = pamdbuser;
69      if ( strcmp(pamdbpsw,"") ) password = pamdbpsw;
70    //    //
   //  
   TString filerawname;  
   //  
   TString host;  
   TString user;  
   TString password;  
   //  
   TString filerootname;  
71    //        //    
72    Bool_t beverbose = false;    Bool_t beverbose = true;
73    Bool_t debug = false;    Bool_t debug = false;
74    Int_t i = 0;    Int_t i = 0;
75    //    //
# Line 62  int main(int numinp, char *inps[]){ Line 80  int main(int numinp, char *inps[]){
80          exit(0);          exit(0);
81        };        };
82        if ( !strcmp(inps[i],"-h") || !strcmp(inps[i],"--help") ){        if ( !strcmp(inps[i],"-h") || !strcmp(inps[i],"--help") ){
83    
84          usage();          usage();
85          exit(0);          exit(0);
86        };        };
# Line 91  int main(int numinp, char *inps[]){ Line 110  int main(int numinp, char *inps[]){
110            usage();            usage();
111            exit(1);            exit(1);
112          };          };
113          tsync = atoi(inps[i+1]);                  tsync = (UInt_t)atoll(inps[i+1]);      
114        };        };
115        if ( !strcmp(inps[i],"-obt0") ) {        if ( !strcmp(inps[i],"-obt0") ) {
116          if ( numinp-1 < i+1 ){          if ( numinp-1 < i+1 ){
117            usage();            usage();
118            exit(1);            exit(1);
119          };          };
120          obt0 = atoi(inps[i+1]);          obt0 = (UInt_t)atoll(inps[i+1]);        
121          };
122          if ( !strcmp(inps[i],"-clean") ) {
123            if ( numinp-1 < i+1 ){
124              usage();
125              exit(1);
126            };
127            olderthan = (Long64_t)atoll(inps[i+1]);
128        };        };
129        if ( !strcmp(inps[i],"-host") ) {        if ( !strcmp(inps[i],"-host") ) {
130          if ( numinp-1 < i+1 ){          if ( numinp-1 < i+1 ){
# Line 124  int main(int numinp, char *inps[]){ Line 150  int main(int numinp, char *inps[]){
150        //        //
151        if ( !strcmp(inps[i],"-v") || !strcmp(inps[i],"--verbose") ) beverbose = true;        if ( !strcmp(inps[i],"-v") || !strcmp(inps[i],"--verbose") ) beverbose = true;
152        //        //
153          if ( !strcmp(inps[i],"-s") || !strcmp(inps[i],"--silent") ) beverbose = false;
154          //
155        if ( !strcmp(inps[i],"-g") || !strcmp(inps[i],"--debug") ) debug = true;        if ( !strcmp(inps[i],"-g") || !strcmp(inps[i],"--debug") ) debug = true;
156        //        //
157        i++;        i++;
# Line 155  int main(int numinp, char *inps[]){ Line 183  int main(int numinp, char *inps[]){
183    UInt_t WAR[10];    UInt_t WAR[10];
184    memset(WAR, 0, 10*sizeof(UInt_t));    memset(WAR, 0, 10*sizeof(UInt_t));
185    //    //
186    printf("\n Welcome to the PAMELA SuperYodaProfiler, version %s \n\n",version);    printf("\n Welcome to the PAMELA YodaProfiler, version %s \n\n",version);
187    try{    try{
188      //      //
189      //-------------------------------------------------------------------------------------------      //-------------------------------------------------------------------------------------------
190      // Create pamDB object and open SQL connection      // Create pamDB object and open SQL connection
191      //-------------------------------------------------------------------------------------------      //-------------------------------------------------------------------------------------------
192      if ( beverbose ) printf(" 1 => Create pamDB object and open SQL connection \n");      if ( beverbose ) printf(" 1 => Initialize and open SQL connection \n");
193      pamDB = new PamelaDBOperations(host,user,password,filerawname,filerootname,boot,tsync,obt0,debug);      pamDB = new PamelaDBOperations(host,user,password,filerawname,filerootname,boot,tsync,obt0,debug);
194      pamDB->CheckFile();      pamDB->CheckConnection();
195      //-------------------------------------------------------------------------------------------      //-------------------------------------------------------------------------------------------
196      //      //
197      //-------------------------------------------------------------------------------------------  
198      //Insert a Raw file in GL_RAW      if(pamDB->InsertRaw()){
199      //-------------------------------------------------------------------------------------------        //-------------------------------------------------------------------------------------------
200      if ( beverbose ) printf(" 2 => Insert a RAW file in GL_RAW \n");        //Insert a Raw file in GL_RAW
201      WAR[0] = pamDB->insertPamelaRawFile();        //-------------------------------------------------------------------------------------------
202      //-------------------------------------------------------------------------------------------        if ( beverbose ) printf(" 2 => Insert a RAW file in GL_RAW \n");
203      //-------------------------------------------------------------------------------------------          WAR[0] = pamDB->insertPamelaRawFile();
204      //Update a single GL_RAW record with its BOOT_NUMBER        //-------------------------------------------------------------------------------------------
205      //-------------------------------------------------------------------------------------------      };
206      if ( beverbose ) printf(" 3 => Update a single GL_RAW record with its BOOT_NUMBER \n");  
207      WAR[3] = pamDB->assignBOOT_NUMBER();      if(pamDB->InsertRoot()){
208      //    if ( WAR[3] ) pamDB->SetNOBOOT(true);            
209      if ( WAR[3] && WAR[3] != 1 ) throw -9;        if(!pamDB->InsertRaw())printf("=> RAW file not inserted --- the DB might not ( yet ) be filled correctly \n");
210      //-------------------------------------------------------------------------------------------        pamDB->CheckFile();
211      //        //-------------------------------------------------------------------------------------------  
212      //-------------------------------------------------------------------------------------------        //Update a single GL_RAW record with its BOOT_NUMBER
213      //Insert an entry in GL_TIMESYNC        //-------------------------------------------------------------------------------------------
214      //-------------------------------------------------------------------------------------------        if ( beverbose ) printf(" 3 => Update a single GL_RAW record with its BOOT_NUMBER \n");
215      if ( beverbose ) printf(" 4 => Insert an entry in GL_TIMESYNC \n");        WAR[3] = pamDB->assignBOOT_NUMBER();
216      WAR[1] = pamDB->insertPamelaGL_TIMESYNC();        //    if ( WAR[3] ) pamDB->SetNOBOOT(true);
217      //-------------------------------------------------------------------------------------------        if ( WAR[3] && WAR[3] != 1 ) throw -9;
218          //-------------------------------------------------------------------------------------------
219          //
220          //-------------------------------------------------------------------------------------------
221          //Insert an entry in GL_TIMESYNC
222          //-------------------------------------------------------------------------------------------
223          if ( beverbose ) printf(" 4 => Insert an entry in GL_TIMESYNC \n");
224          WAR[1] = pamDB->insertPamelaGL_TIMESYNC();
225          //-------------------------------------------------------------------------------------------
226          //
227          //-------------------------------------------------------------------------------------------
228          //Insert unpack ROOT file in GL_ROOT  
229          //-------------------------------------------------------------------------------------------
230          if ( beverbose ) printf(" 5 => Insert unpack ROOT file in GL_ROOT \n");
231          WAR[2] = pamDB->insertPamelaRootFile();
232          //-------------------------------------------------------------------------------------------
233          //
234          //-------------------------------------------------------------------------------------------      
235          //Insert in GL_RUN runs information records relative to a single unpack
236          //-------------------------------------------------------------------------------------------
237          if ( beverbose ) printf(" 6 => Scan physics and store runs in the GL_RUN table\n");
238          WAR[4] = pamDB->insertPamelaRUN();
239          //-------------------------------------------------------------------------------------------    
240            
241          //-------------------------------------------------------------------------------------------
242          //Insert in GL_CALO_CALIB calibration information records relative to a single unpack
243          //-------------------------------------------------------------------------------------------
244          if ( beverbose ) printf(" 7 => Insert calorimeter calibrations in the GL_CALO_CALIB table\n");
245          WAR[5] = pamDB->insertCALO_CALIB();
246          //-------------------------------------------------------------------------------------------    
247            
248          //-------------------------------------------------------------------------------------------
249          //Insert in GL_TRK_CALIB calibration information records relative to a single unpack
250          //-------------------------------------------------------------------------------------------
251          if ( beverbose ) printf(" 8 => Insert tracker calibrations in the GL_TRK_CALIB table\n");
252          WAR[6] = pamDB->insertTRK_CALIB();
253          //-------------------------------------------------------------------------------------------    
254            
255          //-------------------------------------------------------------------------------------------
256          //Insert in GL_S4_CALIB calibration information records relative to a single unpack
257          //-------------------------------------------------------------------------------------------
258          if ( beverbose ) printf(" 9 => Insert S4 calibrations in the GL_S4_CALIB table\n");
259          WAR[7] = pamDB->insertS4_CALIB();
260          //-------------------------------------------------------------------------------------------    
261        };
262      //      //
263      //-------------------------------------------------------------------------------------------      pamDB->CheckValidate(olderthan);
     //Insert unpack ROOT file in GL_ROOT    
     //-------------------------------------------------------------------------------------------  
     if ( beverbose ) printf(" 5 => Insert unpack ROOT file in GL_ROOT \n");  
     WAR[2] = pamDB->insertPamelaRootFile();  
     //-------------------------------------------------------------------------------------------  
264      //      //
265        if(pamDB->Validate()){  
266      //-------------------------------------------------------------------------------------------              //-------------------------------------------------------------------------------------------
267      //Insert in GL_RUN runs information records relative to a single unpack        //Clean the GL_RUN_FRAGMENTS
268      //-------------------------------------------------------------------------------------------        //-------------------------------------------------------------------------------------------
269      if ( beverbose ) printf(" 6 => Scan physics and store runs in the GL_RUN table\n");        if ( beverbose ) printf(" 10 => Clean the GL_RUN_FRAGMENTS table (earlier than %s) \n",pamDB->GetCleanTime() );
270      WAR[4] = pamDB->insertPamelaRUN();        WAR[8] = pamDB->CleanGL_RUN_FRAGMENTS();
271      //-------------------------------------------------------------------------------------------            //-------------------------------------------------------------------------------------------    
272            
273      //-------------------------------------------------------------------------------------------        //-------------------------------------------------------------------------------------------
274      //Insert in GL_CALO_CALIB calibration information records relative to a single unpack        //Validate runs
275      //-------------------------------------------------------------------------------------------        //-------------------------------------------------------------------------------------------
276      if ( beverbose ) printf(" 7 => Insert calorimeter calibrations in the GL_CALO_CALIB table\n");        if ( beverbose ) printf(" 11 => Validate runs (earlier than %s)\n",pamDB->GetCleanTime());
277      WAR[5] = pamDB->insertCALO_CALIB();        WAR[9] = pamDB->ValidateRuns();
278      //-------------------------------------------------------------------------------------------            //-------------------------------------------------------------------------------------------    
279        };
280      //-------------------------------------------------------------------------------------------          
     //Insert in GL_TRK_CALIB calibration information records relative to a single unpack  
     //-------------------------------------------------------------------------------------------  
     if ( beverbose ) printf(" 8 => Insert tracker calibrations in the GL_TRK_CALIB table\n");  
     WAR[6] = pamDB->insertTRK_CALIB();  
     //-------------------------------------------------------------------------------------------      
   
     //-------------------------------------------------------------------------------------------  
     //Insert in GL_S4_CALIB calibration information records relative to a single unpack  
     //-------------------------------------------------------------------------------------------  
     if ( beverbose ) printf(" 9 => Insert S4 calibrations in the GL_S4_CALIB table\n");  
     WAR[7] = pamDB->insertS4_CALIB();  
     //-------------------------------------------------------------------------------------------      
   
281    } catch (Int_t exc) {    } catch (Int_t exc) {
282      signal = exc;      signal = exc;
283      switch(exc){      switch(exc){
# Line 250  int main(int numinp, char *inps[]){ Line 304  int main(int numinp, char *inps[]){
304      case -22: message += " No CalibTrk1 tree in Level0 file"; break;      case -22: message += " No CalibTrk1 tree in Level0 file"; break;
305      case -23: message += " No CalibTrk2 tree in Level0 file"; break;      case -23: message += " No CalibTrk2 tree in Level0 file"; break;
306      case -24: message += " No CalibS4 tree in Level0 file"; break;      case -24: message += " No CalibS4 tree in Level0 file"; break;
307      case -97: message += " Missing runheader not recognized by HandleRun method"; break;      case -25: message += " Cannot find the run just inserted"; break;
308      case -99: message += " THIS CASE HAS NOT YET BEEN IMPLEMENTED"; break;      case -26: message += " Raw file not found looking for VarDump"; break;
309      default: message += " Unidentified error"; break;      default: message += " Unidentified error"; break;
310      };      };
311      printf("\n");      printf("\n");
# Line 271  int main(int numinp, char *inps[]){ Line 325  int main(int numinp, char *inps[]){
325          for (UInt_t bit=0; bit<32; bit++){          for (UInt_t bit=0; bit<32; bit++){
326            if ( WAR[j] & (1 << bit) ){            if ( WAR[j] & (1 << bit) ){
327              if ( bit == 0 ) message += "=> RAW file already inserted\n";              if ( bit == 0 ) message += "=> RAW file already inserted\n";
328              else message += "=> Unidentified warning\n";              else message += "=> Unidentified insertPamelaRaw warning\n";
329            };            };
330          };          };
331        };        };
# Line 280  int main(int numinp, char *inps[]){ Line 334  int main(int numinp, char *inps[]){
334          for (UInt_t bit=0; bit<32; bit++){          for (UInt_t bit=0; bit<32; bit++){
335            if ( WAR[j] & (1 << bit) ){            if ( WAR[j] & (1 << bit) ){
336              if ( bit == 0 ) message += "=> TIMESYNC already inserted\n";              if ( bit == 0 ) message += "=> TIMESYNC already inserted\n";
337              if ( bit == 1 ) message += "=> No mcmd timesync in the file\n";              else if ( bit == 1 ) message += "=> No mcmd timesync in the file\n";
338              else  message += "=> Unidentified warning\n";              else if ( bit == 2 ) message += "=> No runheaders in the file\n";
339                else if ( bit == 3 ) message += "=> No runtrailers in the file\n";
340                else if ( bit == 4 ) message += "=> No mcmd inclination in the file\n";
341                else  message += "=> Unidentified insertTimeSync warning\n";
342            };            };
343          };          };
344        };        };
# Line 290  int main(int numinp, char *inps[]){ Line 347  int main(int numinp, char *inps[]){
347          for (UInt_t bit=0; bit<32; bit++){          for (UInt_t bit=0; bit<32; bit++){
348            if ( WAR[j] & (1 << bit) ){            if ( WAR[j] & (1 << bit) ){
349              if ( bit == 0 ) message += "=> ROOT file already inserted\n";              if ( bit == 0 ) message += "=> ROOT file already inserted\n";
350              else message += "=> Unidentified warning\n";              else message += "=> Unidentified insertPamelaRoot warning\n";
351            };            };
352          };          };
353        };        };
# Line 298  int main(int numinp, char *inps[]){ Line 355  int main(int numinp, char *inps[]){
355        if ( j == 3 ){ // assignBOOTnumber warnings        if ( j == 3 ){ // assignBOOTnumber warnings
356          for (UInt_t bit=0; bit<32; bit++){          for (UInt_t bit=0; bit<32; bit++){
357            if ( WAR[j] & (1 << bit) ){            if ( WAR[j] & (1 << bit) ){
358              if ( bit == 0 ) message += "=> BOOT number already inserted\n";              if ( bit == 0 ) message += "=> BOOT number already inserted\n";//
359              if ( bit == 1 ) message += "=> VarDump event tree is empty, use the -boot option to override\n";              else if ( bit == 1 ) message += "=> VarDump event tree is empty, use the -boot option to override\n";//
360              if ( bit == 2 ) message += "=> No BOOT number in VarDump(!), use the -boot option to override\n";              else if ( bit == 2 ) message += "=> No BOOT number in VarDump(!), use the -boot option to override\n";//
361              if ( bit == 3 ) message += "=> Raw file not found looking for VarDump, use the -boot option to override\n";              else if ( bit == 4 ) message += "=> The file is not in the database looking for VarDump, use the -boot option to override\n";//
362              if ( bit == 4 ) message += "=> The file is not in the database looking for VarDump, use the -boot option to override\n";              else message += "=> Unidentified assignBOOTnumber warning\n";
             else message += "=> Unidentified warning\n";  
363            };            };
364          };          };
365        };        };
# Line 311  int main(int numinp, char *inps[]){ Line 367  int main(int numinp, char *inps[]){
367        if ( j == 4 ){ // insertPamelaRUN        if ( j == 4 ){ // insertPamelaRUN
368          for (UInt_t bit=0; bit<32; bit++){          for (UInt_t bit=0; bit<32; bit++){
369            if ( WAR[j] & (1 << bit) ){            if ( WAR[j] & (1 << bit) ){
370              if      ( bit == 0 ) message += "=> bah already inserted\n";              if      ( bit == 0 ) message += "=> Inconsistent PKT/OBT sequence\n";
371              else if ( bit == 1 ) message += "=> boh already inserted\n";              else if ( bit == 1 ) message += "=> No physics events in the file\n";
372              else  message += "=> Unidentified warning\n";              else if ( bit == 2 ) message += "=> Less than 2 physics events in the file\n";
373                else  message += "=> Unidentified insertPamelaRun warning\n";
374            };            };
375          };          };
376        };        };
# Line 321  int main(int numinp, char *inps[]){ Line 378  int main(int numinp, char *inps[]){
378        if ( j == 5 ){ // insertCALO_CALIB        if ( j == 5 ){ // insertCALO_CALIB
379          for (UInt_t bit=0; bit<32; bit++){          for (UInt_t bit=0; bit<32; bit++){
380            if ( WAR[j] & (1 << bit) ){            if ( WAR[j] & (1 << bit) ){
381              if      ( bit == 0 ) message += "=> bah already inserted\n";              if      ( bit == 0 ) message += "=> No calorimeter calibrations in the file\n";
382              else if ( bit == 1 ) message += "=> boh already inserted\n";              else  message += "=> Unidentified insertCaloCalib warning\n";
             else  message += "=> Unidentified warning\n";  
383            };            };
384          };          };
385        };        };
# Line 332  int main(int numinp, char *inps[]){ Line 388  int main(int numinp, char *inps[]){
388        if ( j == 6 ){ // insertTRACKER_CALIB        if ( j == 6 ){ // insertTRACKER_CALIB
389          for (UInt_t bit=0; bit<32; bit++){          for (UInt_t bit=0; bit<32; bit++){
390            if ( WAR[j] & (1 << bit) ){            if ( WAR[j] & (1 << bit) ){
391              if      ( bit == 0 ) message += "=> bah already inserted\n";              if      ( bit == 0 ) message += "=> No tracker calibrations in the file\n";
392              else if ( bit == 1 ) message += "=> boh already inserted\n";              else  message += "=> Unidentified insertTrkCalib warning\n";
             else  message += "=> Unidentified warning\n";  
393            };            };
394          };          };
395        };        };
# Line 343  int main(int numinp, char *inps[]){ Line 398  int main(int numinp, char *inps[]){
398        if ( j == 7 ){ // insertS4_CALIB        if ( j == 7 ){ // insertS4_CALIB
399          for (UInt_t bit=0; bit<32; bit++){          for (UInt_t bit=0; bit<32; bit++){
400            if ( WAR[j] & (1 << bit) ){            if ( WAR[j] & (1 << bit) ){
401              if      ( bit == 0 ) message += "=> bah already inserted\n";              if      ( bit == 0 ) message += "=> No s4 calibrations in the file\n";
402              else if ( bit == 1 ) message += "=> boh already inserted\n";              else  message += "=> Unidentified insertS4calib warning\n";
             else  message += "=> Unidentified warning\n";  
403            };            };
404          };          };
405        };        };
406        //        //
407          //
408          if ( j == 8 ){ // CleanGL_RUN_FRAGMENTS
409            for (UInt_t bit=0; bit<32; bit++){
410              if ( WAR[j] & (1 << bit) ){
411                if      ( bit == 0 ) message += "=> Skip the GL_RUN_FRAGMENTS table cleaning\n";
412                else  message += "=> Unidentified CleanGL_RUN_FRAGMENTS warning\n";
413              };
414            };
415          };
416          //
417          if ( j == 9 ){ // ValidateRuns
418            for (UInt_t bit=0; bit<32; bit++){
419              if ( WAR[j] & (1 << bit) ){
420                if      ( bit == 0 ) message += "=> Skip the run validation \n";
421                else  message += "=> Unidentified ValidateRuns warning\n";
422              };
423            };
424          };
425      };      };
426    };    };
427    //    //
# Line 363  int main(int numinp, char *inps[]){ Line 435  int main(int numinp, char *inps[]){
435    //---------------------------------------------------------------------------------------    //---------------------------------------------------------------------------------------
436    // Close and exit    // Close and exit
437    //---------------------------------------------------------------------------------------    //---------------------------------------------------------------------------------------
438      if ( beverbose ) printf(" 12 => Free objects and close SQL connection \n");
439    pamDB->Close();    pamDB->Close();
440    //    //
441    printf("\n");    printf("\n");

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.23