Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

caf_util::ReComputeMET Class Reference

#include <ReComputeMET.hpp>

Inheritance diagram for caf_util::ReComputeMET:

cafe::Processor List of all members.

Public Types

enum  JES {
  NotShifted,
  ShiftedPos,
  ShiftedNeg
}

Public Member Functions

 ReComputeMET (const char *name)
 ~ReComputeMET ()
bool processEvent (cafe::Event &event)
 Called for every event.

void inputFileOpened (TFile *file)
 Called for every new input file that was opened.

void inputFileClosing (TFile *file)
 Called for every input file that is about to be closed.

void setJES (const JES &jes)
 ClassDef (ReComputeMET, 0)

Private Attributes

std::string _fromBranch
std::string _toBranch
std::string _treeName
TTree * _tree
TBranch * _branch
TMBMet_result
cafe::Variables _vars
cafe::Variables _mcvars
std::string _muonBranch
std::string _electronBranch
std::string _jetBranch
bool _debug
bool _useDefaultMuon
bool _useDefaultElectron
bool _useDefaultJet
std::vector< std::string > _valgo
JES _jes

Detailed Description

ReComputeMET recomputes missing corrections. It doesn't change the overall sum of cell energies and recompute corrections only for a given jet algorithm type (ie. JCCA or JCCB). The output contains the standard corr, corr_mu, smear_corr and smear_corrmu corrections.

It recomputes the corrections for:

Required parameters:

Optional parameters:

If you only want to propagate the changes due to a new JES, you need only to specify: jetBranch and jetConeSize (the EM, CH and muon corrections can be copied from the input MET branch)

If you want to recompute the missing ET with a list of EM of jets where the good object definition is not the standard one, the EM-jet matching has to be done before calling for ReComputeMET.

Authors:
Frederic Deliot

Definition at line 61 of file ReComputeMET.hpp.


Member Enumeration Documentation

enum caf_util::ReComputeMET::JES
 

Enumeration values:
NotShifted 
ShiftedPos 
ShiftedNeg 

Definition at line 70 of file ReComputeMET.hpp.


Constructor & Destructor Documentation

caf_util::ReComputeMET::ReComputeMET const char *  name  ) 
 

Definition at line 15 of file ReComputeMET.cpp.

References _debug, _electronBranch, _fromBranch, _jes, _jetBranch, _muonBranch, _toBranch, _treeName, _useDefaultElectron, _useDefaultJet, _useDefaultMuon, _valgo, _vars, cafe::Processor::err(), cafe::Config::get(), cafe::Config::getVString(), cafe::Processor::name(), NotShifted, cafe::Processor::out(), ShiftedNeg, and ShiftedPos.

caf_util::ReComputeMET::~ReComputeMET  )  [inline]
 

Definition at line 65 of file ReComputeMET.hpp.


Member Function Documentation

caf_util::ReComputeMET::ClassDef ReComputeMET  ,
 

void caf_util::ReComputeMET::inputFileClosing TFile *  file  )  [virtual]
 

Called for every input file that is about to be closed.

Reimplemented from cafe::Processor.

Definition at line 106 of file ReComputeMET.cpp.

References _branch, _tree, and _treeName.

void caf_util::ReComputeMET::inputFileOpened TFile *  file  )  [virtual]
 

Called for every new input file that was opened.

Reimplemented from cafe::Processor.

Definition at line 82 of file ReComputeMET.cpp.

References _branch, _fromBranch, _result, _toBranch, _tree, _treeName, cafe::Processor::err(), cafe::Processor::fullName(), and cafe::Processor::name().

bool caf_util::ReComputeMET::processEvent cafe::Event event  )  [virtual]
 

Called for every event.

Reimplemented from cafe::Processor.

Definition at line 113 of file ReComputeMET.cpp.

References _debug, _electronBranch, _fromBranch, _jes, _jetBranch, _muonBranch, _result, _useDefaultElectron, _useDefaultJet, _useDefaultMuon, _valgo, _vars, TMBJet::ActAsJESCorrected(), TMBJet::ActAsJESMUCorrected(), TMBJet::ActAsSmeared(), TMBJet::ActAsSmearedMU(), cafe::Collection< T >::begin(), TMBJet::chETfraction(), cafe::Collection< T >::end(), cafe::EventBase::get(), cafe::EventBase::getCollection(), TMBMet::getMET(), TMBMet::getMETA(), TMBMet::getMETB(), TMBMet::getMETC(), TMBMet::getMETD(), TMBMet::getMETnoeta(), TMBMet::getMetQualInfo(), TMBMet::getZvertex(), TMBJet::isEM(), TMBJet::isGood(), TMBJet::JES_C(), TMBJet::JES_dC_stat_down(), TMBJet::JES_dC_stat_up(), TMBJet::JES_dC_sys_down(), TMBJet::JES_dC_sys_up(), TMBJet::JES_metC(), TMBJet::JES_metdC_stat(), TMBJet::JES_metdC_sys(), TMBJet::JESMU_C(), TMBJet::JESMU_dC_stat_down(), TMBJet::JESMU_dC_stat_up(), TMBJet::JESMU_dC_sys_down(), TMBJet::JESMU_dC_sys_up(), TMBJet::JESMU_metC(), TMBJet::JESMU_metdC_stat(), TMBJet::JESMU_metdC_sys(), TMBVector3::Phi(), TMBVector3::Pz(), TMBJet::sET(), TMBMet::setMET(), TMBMet::setMETA(), TMBMet::setMETB(), TMBMet::setMETC(), TMBMet::setMETD(), TMBMet::setMETnoeta(), TMBMet::setMetQualInfo(), TMBMet::setVertex(), ShiftedNeg, ShiftedPos, TMBJet::SmearingFactor(), TMBJet::SmearingFactorMU(), and TMBVector3::Theta().

void caf_util::ReComputeMET::setJES const JES jes  )  [inline]
 

Definition at line 71 of file ReComputeMET.hpp.

References _jes.


Member Data Documentation

TBranch* caf_util::ReComputeMET::_branch [private]
 

Definition at line 79 of file ReComputeMET.hpp.

Referenced by inputFileClosing(), and inputFileOpened().

bool caf_util::ReComputeMET::_debug [private]
 

Reimplemented from cafe::Processor.

Definition at line 87 of file ReComputeMET.hpp.

Referenced by processEvent(), and ReComputeMET().

std::string caf_util::ReComputeMET::_electronBranch [private]
 

Definition at line 85 of file ReComputeMET.hpp.

Referenced by processEvent(), and ReComputeMET().

std::string caf_util::ReComputeMET::_fromBranch [private]
 

Definition at line 75 of file ReComputeMET.hpp.

Referenced by inputFileOpened(), processEvent(), and ReComputeMET().

JES caf_util::ReComputeMET::_jes [private]
 

Definition at line 94 of file ReComputeMET.hpp.

Referenced by processEvent(), ReComputeMET(), and setJES().

std::string caf_util::ReComputeMET::_jetBranch [private]
 

Definition at line 86 of file ReComputeMET.hpp.

Referenced by processEvent(), and ReComputeMET().

cafe::Variables caf_util::ReComputeMET::_mcvars [private]
 

Definition at line 82 of file ReComputeMET.hpp.

std::string caf_util::ReComputeMET::_muonBranch [private]
 

Definition at line 84 of file ReComputeMET.hpp.

Referenced by processEvent(), and ReComputeMET().

TMBMet* caf_util::ReComputeMET::_result [private]
 

Definition at line 80 of file ReComputeMET.hpp.

Referenced by inputFileOpened(), and processEvent().

std::string caf_util::ReComputeMET::_toBranch [private]
 

Definition at line 76 of file ReComputeMET.hpp.

Referenced by inputFileOpened(), and ReComputeMET().

TTree* caf_util::ReComputeMET::_tree [private]
 

Definition at line 78 of file ReComputeMET.hpp.

Referenced by inputFileClosing(), and inputFileOpened().

std::string caf_util::ReComputeMET::_treeName [private]
 

Definition at line 77 of file ReComputeMET.hpp.

Referenced by inputFileClosing(), inputFileOpened(), and ReComputeMET().

bool caf_util::ReComputeMET::_useDefaultElectron [private]
 

Definition at line 89 of file ReComputeMET.hpp.

Referenced by processEvent(), and ReComputeMET().

bool caf_util::ReComputeMET::_useDefaultJet [private]
 

Definition at line 90 of file ReComputeMET.hpp.

Referenced by processEvent(), and ReComputeMET().

bool caf_util::ReComputeMET::_useDefaultMuon [private]
 

Definition at line 88 of file ReComputeMET.hpp.

Referenced by processEvent(), and ReComputeMET().

std::vector<std::string> caf_util::ReComputeMET::_valgo [private]
 

Definition at line 92 of file ReComputeMET.hpp.

Referenced by processEvent(), and ReComputeMET().

cafe::Variables caf_util::ReComputeMET::_vars [private]
 

Definition at line 82 of file ReComputeMET.hpp.

Referenced by processEvent(), and ReComputeMET().


The documentation for this class was generated from the following files:
Generated on Tue Mar 28 10:13:10 2006 for CAF by doxygen 1.3.4