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_);
113 produces<reco::PFJetCollection>(labelPFJet_.
encode());
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());
117 produces<edm::TriggerResults>(labelTrigger_.
encode());
118 produces<std::vector<Bool_t>>(labelLoosePhot_.
encode());
119 produces<std::vector<Bool_t>>(labelTightPhot_.
encode());
120 produces<double>(labelRho_.
encode());
121 produces<reco::PFCandidateCollection>(labelPFCandidate_.
encode());
122 produces<reco::VertexCollection>(labelVertex_.
encode());
123 produces<reco::PFMETCollection>(labelPFMET_.
encode());
124 produces<reco::GsfElectronCollection>(labelGsfEle_.
encode());
125 produces<reco::ConversionCollection>(labelConv_.
encode());
126 produces<reco::BeamSpot>(labelBeamSpot_.
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) {
239 const double rho_val = *(rh.
product());
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]);
bool select(const reco::PhotonCollection &, const reco::PFJetCollection &)
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
edm::InputTag labelPFCandidate_
static HepMC::IO_HEPEVT conv
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::InputTag labelLoosePhot_
void produce(edm::Event &, const edm::EventSetup &) override
edm::InputTag labelPFMET_
edm::InputTag labelPFJet_
std::vector< Vertex > VertexCollection
collection of Vertex objects
edm::EDGetTokenT< edm::ValueMap< Bool_t > > tok_tightPhoton_
edm::EDGetTokenT< reco::BeamSpot > tok_BS_
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
std::vector< GsfElectron > GsfElectronCollection
collection of GsfElectron objects
std::vector< Conversion > ConversionCollection
collectin of Conversion objects
edm::EDGetTokenT< edm::SortedCollection< HBHERecHit, edm::StrictWeakOrdering< HBHERecHit > > > tok_HBHE_
double dydz() const
dydz slope
#define DEFINE_FWK_MODULE(type)
AlCaGammaJetProducer(const edm::ParameterSet &)
edm::InputTag labelPhoton_
edm::InputTag labelGsfEle_
edm::EDGetTokenT< reco::VertexCollection > tok_Vertex_
double BeamWidthX() const
beam width X
edm::InputTag labelBeamSpot_
double dxdz() const
dxdz slope
const_iterator end() const
std::vector< reco::PFCandidate > PFCandidateCollection
collection of PFCandidates
edm::EDGetTokenT< edm::SortedCollection< HFRecHit, edm::StrictWeakOrdering< HFRecHit > > > tok_HF_
edm::EDGetTokenT< double > tok_Rho_
T const * product() const
edm::EDGetTokenT< reco::PFJetCollection > tok_PFJet_
edm::InputTag labelVertex_
std::vector< Photon > PhotonCollection
collectin of Photon objects
double sigmaZ() const
sigma z
~AlCaGammaJetProducer() override
edm::EDGetTokenT< reco::PFMETCollection > tok_PFMET_
edm::EDGetTokenT< reco::ConversionCollection > tok_Conv_
double covariance(int i, int j) const
(i,j)-th element of error matrix
edm::EDGetTokenT< edm::TriggerResults > tok_TrigRes_
std::vector< PFJet > PFJetCollection
collection of PFJet objects
std::vector< reco::PFMET > PFMETCollection
collection of PFMET objects
edm::EDGetTokenT< edm::SortedCollection< HORecHit, edm::StrictWeakOrdering< HORecHit > > > tok_HO_
edm::EDGetTokenT< reco::GsfElectronCollection > tok_GsfElec_
edm::InputTag labelTightPhot_
const Point & position() const
position
edm::EDGetTokenT< reco::PhotonCollection > tok_Photon_
edm::InputTag labelTrigger_
edm::EDGetTokenT< edm::ValueMap< Bool_t > > tok_loosePhoton_
edm::EDGetTokenT< reco::PFCandidateCollection > tok_PFCand_
const_iterator begin() const
BeamType type() const
return beam type