Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
Validation
EventGenerator
interface
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
9
#include "
FWCore/Utilities/interface/InputTag.h
"
10
#include <vector>
11
12
namespace
edm{
13
class
ParameterSet
;
14
class
Event
;
15
}
16
17
class
WeightManager
{
18
19
public
:
20
21
WeightManager
(
const
edm::ParameterSet
& );
22
~WeightManager
(){};
23
24
double
weight
(
const
edm::Event
&);
25
26
private
:
27
bool
_useHepMC
;
28
std::vector<edm::InputTag>
_genEventInfos
;
29
edm::InputTag
_hepmcCollection
;
30
31
};
32
33
#endif
34
WeightManager::_genEventInfos
std::vector< edm::InputTag > _genEventInfos
Definition:
WeightManager.h:28
WeightManager::_hepmcCollection
edm::InputTag _hepmcCollection
Definition:
WeightManager.h:29
WeightManager::WeightManager
WeightManager(const edm::ParameterSet &)
Definition:
WeightManager.cc:12
ParameterSet
Definition:
Functions.h:16
WeightManager::_useHepMC
bool _useHepMC
Definition:
WeightManager.h:27
WeightManager
Definition:
WeightManager.h:17
WeightManager::~WeightManager
~WeightManager()
Definition:
WeightManager.h:22
Event
edm::InputTag
Definition:
InputTag.h:17
InputTag.h
edm::ParameterSet
Definition:
ParameterSet.h:35
edm::Event
Definition:
Event.h:56
WeightManager::weight
double weight(const edm::Event &)
Definition:
WeightManager.cc:21
Generated for CMSSW Reference Manual by
1.8.5