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"))) {}
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_
LuminosityBlockIndex index() const
#define DEFINE_FWK_MODULE(type)
int bunchCrossing() const
void emplace(EDPutTokenT< PROD > token, Args &&...args)
puts a new product
void endLuminosityBlockProduce(edm::LuminosityBlock &lumiSeg, const edm::EventSetup &iSetup) final
void globalEndLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) final
bool get(ProductID const &oid, Handle< PROD > &result) const
LuminosityBlock const & getLuminosityBlock() const
AlcaPCCProducer(const edm::ParameterSet &)
std::shared_ptr< reco::PixelClusterCounts > globalBeginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &iSetup) const final
edm::EDPutTokenT< reco::PixelClusterCounts > putToken_
T mod(const T &a, const T &b)