EventWeight Class Reference

#include <EventWeight.hpp>

List of all members.


Detailed Description

Store an event weight with its associated name and errors.

Branch: EventWeight

Definition at line 24 of file EventWeight.hpp.

Public Member Functions

 EventWeight ()
 EventWeight (std::string name, double weight, double weight_pos, double weight_neg)
void Set (std::string name, double weight, double weight_pos, double weight_neg)
 ~EventWeight ()
std::string Name () const
 Event weight name.

double Weight () const
 Event weight.

double WeightPos () const
 Event weight + sigma.

double WeightNeg () const
 Event weight - sigma.

 ClassDef (EventWeight, 1)

Private Attributes

std::string _name
double _weight
double _weight_pos
double _weight_neg


Constructor & Destructor Documentation

EventWeight::EventWeight  ) 
 

Definition at line 5 of file EventWeight.cpp.

EventWeight::EventWeight std::string  name,
double  weight,
double  weight_pos,
double  weight_neg
 

Definition at line 9 of file EventWeight.cpp.

References Set().

EventWeight::~EventWeight  ) 
 

Definition at line 24 of file EventWeight.cpp.


Member Function Documentation

EventWeight::ClassDef EventWeight  ,
 

std::string EventWeight::Name  )  const [inline]
 

Event weight name.

Definition at line 42 of file EventWeight.hpp.

References _name.

void EventWeight::Set std::string  name,
double  weight,
double  weight_pos,
double  weight_neg
 

Definition at line 15 of file EventWeight.cpp.

References _name, _weight, _weight_neg, and _weight_pos.

Referenced by EventWeight().

double EventWeight::Weight  )  const [inline]
 

Event weight.

Definition at line 45 of file EventWeight.hpp.

References _weight.

double EventWeight::WeightNeg  )  const [inline]
 

Event weight - sigma.

Definition at line 51 of file EventWeight.hpp.

References _weight_neg.

double EventWeight::WeightPos  )  const [inline]
 

Event weight + sigma.

Definition at line 48 of file EventWeight.hpp.

References _weight_pos.


Member Data Documentation

std::string EventWeight::_name [private]
 

Definition at line 27 of file EventWeight.hpp.

Referenced by Name(), and Set().

double EventWeight::_weight [private]
 

Definition at line 28 of file EventWeight.hpp.

Referenced by Set(), and Weight().

double EventWeight::_weight_neg [private]
 

Definition at line 30 of file EventWeight.hpp.

Referenced by Set(), and WeightNeg().

double EventWeight::_weight_pos [private]
 

Definition at line 29 of file EventWeight.hpp.

Referenced by Set(), and WeightPos().


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