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

caf_util::METSelector Class Reference

This processor make a MET selection (selection code provided by Patrice Verdier). More...

#include <METSelector.hpp>

Inheritance diagram for caf_util::METSelector:

cafe::Processor List of all members.

Public Member Functions

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

 ClassDef (METSelector, 0)

Private Attributes

float _minMET
float _maxMET
float _minSET
float _maxSET
bool _muCorrected
bool _MCsmeared
std::string _algo
std::string _fromBranch
cafe::Variables _vars
 variables ro read from the MET branch

cafe::Variables _mcvars
 variables ro read from the MET branch


Detailed Description

This processor make a MET selection (selection code provided by Patrice Verdier).

Usage: add this processor to the controller Run processor, e.g.
cafe.Run ... METSelector(processor_name) ... You can change default behavior via configuration file.

Optional parameters (negative values or 0 means no cut):

METSelector will put the MET information to the event. You can access it as
event.get("caf_util::MET", met) ;
event.get("caf_util::SET", set) ;
event.get("caf_util::METx", metx) ;
event.get("caf_util::METy", mety) ;

Some comments about coherent use of JES and MET muon corrected (from mail exchange with Patrice Verdier)

Additional MET information available at

Author:
Viatcheslav Shary (shary@fnal.gov)

Definition at line 57 of file METSelector.hpp.


Constructor & Destructor Documentation

caf_util::METSelector::METSelector const char *  name  ) 
 

Definition at line 14 of file METSelector.cpp.

References _algo, _fromBranch, _maxMET, _maxSET, _MCsmeared, _minMET, _minSET, _muCorrected, cafe::Processor::err(), cafe::Config::get(), cafe::Processor::name(), and cafe::Processor::out().

caf_util::METSelector::~METSelector  )  [inline]
 

Definition at line 78 of file METSelector.hpp.


Member Function Documentation

caf_util::METSelector::ClassDef METSelector  ,
 

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

Called for every event.

Reimplemented from cafe::Processor.

Definition at line 47 of file METSelector.cpp.

References _algo, _fromBranch, _maxMET, _maxSET, _MCsmeared, _mcvars, _minMET, _minSET, _muCorrected, _vars, cafe::Processor::debug(), cafe::Processor::err(), cafe::StatPointer::EventSelected(), cafe::EventBase::get(), cafe::Event::getMCEventInfo(), TMBMCevtInfo::nchunks(), cafe::Processor::out(), and cafe::EventBase::put().


Member Data Documentation

std::string caf_util::METSelector::_algo [private]
 

Definition at line 69 of file METSelector.hpp.

Referenced by METSelector(), and processEvent().

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

Definition at line 70 of file METSelector.hpp.

Referenced by METSelector(), and processEvent().

float caf_util::METSelector::_maxMET [private]
 

Definition at line 61 of file METSelector.hpp.

Referenced by METSelector(), and processEvent().

float caf_util::METSelector::_maxSET [private]
 

Definition at line 64 of file METSelector.hpp.

Referenced by METSelector(), and processEvent().

bool caf_util::METSelector::_MCsmeared [private]
 

Definition at line 67 of file METSelector.hpp.

Referenced by METSelector(), and processEvent().

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

variables ro read from the MET branch

Definition at line 73 of file METSelector.hpp.

Referenced by processEvent().

float caf_util::METSelector::_minMET [private]
 

Definition at line 60 of file METSelector.hpp.

Referenced by METSelector(), and processEvent().

float caf_util::METSelector::_minSET [private]
 

Definition at line 63 of file METSelector.hpp.

Referenced by METSelector(), and processEvent().

bool caf_util::METSelector::_muCorrected [private]
 

Definition at line 66 of file METSelector.hpp.

Referenced by METSelector(), and processEvent().

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

variables ro read from the MET branch

Definition at line 73 of file METSelector.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