87 _vhm(iConfig.getParameter<edm::
ParameterSet>(
"vHistogramMakerPSet")),
88 _pvcollection(iConfig.getParameter<edm::InputTag>(
"pvCollection")),
89 _firstOnly(iConfig.getUntrackedParameter<bool>(
"firstOnly",
false)),
90 _weightprov(iConfig.getParameter<bool>(
"usePrescaleWeight") ?
136 if(pvcoll->size()) firstpv.push_back((*pvcoll)[0]);
virtual void analyze(const edm::Event &, const edm::EventSetup &)
~AnotherPrimaryVertexAnalyzer()
int prescaleWeight(const edm::Event &event, const edm::EventSetup &setup)
AnotherPrimaryVertexAnalyzer(const edm::ParameterSet &)
#define DEFINE_FWK_MODULE(type)
std::vector< Vertex > VertexCollection
collection of Vertex objects
void fill(const edm::Event &iEvent, const reco::VertexCollection &vertices, const double weight=1.)
VertexHistogramMaker _vhm
PrescaleWeightProvider * _weightprov
void initRun(const edm::Run &run, const edm::EventSetup &setup)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
void book(const std::string dirname="")
edm::InputTag _pvcollection
void beginRun(const edm::Run &iRun)
This class takes a vector of HLT paths and returns a weight based on their HLT and L1 prescales...
virtual void endRun(const edm::Run &, const edm::EventSetup &)
virtual void beginRun(const edm::Run &, const edm::EventSetup &)