81 : _bspvhm(iConfig.getParameter<edm::
ParameterSet>(
"bspvHistogramMakerPSet"), consumesCollector()),
83 _recoBeamSpotToken(consumes<
reco::
BeamSpot>(iConfig.getParameter<edm::
InputTag>(
"bsCollection"))),
84 _firstOnly(iConfig.getUntrackedParameter<bool>(
"firstOnly",
false)) {
115 if (!pvcoll->empty())
116 firstpv.push_back((*pvcoll)[0]);
static const std::string kSharedResource
void endRun(const edm::Run &, const edm::EventSetup &) override
~BSvsPVAnalyzer() override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< reco::VertexCollection > _recoVertexCollectionToken
std::vector< Vertex > VertexCollection
collection of Vertex objects
std::vector< Vertex > VertexCollection
void beginRun(const edm::Run &, const edm::EventSetup &) override
edm::EDGetTokenT< reco::BeamSpot > _recoBeamSpotToken
void book(const std::string dirname="")
BSvsPVHistogramMaker _bspvhm
BSvsPVAnalyzer(const edm::ParameterSet &)
void beginRun(const unsigned int nrun)
void analyze(const edm::Event &, const edm::EventSetup &) override
void fill(const unsigned int orbit, const int bx, const reco::VertexCollection &vertices, const reco::BeamSpot &bs)