64 |
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"); |
65 |
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"); |
66 |
}; |
}; |
67 |
|
|
68 |
|
Bool_t CheckDBC(TSQLServer *dbc, TString host, TString user, TString psw){ |
69 |
|
// |
70 |
|
Bool_t connect = dbc->IsConnected(); |
71 |
|
// |
72 |
|
if( !dbc || !connect ){ |
73 |
|
dbc = TSQLServer::Connect(host.Data(),user.Data(),psw.Data()); |
74 |
|
}; |
75 |
|
// |
76 |
|
connect = dbc->IsConnected(); |
77 |
|
// |
78 |
|
return(connect); |
79 |
|
// |
80 |
|
}; |
81 |
// |
// |
82 |
// Here the main |
// Here the main |
83 |
// |
// |
693 |
// |
// |
694 |
timer.Start(kTRUE); |
timer.Start(kTRUE); |
695 |
if ( TRK ) { |
if ( TRK ) { |
696 |
|
CheckDBC(dbc,host,user,psw); |
697 |
printf(" TrackerLevel2 called\n"); |
printf(" TrackerLevel2 called\n"); |
698 |
if ( debug ) printf(" >>>>>>>>>>>>>>>>>>>| start TrkCore STDOUT |<<<<<<<<<<<<<<<<<<<\n"); |
if ( debug ) printf(" >>>>>>>>>>>>>>>>>>>| start TrkCore STDOUT |<<<<<<<<<<<<<<<<<<<\n"); |
699 |
TRKSGN = TrkCore(run,processFile,dbc,trkargc,trkargv); |
TRKSGN = TrkCore(run,processFile,dbc,trkargc,trkargv); |
706 |
// |
// |
707 |
timer.Start(kTRUE); |
timer.Start(kTRUE); |
708 |
if ( TOF ) { |
if ( TOF ) { |
709 |
|
CheckDBC(dbc,host,user,psw); |
710 |
printf(" ToFLevel2 called\n"); |
printf(" ToFLevel2 called\n"); |
711 |
if ( debug ) printf(" >>>>>>>>>>>>>>>>>>>| start ToFCore STDOUT |<<<<<<<<<<<<<<<<<<<\n"); |
if ( debug ) printf(" >>>>>>>>>>>>>>>>>>>| start ToFCore STDOUT |<<<<<<<<<<<<<<<<<<<\n"); |
712 |
TOFSGN = ToFCore(run,processFile,dbc,tofargc,tofargv); |
TOFSGN = ToFCore(run,processFile,dbc,tofargc,tofargv); |
718 |
// |
// |
719 |
timer.Start(kTRUE); |
timer.Start(kTRUE); |
720 |
if ( CAL ) { |
if ( CAL ) { |
721 |
|
CheckDBC(dbc,host,user,psw); |
722 |
printf(" CalorimeterLevel2 called\n"); |
printf(" CalorimeterLevel2 called\n"); |
723 |
if ( debug ) printf(" >>>>>>>>>>>>>>>>>>>| start CaloCore STDOUT |<<<<<<<<<<<<<<<<<<<\n"); |
if ( debug ) printf(" >>>>>>>>>>>>>>>>>>>| start CaloCore STDOUT |<<<<<<<<<<<<<<<<<<<\n"); |
724 |
CALSGN = CaloCore(run,processFile,dbc,calargc,calargv); |
CALSGN = CaloCore(run,processFile,dbc,calargc,calargv); |
730 |
// |
// |
731 |
timer.Start(kTRUE); |
timer.Start(kTRUE); |
732 |
if ( TRG ) { |
if ( TRG ) { |
733 |
|
CheckDBC(dbc,host,user,psw); |
734 |
printf(" TriggerLevel2 called\n"); |
printf(" TriggerLevel2 called\n"); |
735 |
if ( debug ) printf(" >>>>>>>>>>>>>>>>>>>| start TrigCore STDOUT |<<<<<<<<<<<<<<<<<<<\n"); |
if ( debug ) printf(" >>>>>>>>>>>>>>>>>>>| start TrigCore STDOUT |<<<<<<<<<<<<<<<<<<<\n"); |
736 |
TRGSGN = TrigCore(run,processFile,dbc,trgargc,trgargv); |
TRGSGN = TrigCore(run,processFile,dbc,trgargc,trgargv); |
742 |
// |
// |
743 |
timer.Start(kTRUE); |
timer.Start(kTRUE); |
744 |
if ( AC ) { |
if ( AC ) { |
745 |
|
CheckDBC(dbc,host,user,psw); |
746 |
printf(" AnticounterLevel2 called\n"); |
printf(" AnticounterLevel2 called\n"); |
747 |
if ( debug ) printf(" >>>>>>>>>>>>>>>>>>>| start AcCore STDOUT |<<<<<<<<<<<<<<<<<<<\n"); |
if ( debug ) printf(" >>>>>>>>>>>>>>>>>>>| start AcCore STDOUT |<<<<<<<<<<<<<<<<<<<\n"); |
748 |
ACSGN = AcCore(run,processFile,dbc,acargc,acargv); |
ACSGN = AcCore(run,processFile,dbc,acargc,acargv); |
754 |
// |
// |
755 |
timer.Start(kTRUE); |
timer.Start(kTRUE); |
756 |
if ( S4 ) { |
if ( S4 ) { |
757 |
|
CheckDBC(dbc,host,user,psw); |
758 |
printf(" S4Level2 called\n"); |
printf(" S4Level2 called\n"); |
759 |
if ( debug ) printf(" >>>>>>>>>>>>>>>>>>>| start S4Core STDOUT |<<<<<<<<<<<<<<<<<<<\n"); |
if ( debug ) printf(" >>>>>>>>>>>>>>>>>>>| start S4Core STDOUT |<<<<<<<<<<<<<<<<<<<\n"); |
760 |
S4SGN = S4Core(run,processFile,dbc,s4argc,s4argv); |
S4SGN = S4Core(run,processFile,dbc,s4argc,s4argv); |
766 |
// |
// |
767 |
timer.Start(kTRUE); |
timer.Start(kTRUE); |
768 |
if ( ND ) { |
if ( ND ) { |
769 |
|
CheckDBC(dbc,host,user,psw); |
770 |
printf(" NDLevel2 called\n"); |
printf(" NDLevel2 called\n"); |
771 |
if ( debug ) printf(" >>>>>>>>>>>>>>>>>>>| start NDCore STDOUT |<<<<<<<<<<<<<<<<<<<\n"); |
if ( debug ) printf(" >>>>>>>>>>>>>>>>>>>| start NDCore STDOUT |<<<<<<<<<<<<<<<<<<<\n"); |
772 |
NDSGN = NDCore(run,processFile,dbc,ndargc,ndargv); |
NDSGN = NDCore(run,processFile,dbc,ndargc,ndargv); |
778 |
// |
// |
779 |
timer.Start(kTRUE); |
timer.Start(kTRUE); |
780 |
if ( ORB ) { |
if ( ORB ) { |
781 |
|
CheckDBC(dbc,host,user,psw); |
782 |
printf(" OrbitalInfo called\n"); |
printf(" OrbitalInfo called\n"); |
783 |
if ( debug ) printf(" >>>>>>>>>>>>>>>>>>>| start OrbitalInfoCore STDOUT |<<<<<<<<<<<<<<<<<<<\n"); |
if ( debug ) printf(" >>>>>>>>>>>>>>>>>>>| start OrbitalInfoCore STDOUT |<<<<<<<<<<<<<<<<<<<\n"); |
784 |
ORBSGN = OrbitalInfoCore(run,processFile,dbc,orbargc,orbargv); |
ORBSGN = OrbitalInfoCore(run,processFile,dbc,orbargc,orbargv); |