| 67 |
printf(" Standard call:\n DarthVader -idRun 1085 \n"); |
printf(" Standard call:\n DarthVader -idRun 1085 \n"); |
| 68 |
printf(" Process only RunInfo and Tracker (be verbose for tracker):\n DarthVader -idRun 1085 -all +RUN +TRK [ --verbose ] \n"); |
printf(" Process only RunInfo and Tracker (be verbose for tracker):\n DarthVader -idRun 1085 -all +RUN +TRK [ --verbose ] \n"); |
| 69 |
printf(" Process all and be verbose for calorimeter:\n DarthVader -idRun 1085 +CAL [ --verbose ] \n\n"); |
printf(" Process all and be verbose for calorimeter:\n DarthVader -idRun 1085 +CAL [ --verbose ] \n\n"); |
| 70 |
|
printf(" Set Tracker to work with simulated data:\n DarthVader -idRun 1085 +TRK [ --simu ] \n\n"); |
| 71 |
}; |
}; |
| 72 |
|
|
| 73 |
// |
// |
| 548 |
// If not in verbose mode redirect to /dev/null the stdout and stderr |
// If not in verbose mode redirect to /dev/null the stdout and stderr |
| 549 |
// |
// |
| 550 |
if ( !beverbose ){ |
if ( !beverbose ){ |
| 551 |
nul = open("/dev/null", O_CREAT | O_RDWR,S_IREAD | S_IWRITE); |
nul = open("/dev/null", O_CREAT | O_RDWR,S_IRUSR | S_IWUSR); |
| 552 |
dup2(nul,1); |
dup2(nul,1); |
| 553 |
dup2(nul,2); |
dup2(nul,2); |
| 554 |
}; |
}; |
| 704 |
// |
// |
| 705 |
dbc->Close(); |
dbc->Close(); |
| 706 |
// |
// |
| 707 |
|
// |
| 708 |
|
timer.Start(kTRUE); |
| 709 |
|
if ( TRG ) { |
| 710 |
|
glt->ResetCounters(); |
| 711 |
|
printf(" TriggerLevel2 called\n"); |
| 712 |
|
if ( debug ) printf(" >>>>>>>>>>>>>>>>>>>| start TrigCore STDOUT |<<<<<<<<<<<<<<<<<<<\n"); |
| 713 |
|
TRGSGN = TrigCore(run,processFile,glt,trgargc,trgargv); |
| 714 |
|
if ( debug ) printf(" >>>>>>>>>>>>>>>>>>>| end TrigCore STDOUT |<<<<<<<<<<<<<<<<<<<\n"); |
| 715 |
|
NQTRG = glt->GetNqueries(); |
| 716 |
|
}; |
| 717 |
|
timer.Stop(); |
| 718 |
|
trgtime = timer.RealTime(); |
| 719 |
|
ctrgtime = timer.CpuTime(); |
| 720 |
|
// |
| 721 |
timer.Start(kTRUE); |
timer.Start(kTRUE); |
| 722 |
if ( TRK ) { |
if ( TRK ) { |
| 723 |
glt->ResetCounters(); |
glt->ResetCounters(); |
| 759 |
ccaltime = timer.CpuTime(); |
ccaltime = timer.CpuTime(); |
| 760 |
// |
// |
| 761 |
timer.Start(kTRUE); |
timer.Start(kTRUE); |
|
if ( TRG ) { |
|
|
glt->ResetCounters(); |
|
|
printf(" TriggerLevel2 called\n"); |
|
|
if ( debug ) printf(" >>>>>>>>>>>>>>>>>>>| start TrigCore STDOUT |<<<<<<<<<<<<<<<<<<<\n"); |
|
|
TRGSGN = TrigCore(run,processFile,glt,trgargc,trgargv); |
|
|
if ( debug ) printf(" >>>>>>>>>>>>>>>>>>>| end TrigCore STDOUT |<<<<<<<<<<<<<<<<<<<\n"); |
|
|
NQTRG = glt->GetNqueries(); |
|
|
}; |
|
|
timer.Stop(); |
|
|
trgtime = timer.RealTime(); |
|
|
ctrgtime = timer.CpuTime(); |
|
|
// |
|
|
timer.Start(kTRUE); |
|
| 762 |
if ( AC ) { |
if ( AC ) { |
| 763 |
glt->ResetCounters(); |
glt->ResetCounters(); |
| 764 |
printf(" AnticounterLevel2 called\n"); |
printf(" AnticounterLevel2 called\n"); |
| 841 |
case -33: message += " No AC in the acquisition"; break; |
case -33: message += " No AC in the acquisition"; break; |
| 842 |
case -34: message += " No S4 in the acquisition"; break; |
case -34: message += " No S4 in the acquisition"; break; |
| 843 |
case -35: message += " No ND in the acquisition"; break; |
case -35: message += " No ND in the acquisition"; break; |
| 844 |
|
case -36: message += " I/O error or missing entry"; break; |
| 845 |
|
|
| 846 |
// |
// |
| 847 |
case -50: message += " GLTABLES - No entries matching GL_RUN query"; break; |
case -50: message += " GLTABLES - No entries matching GL_RUN query"; break; |
| 848 |
case -51: message += " GLTABLES - No entries matching GL_ROOT query"; break; |
case -51: message += " GLTABLES - No entries matching GL_ROOT query"; break; |
| 900 |
case -301: message += " TOFLEVEL2 - Cannot open file for writing"; break; |
case -301: message += " TOFLEVEL2 - Cannot open file for writing"; break; |
| 901 |
case -302: message += " TOFLEVEL2 - No tracker tree in Level2 file"; break; |
case -302: message += " TOFLEVEL2 - No tracker tree in Level2 file"; break; |
| 902 |
case -303: message += " TOFLEVEL2 - No Tof branch in Level0 file"; break; |
case -303: message += " TOFLEVEL2 - No Tof branch in Level0 file"; break; |
| 903 |
|
case -304: message += " TOFLEVEL2 - No trigger tree in Level2 file"; break; |
| 904 |
case -313: message += " TOFLEVEL2 - No more tracker events in Level2 file"; break; |
case -313: message += " TOFLEVEL2 - No more tracker events in Level2 file"; break; |
| 905 |
case -314: message += " TOFLEVEL2 - DB connection problems"; break; |
case -314: message += " TOFLEVEL2 - DB connection problems"; break; |
| 906 |
|
case -315: message += " TOFLEVEL2 - Problems with dE/dx II order correction file parameter"; break; |
| 907 |
|
case -316: message += " TOFLEVEL2 - Problems with dE/dx II order correction, dividing by zero!"; break; |
| 908 |
|
case -317: message += " TOFLEVEL2 - Problems with dE/dx II order correction, outside time limits!"; break; |
| 909 |
|
case -318: message += " TOFLEVEL2 - Problems with dE/dx II order correction, too many time intervals!"; break; |
| 910 |
|
case -319: message += " TOFLEVEL2 - No more trigger events in Level2 file"; break; |
| 911 |
// |
// |
| 912 |
case -401: message += " TRIGGERLEVEL2 - Cannot open file for writing"; break; |
case -401: message += " TRIGGERLEVEL2 - Cannot open file for writing"; break; |
| 913 |
case -402: message += " TRIGGERLEVEL2 - No Trigger branch in Level0 tree"; break; |
case -402: message += " TRIGGERLEVEL2 - No Trigger branch in Level0 tree"; break; |
| 982 |
if ( processFile ){ |
if ( processFile ){ |
| 983 |
processFile->cd(); |
processFile->cd(); |
| 984 |
processFile->WriteStreamerInfo(); |
processFile->WriteStreamerInfo(); |
| 985 |
|
if ( debug ) processFile->ls(); |
| 986 |
processFile->Close(); |
processFile->Close(); |
| 987 |
}; |
}; |
| 988 |
// |
// |