#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 144 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 31 of file cwb_fix_slag_missed.C.
| if | ( | simulation | ) |
Definition at line 40 of file cwb_fix_slag_missed.C.
| if | ( | twave | = =NULL | ) |
Definition at line 57 of file cwb_fix_slag_missed.C.
| if | ( | flive | = =NULL | ) |
Definition at line 70 of file cwb_fix_slag_missed.C.
| if | ( | tlive | = =NULL | ) |
Definition at line 72 of file cwb_fix_slag_missed.C.
| if | ( | liv_slag && | net_slag | ) |
Definition at line 82 of file cwb_fix_slag_missed.C.
| if | ( | !liv_slag && | net_slag | ) |
Definition at line 90 of file cwb_fix_slag_missed.C.
| if | ( | liv_slag &&! | net_slag | ) |
Definition at line 97 of file cwb_fix_slag_missed.C.
| if | ( | ! | liv_slag | ) |
Definition at line 107 of file cwb_fix_slag_missed.C.
| if | ( | estat | = =0 | ) |
Definition at line 204 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 63 of file cwb_fix_slag_missed.C.
| tlive_fix Write | ( | ) |
| TBranch* branch |
Definition at line 60 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 134 of file cwb_fix_slag_missed.C.
| TString cwb_merge_label |
Definition at line 30 of file cwb_fix_slag_missed.C.
| else |
Definition at line 33 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 56 of file cwb_fix_slag_missed.C.
| bool fixit =false |
Definition at line 106 of file cwb_fix_slag_missed.C.
| TFile* flive = TFile::Open(liv_file_name) |
Definition at line 69 of file cwb_fix_slag_missed.C.
| char ilstfname[1024] |
Definition at line 194 of file cwb_fix_slag_missed.C.
| vector<int> jobList |
Definition at line 193 of file cwb_fix_slag_missed.C.
| char liv_file_name[256] |
Definition at line 38 of file cwb_fix_slag_missed.C.
| bool liv_slag =false |
Definition at line 76 of file cwb_fix_slag_missed.C.
| char net_file_name[256] |
Definition at line 37 of file cwb_fix_slag_missed.C.
| bool net_slag =false |
Definition at line 61 of file cwb_fix_slag_missed.C.
Definition at line 143 of file cwb_fix_slag_missed.C.
| int ntrg_wave = twave->GetEntries() |
Definition at line 177 of file cwb_fix_slag_missed.C.
| TString olstfname = fix_net_file_name |
Definition at line 196 of file cwb_fix_slag_missed.C.
| TTree* tlive = (TTree *) gROOT->FindObject("liveTime") |
Definition at line 71 of file cwb_fix_slag_missed.C.
| Int_t xrun |
Definition at line 141 of file cwb_fix_slag_missed.C.
| float xslag[6] |
Definition at line 137 of file cwb_fix_slag_missed.C.