test
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 
13 #include <vector>
14 
15 namespace edm{
16  class ParameterSet;
17  class Event;
18 }
19 
21 
22  public:
23 
26 
27  double weight(const edm::Event&);
28 
29  private:
30  bool _useHepMC;
31  std::vector<edm::InputTag> _genEventInfos;
33 
35  std::vector<edm::EDGetTokenT<std::vector<edm::InputTag> > > genEventInfosTokens_;
36 
37 };
38 
39 #endif
40 
std::vector< edm::InputTag > _genEventInfos
Definition: WeightManager.h:31
edm::InputTag _hepmcCollection
Definition: WeightManager.h:32
std::vector< edm::EDGetTokenT< std::vector< edm::InputTag > > > genEventInfosTokens_
Definition: WeightManager.h:35
edm::EDGetTokenT< edm::HepMCProduct > hepmcCollectionToken_
Definition: WeightManager.h:34
WeightManager(const edm::ParameterSet &, edm::ConsumesCollector iC)
double weight(const edm::Event &)