cafe::StatSelection Class Reference

#include <StatWeight.hpp>

Inheritance diagram for cafe::StatSelection:

cafe::StatWeight List of all members.

Public Member Functions

 StatSelection (const std::string &name, unsigned long events=1, bool weight=false)
virtual ~StatSelection ()
const std::string & name () const
unsigned long addEvent ()
unsigned long nevents () const
bool isUpdated () const
bool isWeight () const
double err (const StatSelection &selection) const
 return errors calculated relative to the previous selection

virtual void Clear ()
 Clear the _updated flag in the beginning of the event processing.

bool operator== (const std::string &name) const
 ClassDef (StatSelection, 0)

Private Attributes

std::string _name
unsigned long _events
bool _updated
bool _weight

Constructor & Destructor Documentation

cafe::StatSelection::StatSelection const std::string &  name,
unsigned long  events = 1,
bool  weight = false
 

Definition at line 9 of file StatWeight.cpp.

References _updated, and _weight.

virtual cafe::StatSelection::~StatSelection  )  [inline, virtual]
 

Definition at line 25 of file StatWeight.hpp.


Member Function Documentation

unsigned long cafe::StatSelection::addEvent  ) 
 

Definition at line 31 of file StatWeight.cpp.

References _events, and _updated.

Referenced by cafe::StatWeight::applyWeight().

cafe::StatSelection::ClassDef StatSelection  ,
 

virtual void cafe::StatSelection::Clear  )  [inline, virtual]
 

Clear the _updated flag in the beginning of the event processing.

Reimplemented in cafe::StatWeight.

Definition at line 37 of file StatWeight.hpp.

References _updated.

double cafe::StatSelection::err const StatSelection selection  )  const
 

return errors calculated relative to the previous selection

Definition at line 19 of file StatWeight.cpp.

References _events, and nevents().

bool cafe::StatSelection::isUpdated  )  const [inline]
 

Definition at line 30 of file StatWeight.hpp.

References _updated.

Referenced by cafe::StatWeight::applyWeight().

bool cafe::StatSelection::isWeight  )  const [inline]
 

Definition at line 31 of file StatWeight.hpp.

References _weight.

Referenced by cafe::StatWeight::applyWeight(), cafe::StatSample::HtmlTable(), cafe::Stat::inheritWeights(), cafe::Stat::print_html(), cafe::StatSample::print_tex(), cafe::Stat::syst_neg(), and cafe::Stat::syst_pos().

const std::string& cafe::StatSelection::name  )  const [inline]
 

Definition at line 27 of file StatWeight.hpp.

References _name.

Referenced by cafe::StatSample::HtmlTable(), cafe::Stat::inheritWeights(), and cafe::Stat::print_html().

unsigned long cafe::StatSelection::nevents  )  const [inline]
 

Definition at line 29 of file StatWeight.hpp.

References _events.

Referenced by cafe::StatWeight::applyWeight(), cafe::StatWeight::err(), err(), cafe::StatWeight::err_neg(), cafe::StatWeight::err_pos(), cafe::StatSample::HtmlTable(), and cafe::StatSample::print_tex().

bool cafe::StatSelection::operator== const std::string &  name  )  const [inline]
 

Definition at line 39 of file StatWeight.hpp.

References _name.


Member Data Documentation

unsigned long cafe::StatSelection::_events [private]
 

Definition at line 19 of file StatWeight.hpp.

Referenced by addEvent(), err(), and nevents().

std::string cafe::StatSelection::_name [private]
 

Definition at line 18 of file StatWeight.hpp.

Referenced by name(), and operator==().

bool cafe::StatSelection::_updated [private]
 

Definition at line 20 of file StatWeight.hpp.

Referenced by addEvent(), Clear(), isUpdated(), and StatSelection().

bool cafe::StatSelection::_weight [private]
 

Reimplemented in cafe::StatWeight.

Definition at line 21 of file StatWeight.hpp.

Referenced by isWeight(), and StatSelection().


The documentation for this class was generated from the following files:
Generated on Thu Apr 3 04:14:28 2008 for CAF by doxygen 1.3.4