Fork me on GitHub

Changeset 481 in svn


Ignore:
Timestamp:
Jul 14, 2009, 12:54:32 PM (15 years ago)
Author:
Xavier Rouby
Message:

new leaves in RESOLJET needed for atlas resolution

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Resolutions_ATLAS.cpp

    r469 r481  
    237237  TFile *outputFile = TFile::Open(outputfilename.c_str(), "RECREATE");// Creates the file, but should be closed just after
    238238  outputFile->Close();
    239  
     239
    240240  // 1.3 Reads the trees in  input file
    241241  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");
    243247  ExRootTreeReader *treeReaderGEN = new ExRootTreeReader(&chainGEN);
    244248  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");
    246254  ExRootTreeReader *treeReader = new ExRootTreeReader(&chain);
    247255  const TClonesArray *branchJet = treeReader->UseBranch("Jet");
     
    299307  cout <<"*********************************************************************"<< endl;
    300308  cout <<"**                                                                 **"<< endl;
    301   cout <<"**                                                                 **"<< endl;
     309  cout <<"**        ####### RESOLUTION STUDIES FOR ATLAS   ########          **"<< endl;
    302310  cout <<"**                                                                 **"<< endl;
    303311  cout <<"**        ####### Start resolution processing    ########          **"<< endl;
     
    417425            elementJet->dE = (JETreco.E()-JETgen.E())/JETgen.E() ;
    418426            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.) ;
    419430          }
    420431      }
  • trunk/interface/TreeClasses.h

    r459 r481  
    4545{
    4646public:
    47   float PT;         // generator  PT
    48   float SmearedPT;  // recoPT / genPT
     47  float SmearedPT;
     48  float PT;
    4949  float E;          // generator E
    5050  float dE;         // (recoE-genE)/genE
    5151  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
    5256
    5357  static TCompare *fgCompare; //!
Note: See TracChangeset for help on using the changeset viewer.