CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 
13 #include <vector>
14 
15 namespace edm {
16  class ParameterSet;
17  class Event;
18 } // namespace edm
19 
21 public:
24 
25  double weight(const edm::Event&);
26 
27 private:
28  bool _useHepMC;
29  std::vector<edm::InputTag> _genEventInfos;
31 
33  std::vector<edm::EDGetTokenT<std::vector<edm::InputTag> > > genEventInfosTokens_;
34 };
35 
36 #endif
std::vector< edm::InputTag > _genEventInfos
Definition: WeightManager.h:29
edm::InputTag _hepmcCollection
Definition: WeightManager.h:30
std::vector< edm::EDGetTokenT< std::vector< edm::InputTag > > > genEventInfosTokens_
Definition: WeightManager.h:33
edm::EDGetTokenT< edm::HepMCProduct > hepmcCollectionToken_
Definition: WeightManager.h:32
WeightManager(const edm::ParameterSet &, edm::ConsumesCollector iC)
double weight(const edm::Event &)