30 :
public edm::one::EDProducer<edm::EndLuminosityBlockProducer, edm::LuminosityBlockCache<reco::PixelClusterCounts>> {
47 : pixelToken_(consumes(iConfig.getParameter<
edm::
InputTag>(
"pixelClusterLabel"))),
49 putToken_(produces<
reco::PixelClusterCounts,
edm::
Transition::EndLuminosityBlock>(
50 iConfig.getUntrackedParameter<
std::
string>(
"trigstring",
"alcaPCC"))) {}
54 unsigned int bx =
iEvent.bunchCrossing();
56 auto* pccOb = luminosityBlockCache(
iEvent.getLuminosityBlock().index());
57 pccOb->eventCounter(
bx);
63 for (
auto const&
mod : clustColl) {
77 int nCluster =
mod.size();
78 pccOb->increment(detId(),
bx, nCluster);
86 return std::make_shared<reco::PixelClusterCounts>();
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) final
edm::EDGetTokenT< edmNew::DetSetVector< SiPixelCluster > > pixelToken_
#define DEFINE_FWK_MODULE(type)
void endLuminosityBlockProduce(edm::LuminosityBlock &lumiSeg, const edm::EventSetup &iSetup) final
void globalEndLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) final
AlcaPCCProducer(const edm::ParameterSet &)
std::shared_ptr< reco::PixelClusterCounts > globalBeginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &iSetup) const final
void emplace(EDPutTokenT< PROD > token, Args &&... args)
puts a new product
edm::EDPutTokenT< reco::PixelClusterCounts > putToken_
LuminosityBlockIndex index() const
T mod(const T &a, const T &b)