EventWeight.hpp

Go to the documentation of this file.
00001 #ifndef CAFE_EVENTWEIGHT_HPP_
00002 #define CAFE_EVENTWEIGHT_HPP_
00003 
00005 //                                                                      //
00006 // EventWeight class to save weights in CAF trees                       //
00007 //                                                                      // 
00008 // Yann Coadou (yann@fnal.gov) 3 March 2006                             //
00009 //                                                                      //
00011 
00012 #ifndef ROOT_TObject
00013 #include "TObject.h"
00014 #endif
00015 #include <string>
00016 
00024 class EventWeight : public TObject {
00025 
00026 private:
00027   std::string _name;        // Event weight name
00028   double      _weight;      // Event weight
00029   double      _weight_pos;  // +1sigma event weight
00030   double      _weight_neg;  // -1sigma event weight
00031 
00032 public:
00033   EventWeight();
00034 
00035   EventWeight(std::string name, double weight, double weight_pos, double weight_neg);
00036 
00037   void Set(std::string name, double weight, double weight_pos, double weight_neg);
00038 
00039   ~EventWeight();
00040  
00042   std::string Name() const {return _name;}
00043 
00045   double Weight() const {return _weight;}
00046 
00048   double WeightPos() const {return _weight_pos;}
00049 
00051   double WeightNeg() const {return _weight_neg;}
00052 
00053 
00054   ClassDef(EventWeight, 1);
00055 };
00056 
00057 #endif // CAFE_EVENTWEIGHT_HPP_

Generated on Thu Apr 3 04:14:23 2008 for CAF by doxygen 1.3.4