97 tok_HBHE_ = consumes<edm::SortedCollection<HBHERecHit, edm::StrictWeakOrdering<HBHERecHit>>>(
labelHBHE_);
98 tok_HF_ = consumes<edm::SortedCollection<HFRecHit, edm::StrictWeakOrdering<HFRecHit>>>(
labelHF_);
99 tok_HO_ = consumes<edm::SortedCollection<HORecHit, edm::StrictWeakOrdering<HORecHit>>>(
labelHO_);
114 produces<edm::SortedCollection<HBHERecHit, edm::StrictWeakOrdering<HBHERecHit>>>(
labelHBHE_.
encode());
115 produces<edm::SortedCollection<HFRecHit, edm::StrictWeakOrdering<HFRecHit>>>(
labelHF_.
encode());
116 produces<edm::SortedCollection<HORecHit, edm::StrictWeakOrdering<HORecHit>>>(
labelHO_.
encode());
142 for (reco::PFJetCollection::const_iterator
itr = jt.begin();
itr != jt.end(); ++
itr) {
150 for (reco::PhotonCollection::const_iterator
itr = ph.begin();
itr != ph.end(); ++
itr) {
203 if (!
hbhe.isValid()) {
227 if (!
trig.isValid()) {
239 const double rho_val = *(rh.
product());
243 if (!
gsf.isValid()) {
267 auto miniPFjetCollection = std::make_unique<reco::PFJetCollection>();
268 auto miniPhotonCollection = std::make_unique<reco::PhotonCollection>();
269 auto miniPFCandCollection = std::make_unique<reco::PFCandidateCollection>();
270 auto miniVtxCollection = std::make_unique<reco::VertexCollection>();
271 auto miniPFMETCollection = std::make_unique<reco::PFMETCollection>();
272 auto miniHBHECollection = std::make_unique<edm::SortedCollection<HBHERecHit, edm::StrictWeakOrdering<HBHERecHit>>>();
273 auto miniHOCollection = std::make_unique<edm::SortedCollection<HORecHit, edm::StrictWeakOrdering<HORecHit>>>();
274 auto miniHFCollection = std::make_unique<edm::SortedCollection<HFRecHit, edm::StrictWeakOrdering<HFRecHit>>>();
275 auto miniGSFeleCollection = std::make_unique<reco::GsfElectronCollection>();
276 auto miniConversionCollection = std::make_unique<reco::ConversionCollection>();
278 auto miniBeamSpotCollection = std::make_unique<reco::BeamSpot>(
281 auto miniTriggerCollection = std::make_unique<edm::TriggerResults>();
283 auto miniRhoCollection = std::make_unique<double>();
284 auto miniLoosePhoton = std::make_unique<std::vector<Bool_t>>();
285 auto miniTightPhoton = std::make_unique<std::vector<Bool_t>>();
293 for (reco::PFJetCollection::const_iterator pfjetItr = pfjets.begin(); pfjetItr != pfjets.end(); pfjetItr++) {
294 miniPFjetCollection->push_back(*pfjetItr);
297 for (reco::PhotonCollection::const_iterator phoItr =
photon.begin(); phoItr !=
photon.end(); phoItr++) {
298 miniPhotonCollection->push_back(*phoItr);
301 for (reco::PFCandidateCollection::const_iterator pfcItr =
pfcand.begin(); pfcItr !=
pfcand.end(); pfcItr++) {
302 miniPFCandCollection->push_back(*pfcItr);
305 for (reco::VertexCollection::const_iterator vtxItr =
vtx.begin(); vtxItr !=
vtx.end(); vtxItr++) {
306 miniVtxCollection->push_back(*vtxItr);
309 for (reco::PFMETCollection::const_iterator pfmetItr = pfmet.begin(); pfmetItr != pfmet.end(); pfmetItr++) {
310 miniPFMETCollection->push_back(*pfmetItr);
315 hbheItr != Hithbhe.
end();
317 miniHBHECollection->push_back(*hbheItr);
321 hoItr != Hitho.
end();
323 miniHOCollection->push_back(*hoItr);
327 hfItr != Hithf.
end();
329 miniHFCollection->push_back(*hfItr);
332 for (reco::GsfElectronCollection::const_iterator gsfItr = gsfele.begin(); gsfItr != gsfele.end(); gsfItr++) {
333 miniGSFeleCollection->push_back(*gsfItr);
336 for (reco::ConversionCollection::const_iterator convItr =
conv.begin(); convItr !=
conv.end(); convItr++) {
337 miniConversionCollection->push_back(*convItr);
340 *miniTriggerCollection = trigres;
341 *miniRhoCollection = rho_val;
348 miniLoosePhoton->reserve(miniPhotonCollection->size());
349 miniTightPhoton->reserve(miniPhotonCollection->size());
350 for (
int iPho = 0; iPho <
int(miniPhotonCollection->size()); ++iPho) {
354 miniLoosePhoton->push_back(-1);
355 miniTightPhoton->push_back(-1);
357 miniLoosePhoton->push_back((*loosePhotonQual)[photonRef]);
358 miniTightPhoton->push_back((*tightPhotonQual)[photonRef]);