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 |
// |
// |
39 |
temprname << routdir; |
temprname << routdir; |
40 |
temprname << "/" << processFolder.Data(); |
temprname << "/" << processFolder.Data(); |
41 |
// |
// |
42 |
|
if ( !dbc->IsConnected() ) throw -807; |
43 |
runinfo = new ItoRunInfo(dbc,processFile,processFolder); |
runinfo = new ItoRunInfo(dbc,processFile,processFolder); |
44 |
sgnl = runinfo->Update(run,"NONE",""); |
sgnl = runinfo->Update(run,"NONE",""); |
45 |
gSystem->Unlink(temprname.str().c_str()); |
gSystem->Unlink(temprname.str().c_str()); |
48 |
processFile->cd(); |
processFile->cd(); |
49 |
if ( processFile ) processFile->Write("Run"); |
if ( processFile ) processFile->Write("Run"); |
50 |
runinfo->Clear(); |
runinfo->Clear(); |
51 |
|
// |
52 |
|
delete runinfo; |
53 |
|
// |
54 |
|
runinfo = new ItoRunInfo(processFile); |
55 |
|
sgnl = runinfo->Update(run,"DV",DVV); |
56 |
|
gSystem->Unlink(temprname.str().c_str()); |
57 |
|
runinfo->Close(); |
58 |
|
processFile->cd(); |
59 |
|
if ( processFile ) processFile->Write("Run"); |
60 |
|
runinfo->Clear(); |
61 |
|
delete runinfo; |
62 |
|
// |
63 |
|
// |
64 |
|
// |
65 |
if ( sgnl < 0 ) throw sgnl; |
if ( sgnl < 0 ) throw sgnl; |
66 |
return(sgnl); |
return(sgnl); |
67 |
} |
} |