| 493 |
// |
// |
| 494 |
if ( debug ) printf("...connected! \n\n"); |
if ( debug ) printf("...connected! \n\n"); |
| 495 |
// |
// |
| 496 |
|
stringstream myquery; |
| 497 |
|
myquery.str(""); |
| 498 |
|
myquery << "SET time_zone='+0:00'"; |
| 499 |
|
dbc->Query(myquery.str().c_str()); |
| 500 |
|
// |
| 501 |
|
// |
| 502 |
// Create LEVEL2 filename and open it in update mode |
// Create LEVEL2 filename and open it in update mode |
| 503 |
// |
// |
| 504 |
if ( filename.IsNull() ){ |
if ( filename.IsNull() ){ |
| 671 |
} |
} |
| 672 |
// |
// |
| 673 |
switch(DVSGN){ // change message with printf!! |
switch(DVSGN){ // change message with printf!! |
| 674 |
case 16: message += " No tracker in the acquisition\n"; break; |
case 16: printf(" No tracker in the acquisition\n"); |
| 675 |
case 17: message += " No ToF in the acquisition\n"; break; |
case 17: printf(" No ToF in the acquisition\n"); |
| 676 |
case 18: message += " No calorimeter in the acquisition\n"; break; |
case 18: printf(" No calorimeter in the acquisition\n"); |
| 677 |
case 19: message += " No anticounters in the acquisition\n"; break; |
case 19: printf(" No anticounters in the acquisition\n"); |
| 678 |
case 20: message += " No S4 in the acquisition\n"; break; |
case 20: printf(" No S4 in the acquisition\n"); |
| 679 |
case 21: message += " No neutron detector in the acquisition\n"; break; |
case 21: printf(" No neutron detector in the acquisition\n"); |
| 680 |
}; |
}; |
| 681 |
// |
// |
| 682 |
// switch(RUNSGN){ |
// switch(RUNSGN){ |
| 683 |
// }; |
// }; |
| 684 |
switch(CALSGN){ |
switch(CALSGN){ |
| 685 |
case 100: printf("\n WARNING CALORIMETER - Data with no associated calibration\n"); break; |
case 100: printf("\n WARNING CALORIMETER - Data with no associated calibration\n"); |
| 686 |
case 101: printf("\n WARNING CALORIMETER - No tracks or good events in this run\n"); break; |
case 101: printf("\n WARNING CALORIMETER - No tracks or good events in this run\n"); |
| 687 |
}; |
}; |
| 688 |
// |
// |
| 689 |
// Close the DB connection |
// Close the DB connection |