ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitHzz4l/Selection/src/applySelection.cc
(Generate patch)

Comparing UserCode/MitHzz4l/Selection/src/applySelection.cc (file contents):
Revision 1.73 by anlevin, Tue Feb 5 09:53:47 2013 UTC vs.
Revision 1.75 by anlevin, Thu Feb 14 14:04:19 2013 UTC

# Line 190 | Line 190 | int main(int argc, char** argv)
190      ifstream f(ctrl.inputfiles.c_str());
191      while (f >> fname) {
192        if( !(strncmp( fname.c_str(), "#", 1 ) ) ) continue; // skip commented lines
193 <      if(fname.find("/store/") != string::npos) fname = "root://eoscms//"+fname;
193 >      //if(fname.find("/store/") != string::npos) fname = "root://eoscms//"+fname;
194        cout << "adding inputfile : " << fname.c_str() << endl;
195        entrymap[string(fname.c_str())] = unskimmedEntries(fname.c_str());
196        cerr << "unskimmed entries: " << entrymap[string(fname.c_str())] << endl;
# Line 200 | Line 200 | int main(int argc, char** argv)
200        runchain->AddFile(fname.c_str());
201      }
202    } else {
203 <    if(ctrl.inputfile.find("/store/") != string::npos) ctrl.inputfile = "root://eoscms//"+ctrl.inputfile;
203 >    //if(ctrl.inputfile.find("/store/") != string::npos) ctrl.inputfile = "root://eoscms//"+ctrl.inputfile;
204      cout << "adding inputfile : " << ctrl.inputfile.c_str() << endl;
205      unsigned unsk_ents = unskimmedEntries(ctrl.inputfile.c_str());
206      entrymap[string(ctrl.inputfile.c_str())] = unsk_ents;
# Line 280 | Line 280 | int main(int argc, char** argv)
280    initMassErrors();
281    ti.dump();
282  
283 <  TFile tmp_file("tmp_file.root");
283 >  {
284 >    TFile tmp_file("tmp_file.root","RECREATE");
285 >  }
286  
287    if(ctrl.do_eregression) {
288      string regPath("EGamma/EGammaAnalysisTools/data/eleEnergyRegWeights_V1.root");
# Line 289 | Line 291 | int main(int argc, char** argv)
291      electron_momentum_correction.initialize_regression(regPath);
292    }
293  
292  if(ctrl.do_escale) {
293    if(ctrl.mc) {
294      if(ctrl.era == 2011) ctrl.smearing_scaling_dataset = "Fall11";
295      else                 ctrl.smearing_scaling_dataset = "Summer12_DR53X_HCP2012";
296    } else {
297      if(ctrl.era == 2011) ctrl.smearing_scaling_dataset = "Jan16ReReco";
298      else                 ctrl.smearing_scaling_dataset = "Moriond2013";
299    }
300  }
294    if(ctrl.correct_muon_momentum) {
295      muCorr = new MuCorr;
296      muCorr->corr2011 = new rochcor;
# Line 523 | Line 516 | int main(int argc, char** argv)
516           << setw(9) << thisCount["4e"] << setw(9) << thisCount["4m"] << setw(9) << thisCount["2e2m"] << ")" << endl;
517    }
518  
526  tmp_file.Close();
527
519   }
520   //----------------------------------------------------------------------------------------
521   void addDummyZ2Lepotons(EventData &ret4l)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines