53 return std::make_shared<alcaHcalDiJet::Counters>();
88 tok_HBHE_ = consumes<edm::SortedCollection<HBHERecHit, edm::StrictWeakOrdering<HBHERecHit>>>(
labelHBHE_);
89 tok_HF_ = consumes<edm::SortedCollection<HFRecHit, edm::StrictWeakOrdering<HFRecHit>>>(
labelHF_);
90 tok_HO_ = consumes<edm::SortedCollection<HORecHit, edm::StrictWeakOrdering<HORecHit>>>(
labelHO_);
97 produces<edm::SortedCollection<HBHERecHit, edm::StrictWeakOrdering<HBHERecHit>>>(
labelHBHE_.
encode());
98 produces<edm::SortedCollection<HFRecHit, edm::StrictWeakOrdering<HFRecHit>>>(
labelHF_.
encode());
99 produces<edm::SortedCollection<HORecHit, edm::StrictWeakOrdering<HORecHit>>>(
labelHO_.
encode());
106 edm::LogVerbatim(
"AlcaDiJets") <<
"Accepts " << runCache(iRun.
index())->nSelect_ <<
" events from a total of " 107 << runCache(iRun.
index())->nAll_ <<
" events";
120 ++(runCache(
iEvent.getRun().index())->nAll_);
145 if (!
hbhe.isValid()) {
168 ++(runCache(
iEvent.getRun().index())->nSelect_);
171 auto miniPFjetCollection = std::make_unique<reco::PFJetCollection>();
172 for (reco::PFJetCollection::const_iterator pfjetItr = pfjets.begin(); pfjetItr != pfjets.end(); pfjetItr++) {
173 miniPFjetCollection->push_back(*pfjetItr);
176 auto miniPFCandCollection = std::make_unique<reco::PFCandidateCollection>();
177 for (reco::PFCandidateCollection::const_iterator pfcItr =
pfcand.begin(); pfcItr !=
pfcand.end(); pfcItr++) {
178 miniPFCandCollection->push_back(*pfcItr);
181 auto miniVtxCollection = std::make_unique<reco::VertexCollection>();
182 for (reco::VertexCollection::const_iterator vtxItr =
vtx.begin(); vtxItr !=
vtx.end(); vtxItr++) {
183 miniVtxCollection->push_back(*vtxItr);
186 auto miniHBHECollection =
187 std::make_unique<edm::SortedCollection<HBHERecHit, edm::StrictWeakOrdering<HBHERecHit>>>();
190 hbheItr != Hithbhe.
end();
192 miniHBHECollection->push_back(*hbheItr);
195 auto miniHOCollection = std::make_unique<edm::SortedCollection<HORecHit, edm::StrictWeakOrdering<HORecHit>>>();
197 hoItr != Hitho.
end();
199 miniHOCollection->push_back(*hoItr);
202 auto miniHFCollection = std::make_unique<edm::SortedCollection<HFRecHit, edm::StrictWeakOrdering<HFRecHit>>>();
204 hfItr != Hithf.
end();
206 miniHFCollection->push_back(*hfItr);
229 desc.add<
double>(
"MinPtJet", 20.0);
230 descriptions.
add(
"alcaDiJetsProducer",
desc);
Log< level::Info, true > LogVerbatim
edm::EDGetTokenT< edm::SortedCollection< HBHERecHit, edm::StrictWeakOrdering< HBHERecHit > > > tok_HBHE_
std::atomic< unsigned int > nAll_
T getParameter(std::string const &) const
edm::InputTag labelPFCandidate_
~AlCaDiJetsProducer() override=default
edm::EDGetTokenT< edm::SortedCollection< HORecHit, edm::StrictWeakOrdering< HORecHit > > > tok_HO_
#define DEFINE_FWK_MODULE(type)
T const * product() const
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_
const_iterator begin() const
std::shared_ptr< alcaHcalDiJet::Counters > globalBeginRun(edm::Run const &, edm::EventSetup const &) const override
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
Log< level::Warning, false > LogWarning
AlCaDiJetsProducer(const edm::ParameterSet &)
edm::InputTag labelVertex_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)