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

caf_util::ApplyJES Class Reference

#include <ApplyJES.hpp>

Inheritance diagram for caf_util::ApplyJES:

cafe::SelectUserObjects< TMBJet > cafe::Processor List of all members.

Public Member Functions

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

bool selectObject (const TMBJet &jet)
 Abstract select method to be overridden by user.

 ClassDef (ApplyJES, 1)

Private Member Functions

void after (cafe::Collection< TMBJet > &accepted, cafe::Collection< TMBJet > &rejected)
 Called after the selection is done.

float PTrel (const TMBMuon *muon, const TMBJet &jet)

Private Attributes

std::string _muonBranch
std::string _jetBranch
bool _debug
bool _isMC
bool _doJESMU
int _jes_datatype
int _jes_jetalgo
float _muotag_dr
float _muotag_ptrel
cafe::Event_event
cafe::Variables _vars
ParticleJetCorr _pjc
bool _useDefaultMuon
bool _addDataErr2MC
bool _p1803cafPatch

Detailed Description

ApplyJES applies JES corrections to a list of jets (overwrite JES corrections). The output list of jets is stored in a separate branch. The implementation mimics the one into d0correct.

Required parameters:

Optional parameters:

Authors:
Frederic Deliot

Definition at line 48 of file ApplyJES.hpp.


Constructor & Destructor Documentation

caf_util::ApplyJES::ApplyJES const char *  name  ) 
 

Definition at line 12 of file ApplyJES.cpp.

References _addDataErr2MC, _debug, _doJESMU, _jes_datatype, _jes_jetalgo, _jetBranch, _muonBranch, _muotag_dr, _muotag_ptrel, _p1803cafPatch, _pjc, _useDefaultMuon, cafe::Config::get(), and cafe::Processor::name().

caf_util::ApplyJES::~ApplyJES  )  [inline]
 

Definition at line 52 of file ApplyJES.hpp.


Member Function Documentation

void caf_util::ApplyJES::after cafe::Collection< TMBJet > &  input,
cafe::Collection< TMBJet > &  rejected
[private, virtual]
 

Called after the selection is done.

Reimplemented from cafe::SelectUserObjects< TMBJet >.

Definition at line 67 of file ApplyJES.cpp.

References _addDataErr2MC, _debug, _doJESMU, _event, _jes_datatype, _jes_jetalgo, _muonBranch, _muotag_dr, _muotag_ptrel, _p1803cafPatch, _pjc, _useDefaultMuon, TMBJet::ActAsJESCorrected(), TMBJet::ActAsJESMUCorrected(), TMBJet::ActAsUnCorrected(), cafe::Collection< T >::begin(), TMBLorentzVector::E(), cafe::Collection< T >::end(), TMBVector3::Eta(), cafe::EventBase::getCollection(), cafe::Event::getPrimaryVertices(), TMBJet::isGood(), TMBJet::JES_C(), TMBJet::kJESCorrected, TMBJet::kJESCorrectedShiftedMinus, TMBJet::kJESCorrectedShiftedPlus, TMBJet::kJESMUCorrected, TMBJet::kJESMUCorrectedShiftedMinus, TMBJet::kJESMUCorrectedShiftedPlus, TMBJet::kSmeared, TMBJet::kSmearedMU, TMBJet::kUnCorrected, TMBVector3::Pt(), PTrel(), TMBVector3::Px(), TMBVector3::Py(), TMBVector3::Pz(), and cafe::Collection< T >::size().

caf_util::ApplyJES::ClassDef ApplyJES  ,
 

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

Called for every event.

Reimplemented from cafe::SelectUserObjects< TMBJet >.

Definition at line 47 of file ApplyJES.cpp.

References _event, _isMC, _jes_datatype, _vars, cafe::Event::getMCEventInfo(), and TMBMCevtInfo::nchunks().

float caf_util::ApplyJES::PTrel const TMBMuon muon,
const TMBJet jet
[private]
 

Definition at line 239 of file ApplyJES.cpp.

References TMBVector3::Px(), TMBVector3::Py(), and TMBVector3::Pz().

Referenced by after().

bool caf_util::ApplyJES::selectObject const TMBJet jet  )  [virtual]
 

Abstract select method to be overridden by user.

Each object for which this method returns true will be put into the result branch, rejected objected will be put in the rejected object branch

Implements cafe::SelectUserObjects< TMBJet >.

Definition at line 62 of file ApplyJES.cpp.


Member Data Documentation

bool caf_util::ApplyJES::_addDataErr2MC [private]
 

Definition at line 77 of file ApplyJES.hpp.

Referenced by after(), and ApplyJES().

bool caf_util::ApplyJES::_debug [private]
 

Reimplemented from cafe::Processor.

Definition at line 63 of file ApplyJES.hpp.

Referenced by after(), and ApplyJES().

bool caf_util::ApplyJES::_doJESMU [private]
 

Definition at line 65 of file ApplyJES.hpp.

Referenced by after(), and ApplyJES().

cafe::Event* caf_util::ApplyJES::_event [private]
 

Definition at line 72 of file ApplyJES.hpp.

Referenced by after(), and processEvent().

bool caf_util::ApplyJES::_isMC [private]
 

Definition at line 64 of file ApplyJES.hpp.

Referenced by processEvent().

int caf_util::ApplyJES::_jes_datatype [private]
 

Definition at line 66 of file ApplyJES.hpp.

Referenced by after(), ApplyJES(), and processEvent().

int caf_util::ApplyJES::_jes_jetalgo [private]
 

Definition at line 67 of file ApplyJES.hpp.

Referenced by after(), and ApplyJES().

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

Definition at line 62 of file ApplyJES.hpp.

Referenced by ApplyJES().

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

Definition at line 61 of file ApplyJES.hpp.

Referenced by after(), and ApplyJES().

float caf_util::ApplyJES::_muotag_dr [private]
 

Definition at line 69 of file ApplyJES.hpp.

Referenced by after(), and ApplyJES().

float caf_util::ApplyJES::_muotag_ptrel [private]
 

Definition at line 70 of file ApplyJES.hpp.

Referenced by after(), and ApplyJES().

bool caf_util::ApplyJES::_p1803cafPatch [private]
 

Definition at line 78 of file ApplyJES.hpp.

Referenced by after(), and ApplyJES().

ParticleJetCorr caf_util::ApplyJES::_pjc [private]
 

Definition at line 75 of file ApplyJES.hpp.

Referenced by after(), and ApplyJES().

bool caf_util::ApplyJES::_useDefaultMuon [private]
 

Definition at line 76 of file ApplyJES.hpp.

Referenced by after(), and ApplyJES().

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

Reimplemented from cafe::SelectUserObjects< TMBJet >.

Definition at line 73 of file ApplyJES.hpp.

Referenced by processEvent().


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