Changeset 481 in svn
- Timestamp:
- Jul 14, 2009, 12:54:32 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Resolutions_ATLAS.cpp
r469 r481 237 237 TFile *outputFile = TFile::Open(outputfilename.c_str(), "RECREATE");// Creates the file, but should be closed just after 238 238 outputFile->Close(); 239 239 240 240 // 1.3 Reads the trees in input file 241 241 TChain chainGEN("GEN"); 242 chainGEN.Add(inputfilename.c_str()); 242 //chainGEN.Add(inputfilename.c_str()); 243 //chainGEN.Add("all_dijets_atlas_kt.root"); 244 //chainGEN.Add("all_dijets_atlas_kt_2.root"); 245 chainGEN.Add("all_dijets_atlas_jetclu_new.root"); 246 chainGEN.Add("all_dijets_atlas_jetclu_new_2.root"); 243 247 ExRootTreeReader *treeReaderGEN = new ExRootTreeReader(&chainGEN); 244 248 TChain chain("Analysis"); 245 chain.Add(inputfilename.c_str()); 249 //chain.Add(inputfilename.c_str()); 250 //chain.Add("all_dijets_atlas_kt.root"); 251 //chain.Add("all_dijets_atlas_kt_2.root"); 252 chain.Add("all_dijets_atlas_jetclu_new.root"); 253 chain.Add("all_dijets_atlas_jetclu_new_2.root"); 246 254 ExRootTreeReader *treeReader = new ExRootTreeReader(&chain); 247 255 const TClonesArray *branchJet = treeReader->UseBranch("Jet"); … … 299 307 cout <<"*********************************************************************"<< endl; 300 308 cout <<"** **"<< endl; 301 cout <<"** 309 cout <<"** ####### RESOLUTION STUDIES FOR ATLAS ######## **"<< endl; 302 310 cout <<"** **"<< endl; 303 311 cout <<"** ####### Start resolution processing ######## **"<< endl; … … 417 425 elementJet->dE = (JETreco.E()-JETgen.E())/JETgen.E() ; 418 426 elementJet->dE2 = pow( (JETreco.E()-JETgen.E())/JETgen.E() , 2.) ; 427 elementJet->Eta = JETgen.Eta(); 428 elementJet->dE_reco = (JETreco.E()-JETgen.E())/JETreco.E() ; 429 elementJet->dE2_reco = pow( (JETreco.E()-JETgen.E())/JETreco.E() , 2.) ; 419 430 } 420 431 } -
trunk/interface/TreeClasses.h
r459 r481 45 45 { 46 46 public: 47 float PT; // generator PT48 float SmearedPT; // recoPT / genPT47 float SmearedPT; 48 float PT; 49 49 float E; // generator E 50 50 float dE; // (recoE-genE)/genE 51 51 float dE2; // ( (recoE-genE)/ genE )^2 52 float Eta; // generator-level eta 53 float dE_reco; // (recoE-genE)/recoE 54 float dE2_reco; // ( (recoE-genE)/ recoE )^2 55 52 56 53 57 static TCompare *fgCompare; //!
Note:
See TracChangeset
for help on using the changeset viewer.