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

cafe::StatPointer Class Reference

Pointer to the Stat object. Created and deleted at each event processing. More...

#include <Stat.hpp>

List of all members.

Public Member Functions

 StatPointer (Stat *stat=0)
virtual ~StatPointer ()
Statpointer ()
void EventSelected (const std::string &selection_name)
 Increase number of event counted by Stat object. If such selection does not exist it will be added.

void applyWeight (const std::string &weight_name, double weight, double weight_pos=-1.0, double weight_neg=-1.0)
 apply weight to efficiency calculation.

double calculateGlobalWeight ()
 calculate global event weight

 ClassDef (StatPointer, 0)

Private Attributes

Stat_stat


Detailed Description

Pointer to the Stat object. Created and deleted at each event processing.

Definition at line 203 of file cafe/cafe/Stat.hpp.


Constructor & Destructor Documentation

cafe::StatPointer::StatPointer Stat stat = 0  ) 
 

Definition at line 15 of file Stat.cpp.

cafe::StatPointer::~StatPointer  )  [virtual]
 

Definition at line 16 of file Stat.cpp.


Member Function Documentation

void cafe::StatPointer::applyWeight const std::string &  weight_name,
double  weight,
double  weight_pos = -1.0,
double  weight_neg = -1.0
 

apply weight to efficiency calculation.

Definition at line 23 of file Stat.cpp.

References _stat, and cafe::Stat::applyWeight().

double cafe::StatPointer::calculateGlobalWeight  ) 
 

calculate global event weight

Definition at line 29 of file Stat.cpp.

References _stat, and cafe::Stat::calculateGlobalWeight().

Referenced by cafe::StatGWeight::processEvent().

cafe::StatPointer::ClassDef StatPointer  ,
 

void cafe::StatPointer::EventSelected const std::string &  selection_name  ) 
 

Increase number of event counted by Stat object. If such selection does not exist it will be added.

Definition at line 18 of file Stat.cpp.

References _stat, and cafe::Stat::EventSelected().

Referenced by caf_util::VertexSelector::processEvent(), caf_util::TopologicalSelector::processEvent(), caf_util::TauSelector::processEvent(), caf_util::ResSelector::processEvent(), caf_util::METSelector::processEvent(), caf_util::JetSelector::processEvent(), caf_util::EventQuality::processEvent(), caf_util::ElectronSelector::processEvent(), caf_util::BTagJetSelector::processEvent(), caf_util::VertexSelector::selectObject(), caf_util::TauSelector::selectObject(), caf_util::JetSelector::selectObject(), caf_util::ElectronSelector::selectObject(), and caf_util::BTagJetSelector::selectObject().

Stat* cafe::StatPointer::pointer  )  [inline]
 

Definition at line 209 of file cafe/cafe/Stat.hpp.

References _stat.


Member Data Documentation

Stat* cafe::StatPointer::_stat [private]
 

Definition at line 204 of file cafe/cafe/Stat.hpp.

Referenced by applyWeight(), calculateGlobalWeight(), EventSelected(), and pointer().


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