87 iConfig.getParameter<
bool>(
"usePrescaleWeight")
111 weight =
_weightprov->prescaleWeight(iEvent, iSetup);
120 if (!pvcoll->empty())
121 firstpv.push_back((*pvcoll)[0]);
AnotherPrimaryVertexAnalyzer(const edm::ParameterSet &)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< Vertex > VertexCollection
collection of Vertex objects
void fill(const edm::Event &iEvent, const reco::VertexCollection &vertices, const double weight=1.)
VertexHistogramMaker _vhm
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
edm::EDGetTokenT< reco::VertexCollection > _recoVertexCollectionToken
#define DEFINE_FWK_MODULE(type)
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
void analyze(const edm::Event &, const edm::EventSetup &) override
std::unique_ptr< PrescaleWeightProvider > _weightprov
void beginRun(const edm::Run &, const edm::EventSetup &) override
void book(const std::string dirname="")
void endRun(const edm::Run &, const edm::EventSetup &) override
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...
~AnotherPrimaryVertexAnalyzer() override