#include <vector>
Functions | |
tlive_fix | Branch ("slag", xslag,"slag[6]/F") |
TB | checkFile (gSystem->Getenv("CWB_ROOTLOGON_FILE")) |
TB | checkFile (gSystem->Getenv("CWB_PARAMETERS_FILE")) |
TB | checkFile (gSystem->Getenv("CWB_UPARAMETERS_FILE")) |
flive_fix | Close () |
exit (0) | |
TString | fix_liv_file_name (liv_file_name) |
TString | fix_net_file_name (net_file_name) |
for (int i=0;i< ntrg_live;i++) | |
cout<< olstfname<< endl;int estat;Long_t id, size, flags, mt;estat=gSystem-> | GetPathInfo (TString(merge_dir)+"/"+ilstfname,&id,&size,&flags,&mt) |
if (gSystem->Getenv("CWB_MERGE_LABEL")==NULL) | |
if (simulation) | |
if (twave==NULL) | |
if (flive==NULL) | |
if (tlive==NULL) | |
if (liv_slag &&net_slag) | |
if (!liv_slag &&net_slag) | |
if (liv_slag &&!net_slag) | |
if (!liv_slag) | |
if (estat==0) | |
TIter | next (twave->GetListOfBranches()) |
TIter | next (tlive->GetListOfBranches()) |
olstfname | Remove (0, olstfname.Last('/')+1) |
fix_liv_file_name | ReplaceAll (".root",".FIX.root") |
olstfname | ReplaceAll ("wave_","merge_") |
olstfname | ReplaceAll (".root",".lst") |
next | Reset () |
tlive | SetBranchAddress ("run",&xrun) |
tlive_fix | SetMaxTreeSize (5000000000) |
sprintf (liv_file_name,"%s/live_%s.%s.root", merge_dir, data_label, cwb_merge_label.Data()) | |
sprintf (ilstfname,"merge_%s.%s.lst", data_label, cwb_merge_label.Data()) | |
while ((branch=(TBranch *) next())) | |
tlive_fix | Write () |
Variables | |
TBranch * | branch |
cout<< "Fixed live file : " << fix_liv_file_name.Data() << endl;TFile *flive_fix=new TFile(fix_liv_file_name,"RECREATE");if(flive_fix-> IsZombie()){cout << "CWB::Toolbox::setVeto - Error opening file " << fix_liv_file_name.Data() << endl;exit(1);}TTree *tlive_fix=(TTree *) tlive-> | CloneTree (0) |
TString | cwb_merge_label |
else | |
cout<< net_file_name<< endl;cout << liv_file_name<< endl;TB.checkFile(net_file_name);TB.checkFile(liv_file_name);}TFile *fwave=TFile::Open(net_file_name);if(fwave==NULL){cout << "Error opening file " << net_file_name<< endl;exit(1);}TTree *twave=(TTree *) gROOT-> | FindObject ("waveburst") |
bool | fixit =false |
TFile * | flive = TFile::Open(liv_file_name) |
char | ilstfname [1024] |
vector< int > | jobList |
char | liv_file_name [256] |
bool | liv_slag =false |
char | net_file_name [256] |
bool | net_slag =false |
int | ntrg_live = tlive->GetEntries() |
int | ntrg_wave = twave->GetEntries() |
TString | olstfname = fix_net_file_name |
TTree * | tlive = (TTree *) gROOT->FindObject("liveTime") |
Int_t | xrun |
float | xslag [6] |
TB checkFile | ( | gSystem-> | Getenv"CWB_ROOTLOGON_FILE" | ) |
TB checkFile | ( | gSystem-> | Getenv"CWB_PARAMETERS_FILE" | ) |
TB checkFile | ( | gSystem-> | Getenv"CWB_UPARAMETERS_FILE" | ) |
flive_fix Close | ( | ) |
exit | ( | 0 | ) |
TString fix_liv_file_name | ( | liv_file_name | ) |
TString fix_net_file_name | ( | net_file_name | ) |
for | ( | ) |
Definition at line 126 of file cwb_fix_slag_missed.C.
cout<< olstfname << endl; int estat; Long_t id,size,flags,mt; estat = gSystem-> GetPathInfo | ( | TString(merge_dir)+"/"+ | ilstfname, |
& | id, | ||
& | size, | ||
& | flags, | ||
& | mt | ||
) |
if | ( | gSystem-> | Getenv"CWB_MERGE_LABEL" = =NULL | ) |
Definition at line 13 of file cwb_fix_slag_missed.C.
if | ( | simulation | ) |
Definition at line 22 of file cwb_fix_slag_missed.C.
if | ( | twave | = =NULL | ) |
Definition at line 39 of file cwb_fix_slag_missed.C.
if | ( | flive | = =NULL | ) |
Definition at line 52 of file cwb_fix_slag_missed.C.
if | ( | tlive | = =NULL | ) |
Definition at line 54 of file cwb_fix_slag_missed.C.
if | ( | liv_slag && | net_slag | ) |
Definition at line 64 of file cwb_fix_slag_missed.C.
if | ( | !liv_slag && | net_slag | ) |
Definition at line 72 of file cwb_fix_slag_missed.C.
if | ( | liv_slag &&! | net_slag | ) |
Definition at line 79 of file cwb_fix_slag_missed.C.
if | ( | ! | liv_slag | ) |
Definition at line 89 of file cwb_fix_slag_missed.C.
if | ( | estat | = =0 | ) |
Definition at line 186 of file cwb_fix_slag_missed.C.
TIter next | ( | twave-> | GetListOfBranches() | ) |
TIter next | ( | tlive-> | GetListOfBranches() | ) |
olstfname Remove | ( | 0 | , |
olstfname.Last('/')+ | 1 | ||
) |
fix_liv_file_name ReplaceAll | ( | ".root" | , |
".FIX.root" | |||
) |
olstfname ReplaceAll | ( | "wave_" | , |
"merge_" | |||
) |
olstfname ReplaceAll | ( | ".root" | , |
".lst" | |||
) |
next Reset | ( | ) |
tlive SetBranchAddress | ( | "run" | , |
& | xrun | ||
) |
tlive_fix SetMaxTreeSize | ( | 5000000000 | ) |
sprintf | ( | liv_file_name | , |
"%s/live_%s.%s.root" | , | ||
merge_dir | , | ||
data_label | , | ||
cwb_merge_label. | Data() | ||
) |
sprintf | ( | ilstfname | , |
"merge_%s.%s.lst" | , | ||
data_label | , | ||
cwb_merge_label. | Data() | ||
) |
Definition at line 45 of file cwb_fix_slag_missed.C.
tlive_fix Write | ( | ) |
TBranch* branch |
Definition at line 42 of file cwb_fix_slag_missed.C.
cout<< "Fixed wave file : " << fix_net_file_name.Data() << endl; TFile* fwave_fix = new TFile(fix_net_file_name,"RECREATE"); if (fwave_fix->IsZombie()) { cout << "CWB::Toolbox::setVeto - Error opening file " << fix_net_file_name.Data() << endl; exit(1); } TTree *twave_fix = (TTree*)twave-> CloneTree(0) |
Definition at line 116 of file cwb_fix_slag_missed.C.
TString cwb_merge_label |
Definition at line 12 of file cwb_fix_slag_missed.C.
else |
Definition at line 15 of file cwb_fix_slag_missed.C.
cout<< net_file_name << endl; cout << liv_file_name << endl; TB.checkFile(net_file_name); TB.checkFile(liv_file_name); } TFile *fwave = TFile::Open(net_file_name); if(fwave==NULL) {cout << "Error opening file " << net_file_name << endl;exit(1);} TTree* twave = (TTree *) gROOT-> FindObject("waveburst") |
Definition at line 38 of file cwb_fix_slag_missed.C.
bool fixit =false |
Definition at line 88 of file cwb_fix_slag_missed.C.
TFile* flive = TFile::Open(liv_file_name) |
Definition at line 51 of file cwb_fix_slag_missed.C.
char ilstfname[1024] |
Definition at line 176 of file cwb_fix_slag_missed.C.
vector<int> jobList |
Definition at line 175 of file cwb_fix_slag_missed.C.
char liv_file_name[256] |
Definition at line 20 of file cwb_fix_slag_missed.C.
bool liv_slag =false |
Definition at line 58 of file cwb_fix_slag_missed.C.
char net_file_name[256] |
Definition at line 19 of file cwb_fix_slag_missed.C.
bool net_slag =false |
Definition at line 43 of file cwb_fix_slag_missed.C.
Definition at line 125 of file cwb_fix_slag_missed.C.
int ntrg_wave = twave->GetEntries() |
Definition at line 159 of file cwb_fix_slag_missed.C.
TString olstfname = fix_net_file_name |
Definition at line 178 of file cwb_fix_slag_missed.C.
TTree* tlive = (TTree *) gROOT->FindObject("liveTime") |
Definition at line 53 of file cwb_fix_slag_missed.C.
Int_t xrun |
Definition at line 123 of file cwb_fix_slag_missed.C.
float xslag[6] |
Definition at line 119 of file cwb_fix_slag_missed.C.