CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
WeightManager.h
Go to the documentation of this file.
1 #ifndef Validation_EventGenerator_WeightManager
2 #define Validation_EventGenerator_WeightManager
3 
4 // Utility class, that computes the event weight,
5 // either returning the weight as stored in the HepMCCollection
6 // or returning the product of the weights stored in
7 // a vector of GenEventInfoProducts
8 
10 #include <vector>
11 
12 namespace edm{
13  class ParameterSet;
14  class Event;
15 }
16 
18 
19  public:
20 
23 
24  double weight(const edm::Event&);
25 
26  private:
27  bool _useHepMC;
28  std::vector<edm::InputTag> _genEventInfos;
30 
31 };
32 
33 #endif
34 
std::vector< edm::InputTag > _genEventInfos
Definition: WeightManager.h:28
edm::InputTag _hepmcCollection
Definition: WeightManager.h:29
WeightManager(const edm::ParameterSet &)
double weight(const edm::Event &)