77 tok_HBHE_ = consumes<edm::SortedCollection<HBHERecHit,edm::StrictWeakOrdering<HBHERecHit>>>(
labelHBHE_);
78 tok_HF_ = consumes<edm::SortedCollection<HFRecHit,edm::StrictWeakOrdering<HFRecHit>>>(
labelHF_);
79 tok_HO_ = consumes<edm::SortedCollection<HORecHit,edm::StrictWeakOrdering<HORecHit>>>(
labelHO_);
86 produces<edm::SortedCollection<HBHERecHit,edm::StrictWeakOrdering<HBHERecHit>>>(labelHBHE_.
encode());
87 produces<edm::SortedCollection<HFRecHit,edm::StrictWeakOrdering<HFRecHit>>>(labelHF_.
encode());
88 produces<edm::SortedCollection<HORecHit,edm::StrictWeakOrdering<HORecHit>>>(labelHO_.
encode());
90 produces<reco::PFCandidateCollection>(labelPFCandidate_.
encode());
91 produces<reco::VertexCollection>(labelVertex_.
encode());
103 if (jt.size()<2)
return false;
166 auto miniPFjetCollection = std::make_unique<reco::PFJetCollection>();
167 for(reco::PFJetCollection::const_iterator pfjetItr=pfjets.begin();
168 pfjetItr!=pfjets.end(); pfjetItr++) {
169 miniPFjetCollection->push_back(*pfjetItr);
172 auto miniPFCandCollection = std::make_unique<reco::PFCandidateCollection>();
173 for(reco::PFCandidateCollection::const_iterator pfcItr=pfcand.begin();
174 pfcItr!=pfcand.end(); pfcItr++) {
175 miniPFCandCollection->push_back(*pfcItr);
178 auto miniVtxCollection = std::make_unique<reco::VertexCollection>();
179 for(reco::VertexCollection::const_iterator vtxItr=vtx.begin();
180 vtxItr!=vtx.end(); vtxItr++) {
181 miniVtxCollection->push_back(*vtxItr);
184 auto miniHBHECollection = std::make_unique<edm::SortedCollection<HBHERecHit,edm::StrictWeakOrdering<HBHERecHit>>>();
186 hbheItr!=Hithbhe.
end(); hbheItr++) {
187 miniHBHECollection->push_back(*hbheItr);
190 auto miniHOCollection = std::make_unique<edm::SortedCollection<HORecHit,edm::StrictWeakOrdering<HORecHit>>>();
192 hoItr!=Hitho.
end(); hoItr++) {
193 miniHOCollection->push_back(*hoItr);
196 auto miniHFCollection = std::make_unique<edm::SortedCollection<HFRecHit,edm::StrictWeakOrdering<HFRecHit>>>();
198 hfItr!=Hithf.
end(); hfItr++) {
199 miniHFCollection->push_back(*hfItr);
T getParameter(std::string const &) const
edm::EDGetTokenT< edm::SortedCollection< HBHERecHit, edm::StrictWeakOrdering< HBHERecHit > > > tok_HBHE_
bool select(reco::PFJetCollection)
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
edm::InputTag labelPFCandidate_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< edm::SortedCollection< HORecHit, edm::StrictWeakOrdering< HORecHit > > > tok_HO_
std::vector< Vertex > VertexCollection
collection of Vertex objects
edm::EDGetTokenT< reco::PFJetCollection > tok_PFJet_
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
edm::EDGetTokenT< edm::SortedCollection< HFRecHit, edm::StrictWeakOrdering< HFRecHit > > > tok_HF_
~AlCaDiJetsProducer() override
edm::InputTag labelPFJet_
edm::EDGetTokenT< reco::VertexCollection > tok_Vertex_
edm::EDGetTokenT< reco::PFCandidateCollection > tok_PFCand_
const_iterator end() const
std::vector< reco::PFCandidate > PFCandidateCollection
collection of PFCandidates
T const * product() const
return(e1-e2)*(e1-e2)+dp *dp
std::vector< PFJet > PFJetCollection
collection of PFJet objects
void produce(edm::Event &, const edm::EventSetup &) override
AlCaDiJetsProducer(const edm::ParameterSet &)
edm::InputTag labelVertex_
const_iterator begin() const