3 TFile
file(
"MetricsTree_All.root",
"read");
4 TTree *
tree = (TTree*)file.Get(
"mytree");
9 tree->SetBranchAddress(
"run",&run);
10 tree->SetBranchAddress(
"subrun",&subrun);
11 tree->SetBranchAddress(
"ngooddb",&ngooddb);
12 tree->SetBranchAddress(
"ngoodcdb",&ngoodcdb);
13 tree->SetBranchAddress(
"pass_all",&pass_all);
14 tree->SetBranchAddress(
"pass_hits",&pass_hits);
15 tree->SetBranchAddress(
"pass_db",&pass_db);
16 tree->SetBranchAddress(
"pass_time",&pass_time);
17 tree->SetBranchAddress(
"pass_slc",&pass_slc);
18 tree->SetBranchAddress(
"pass_trk",&pass_trk);
19 tree->SetBranchAddress(
"pass_runlen",&pass_runlen);
20 tree->SetBranchAddress(
"pass_empty",&pass_empty);
23 procfile.open(
"FD_BRL_v0.txt");
36 cleanruns.insert((100*badrun)+badsubrun);
37 cout <<
"Manually added Run/Subrun: " << badrun <<
"/"<< badsubrun<<
endl;
42 if(
i%(nentries/10)==0)
cout <<
int(100.0*
i/nentries+0.5) <<
"% done" <<
endl;
43 int removedreason = 0;
46 if(cleanruns.count((run*100)+subrun)){
48 rowstr =
TString::Format(
"%d %d %d %d", run, subrun, removedreason, ngooddb);
49 procfile << rowstr.Data() <<
endl;
50 alreadyused.insert((run*100)+subrun);
55 rowstr =
TString::Format(
"%d %d %d %d", run, subrun, removedreason, ngooddb);
56 procfile << rowstr.Data() <<
endl;
58 if(!pass_db || ngoodcdb < 4){
60 rowstr =
TString::Format(
"%d %d %d %d", run, subrun, removedreason, ngooddb);
61 procfile << rowstr.Data() <<
endl;
65 rowstr =
TString::Format(
"%d %d %d %d", run, subrun, removedreason, ngooddb);
66 procfile << rowstr.Data() <<
endl;
70 rowstr =
TString::Format(
"%d %d %d %d", run, subrun, removedreason, ngooddb);
71 procfile << rowstr.Data() <<
endl;
75 rowstr =
TString::Format(
"%d %d %d %d", run, subrun, removedreason, ngooddb);
76 procfile << rowstr.Data() <<
endl;
80 rowstr =
TString::Format(
"%d %d %d %d", run, subrun, removedreason, ngooddb);
81 procfile << rowstr.Data() <<
endl;
85 rowstr =
TString::Format(
"%d %d %d %d", run, subrun, removedreason, ngooddb);
86 procfile << rowstr.Data() <<
endl;
94 if(pass_all && ngooddb < 14 && ngoodcdb > 3){
96 rowstr =
TString::Format(
"%d %d %d %d", run, subrun, removedreason, ngooddb);
97 procfile << rowstr.Data() <<
endl;
101 set<int>::iterator
it;
102 for(it = cleanruns.begin(); it != cleanruns.end(); it++){
104 if(!alreadyused.count(runsubrun)){
106 int temprun = runsubrun/100;
107 int tempsubrun = runsubrun%100;
109 procfile << rowstr.Data() <<
endl;
ifstream fileListItr("ManBadSubruns.txt")
void ProduceBadRunsByFailureMode
void Format(TGraph *gr, int lcol, int lsty, int lwid, int mcol, int msty, double msiz)