84 : _bspvhm(iConfig.getParameter<edm::
ParameterSet>(
"bspvHistogramMakerPSet"), consumesCollector())
85 , _recoVertexCollectionToken(consumes<
reco::
VertexCollection>(iConfig.getParameter<edm::InputTag>(
"pvCollection")))
86 , _recoBeamSpotToken(consumes<
reco::
BeamSpot>(iConfig.getParameter<edm::InputTag>(
"bsCollection")))
87 , _firstOnly(iConfig.getUntrackedParameter<bool>(
"firstOnly",
false))
128 if(pvcoll->size()) firstpv.push_back((*pvcoll)[0]);
virtual void analyze(const edm::Event &, const edm::EventSetup &)
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
virtual void beginRun(const edm::Run &, const edm::EventSetup &)
edm::EDGetTokenT< reco::BeamSpot > _recoBeamSpotToken
void book(const std::string dirname="")
virtual void endRun(const edm::Run &, const edm::EventSetup &)
BSvsPVHistogramMaker _bspvhm
BSvsPVAnalyzer(const edm::ParameterSet &)
void beginRun(const unsigned int nrun)
volatile std::atomic< bool > shutdown_flag false
void fill(const unsigned int orbit, const int bx, const reco::VertexCollection &vertices, const reco::BeamSpot &bs)