54 return std::make_shared<alCaHcalDiJetsProducer::Counters>();
89 tok_HBHE_ = consumes<edm::SortedCollection<HBHERecHit, edm::StrictWeakOrdering<HBHERecHit>>>(
labelHBHE_);
90 tok_HF_ = consumes<edm::SortedCollection<HFRecHit, edm::StrictWeakOrdering<HFRecHit>>>(
labelHF_);
91 tok_HO_ = consumes<edm::SortedCollection<HORecHit, edm::StrictWeakOrdering<HORecHit>>>(
labelHO_);
98 produces<edm::SortedCollection<HBHERecHit, edm::StrictWeakOrdering<HBHERecHit>>>(
labelHBHE_.
encode());
99 produces<edm::SortedCollection<HFRecHit, edm::StrictWeakOrdering<HFRecHit>>>(
labelHF_.
encode());
100 produces<edm::SortedCollection<HORecHit, edm::StrictWeakOrdering<HORecHit>>>(
labelHO_.
encode());
107 edm::LogVerbatim(
"AlcaDiJets") <<
"Accepts " << runCache(iRun.
index())->nSelect_ <<
" events from a total of " 108 << runCache(iRun.
index())->nAll_ <<
" events";
121 ++(runCache(
iEvent.getRun().index())->nAll_);
146 if (!
hbhe.isValid()) {
169 ++(runCache(
iEvent.getRun().index())->nSelect_);
172 auto miniPFjetCollection = std::make_unique<reco::PFJetCollection>();
173 for (reco::PFJetCollection::const_iterator pfjetItr = pfjets.begin(); pfjetItr != pfjets.end(); pfjetItr++) {
174 miniPFjetCollection->push_back(*pfjetItr);
177 auto miniPFCandCollection = std::make_unique<reco::PFCandidateCollection>();
178 for (reco::PFCandidateCollection::const_iterator pfcItr =
pfcand.begin(); pfcItr !=
pfcand.end(); pfcItr++) {
179 miniPFCandCollection->push_back(*pfcItr);
182 auto miniVtxCollection = std::make_unique<reco::VertexCollection>();
183 for (reco::VertexCollection::const_iterator vtxItr =
vtx.begin(); vtxItr !=
vtx.end(); vtxItr++) {
184 miniVtxCollection->push_back(*vtxItr);
187 auto miniHBHECollection =
188 std::make_unique<edm::SortedCollection<HBHERecHit, edm::StrictWeakOrdering<HBHERecHit>>>();
191 hbheItr != Hithbhe.
end();
193 miniHBHECollection->push_back(*hbheItr);
196 auto miniHOCollection = std::make_unique<edm::SortedCollection<HORecHit, edm::StrictWeakOrdering<HORecHit>>>();
198 hoItr != Hitho.
end();
200 miniHOCollection->push_back(*hoItr);
203 auto miniHFCollection = std::make_unique<edm::SortedCollection<HFRecHit, edm::StrictWeakOrdering<HFRecHit>>>();
205 hfItr != Hithf.
end();
207 miniHFCollection->push_back(*hfItr);
230 desc.add<
double>(
"MinPtJet", 20.0);
231 descriptions.
add(
"alcaDiJetsProducer",
desc);
Log< level::Info, true > LogVerbatim
edm::EDGetTokenT< edm::SortedCollection< HBHERecHit, edm::StrictWeakOrdering< HBHERecHit > > > tok_HBHE_
T getParameter(std::string const &) const
edm::InputTag labelPFCandidate_
~AlCaDiJetsProducer() override=default
edm::EDGetTokenT< edm::SortedCollection< HORecHit, edm::StrictWeakOrdering< HORecHit > > > tok_HO_
T const * product() const
std::atomic< unsigned int > nAll_
std::vector< Vertex > VertexCollection
collection of Vertex objects
edm::EDGetTokenT< reco::PFJetCollection > tok_PFJet_
std::atomic< unsigned int > nSelect_
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
void globalEndRun(edm::Run const &iRun, edm::EventSetup const &) const override
edm::EDGetTokenT< edm::SortedCollection< HFRecHit, edm::StrictWeakOrdering< HFRecHit > > > tok_HF_
bool select(reco::PFJetCollection) const
edm::InputTag labelPFJet_
edm::EDGetTokenT< reco::VertexCollection > tok_Vertex_
#define DEFINE_FWK_MODULE(type)
const_iterator begin() const
edm::EDGetTokenT< reco::PFCandidateCollection > tok_PFCand_
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
const_iterator end() const
std::vector< reco::PFCandidate > PFCandidateCollection
collection of PFCandidates
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::vector< PFJet > PFJetCollection
collection of PFJet objects
std::shared_ptr< alCaHcalDiJetsProducer::Counters > globalBeginRun(edm::Run const &, edm::EventSetup const &) const override
Log< level::Warning, false > LogWarning
AlCaDiJetsProducer(const edm::ParameterSet &)
edm::InputTag labelVertex_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)