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

caf_util::TopologicalSelector Class Reference

This processor calculate HT, HT with leading lepton, HT with all leptons save as cafe::Event parameter and make a selection. More...

#include <TopologicalSelector.hpp>

Inheritance diagram for caf_util::TopologicalSelector:

cafe::Processor List of all members.

Public Member Functions

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

 ClassDef (TopologicalSelector, 0)

Private Attributes

std::string _electronBranch
std::string _muonBranch
std::string _jetBranch
int _nelectrons
int _nmuons
int _njets
float _minHT
float _maxHT
float _minHTleadL
float _maxHTleadL
float _minHTleptons
float _maxHTleptons
std::string _htVarName
std::string _htLeadLVarName
std::string _htLeptonsVarName
bool _calcHT
bool _calcHTLeadL
bool _calcHTLeptons
cafe::Variables _jetvars
 variables ro read from the MET branch

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

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


Detailed Description

This processor calculate HT, HT with leading lepton, HT with all leptons save as cafe::Event parameter and make a selection.

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

Optional parameters :

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

Author:
Viatcheslav Shary (shary@fnal.gov)

Definition at line 54 of file TopologicalSelector.hpp.


Constructor & Destructor Documentation

caf_util::TopologicalSelector::TopologicalSelector const char *  name  ) 
 

Definition at line 12 of file TopologicalSelector.cpp.

References _calcHT, _calcHTLeadL, _calcHTLeptons, _electronBranch, _htLeadLVarName, _htLeptonsVarName, _htVarName, _jetBranch, _maxHT, _maxHTleadL, _maxHTleptons, _minHT, _minHTleadL, _minHTleptons, _muonBranch, _nelectrons, _njets, _nmuons, cafe::Config::get(), and cafe::Processor::name().

caf_util::TopologicalSelector::~TopologicalSelector  )  [inline]
 

Definition at line 87 of file TopologicalSelector.hpp.


Member Function Documentation

caf_util::TopologicalSelector::ClassDef TopologicalSelector  ,
 

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

Called for every event.

Reimplemented from cafe::Processor.

Definition at line 47 of file TopologicalSelector.cpp.

References _calcHT, _calcHTLeadL, _calcHTLeptons, _electronBranch, _emvars, _htLeadLVarName, _htLeptonsVarName, _htVarName, _jetBranch, _jetvars, _maxHT, _maxHTleadL, _maxHTleptons, _minHT, _minHTleadL, _minHTleptons, _muonBranch, _muvars, _nelectrons, _njets, _nmuons, cafe::Collection< T >::begin(), cafe::Collection< T >::end(), cafe::StatPointer::EventSelected(), cafe::EventBase::get(), cafe::EventBase::getCollection(), cafe::Processor::out(), cafe::EventBase::put(), and cafe::Collection< T >::size().


Member Data Documentation

bool caf_util::TopologicalSelector::_calcHT [private]
 

Definition at line 79 of file TopologicalSelector.hpp.

Referenced by processEvent(), and TopologicalSelector().

bool caf_util::TopologicalSelector::_calcHTLeadL [private]
 

Definition at line 79 of file TopologicalSelector.hpp.

Referenced by processEvent(), and TopologicalSelector().

bool caf_util::TopologicalSelector::_calcHTLeptons [private]
 

Definition at line 79 of file TopologicalSelector.hpp.

Referenced by processEvent(), and TopologicalSelector().

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

Definition at line 58 of file TopologicalSelector.hpp.

Referenced by processEvent(), and TopologicalSelector().

cafe::Variables caf_util::TopologicalSelector::_emvars [private]
 

variables ro read from the MET branch

Definition at line 82 of file TopologicalSelector.hpp.

Referenced by processEvent().

std::string caf_util::TopologicalSelector::_htLeadLVarName [private]
 

Definition at line 76 of file TopologicalSelector.hpp.

Referenced by processEvent(), and TopologicalSelector().

std::string caf_util::TopologicalSelector::_htLeptonsVarName [private]
 

Definition at line 77 of file TopologicalSelector.hpp.

Referenced by processEvent(), and TopologicalSelector().

std::string caf_util::TopologicalSelector::_htVarName [private]
 

Definition at line 75 of file TopologicalSelector.hpp.

Referenced by processEvent(), and TopologicalSelector().

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

Definition at line 60 of file TopologicalSelector.hpp.

Referenced by processEvent(), and TopologicalSelector().

cafe::Variables caf_util::TopologicalSelector::_jetvars [private]
 

variables ro read from the MET branch

Definition at line 82 of file TopologicalSelector.hpp.

Referenced by processEvent().

float caf_util::TopologicalSelector::_maxHT [private]
 

Definition at line 67 of file TopologicalSelector.hpp.

Referenced by processEvent(), and TopologicalSelector().

float caf_util::TopologicalSelector::_maxHTleadL [private]
 

Definition at line 70 of file TopologicalSelector.hpp.

Referenced by processEvent(), and TopologicalSelector().

float caf_util::TopologicalSelector::_maxHTleptons [private]
 

Definition at line 73 of file TopologicalSelector.hpp.

Referenced by processEvent(), and TopologicalSelector().

float caf_util::TopologicalSelector::_minHT [private]
 

Definition at line 66 of file TopologicalSelector.hpp.

Referenced by processEvent(), and TopologicalSelector().

float caf_util::TopologicalSelector::_minHTleadL [private]
 

Definition at line 69 of file TopologicalSelector.hpp.

Referenced by processEvent(), and TopologicalSelector().

float caf_util::TopologicalSelector::_minHTleptons [private]
 

Definition at line 72 of file TopologicalSelector.hpp.

Referenced by processEvent(), and TopologicalSelector().

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

Definition at line 59 of file TopologicalSelector.hpp.

Referenced by processEvent(), and TopologicalSelector().

cafe::Variables caf_util::TopologicalSelector::_muvars [private]
 

variables ro read from the MET branch

Definition at line 82 of file TopologicalSelector.hpp.

Referenced by processEvent().

int caf_util::TopologicalSelector::_nelectrons [private]
 

Definition at line 62 of file TopologicalSelector.hpp.

Referenced by processEvent(), and TopologicalSelector().

int caf_util::TopologicalSelector::_njets [private]
 

Definition at line 64 of file TopologicalSelector.hpp.

Referenced by processEvent(), and TopologicalSelector().

int caf_util::TopologicalSelector::_nmuons [private]
 

Definition at line 63 of file TopologicalSelector.hpp.

Referenced by processEvent(), and TopologicalSelector().


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