14 |
#include <RunInfo.h> |
#include <RunInfo.h> |
15 |
using namespace std; |
using namespace std; |
16 |
// |
// |
17 |
int RunInfoCore(ULong64_t run, TFile *processFile, TSQLServer *dbc, Int_t runargc, char *runargv[]){ |
int RunInfoCore(UInt_t run, TFile *processFile, TSQLServer *dbc, TString DVV, Int_t runargc, char *runargv[]){ |
18 |
Int_t i = 0; |
Int_t i = 0; |
19 |
Int_t sgnl = 0; |
Int_t sgnl = 0; |
20 |
// |
// |
47 |
processFile->cd(); |
processFile->cd(); |
48 |
if ( processFile ) processFile->Write("Run"); |
if ( processFile ) processFile->Write("Run"); |
49 |
runinfo->Clear(); |
runinfo->Clear(); |
50 |
|
// |
51 |
|
delete runinfo; |
52 |
|
// |
53 |
|
runinfo = new ItoRunInfo(processFile); |
54 |
|
sgnl = runinfo->Update(run,"DV",DVV); |
55 |
|
gSystem->Unlink(temprname.str().c_str()); |
56 |
|
runinfo->Close(); |
57 |
|
processFile->cd(); |
58 |
|
if ( processFile ) processFile->Write("Run"); |
59 |
|
runinfo->Clear(); |
60 |
|
delete runinfo; |
61 |
|
// |
62 |
|
// |
63 |
|
// |
64 |
if ( sgnl < 0 ) throw sgnl; |
if ( sgnl < 0 ) throw sgnl; |
65 |
return(sgnl); |
return(sgnl); |
66 |
} |
} |