54 edm::InputTag labelPhoton_,
labelPFJet_,
labelHBHE_,
labelHF_,
labelHO_,
labelTrigger_,
labelPFCandidate_,
labelVertex_,
labelPFMET_,
labelGsfEle_,
labelRho_,
labelConv_,
labelBeamSpot_,
labelLoosePhot_,
labelTightPhot_;
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());
140 if (jt.size()<1)
return false;
141 if (ph.size()<1)
return false;
229 const double rho_val = *(rh.
product());
274 std::auto_ptr<double> miniRhoCollection(
new double);
275 std::auto_ptr<std::vector<Bool_t> > miniLoosePhoton(
new std::vector<Bool_t>());
276 std::auto_ptr<std::vector<Bool_t> > miniTightPhoton(
new std::vector<Bool_t>());
284 for(reco::PFJetCollection::const_iterator pfjetItr=pfjets.begin();
285 pfjetItr!=pfjets.end(); pfjetItr++) {
286 miniPFjetCollection->push_back(*pfjetItr);
289 for(reco::PhotonCollection::const_iterator phoItr=photon.begin();
290 phoItr!=photon.end(); phoItr++) {
291 miniPhotonCollection->push_back(*phoItr);
294 for(reco::PFCandidateCollection::const_iterator pfcItr=pfcand.begin();
295 pfcItr!=pfcand.end(); pfcItr++) {
296 miniPFCandCollection->push_back(*pfcItr);
299 for(reco::VertexCollection::const_iterator vtxItr=vtx.begin();
300 vtxItr!=vtx.end(); vtxItr++) {
301 miniVtxCollection->push_back(*vtxItr);
304 for(reco::PFMETCollection::const_iterator pfmetItr=pfmet.begin();
305 pfmetItr!=pfmet.end(); pfmetItr++) {
306 miniPFMETCollection->push_back(*pfmetItr);
310 hbheItr!=Hithbhe.
end(); hbheItr++) {
311 miniHBHECollection->push_back(*hbheItr);
315 hoItr!=Hitho.
end(); hoItr++) {
316 miniHOCollection->push_back(*hoItr);
320 hfItr!=Hithf.
end(); hfItr++) {
321 miniHFCollection->push_back(*hfItr);
324 for(reco::GsfElectronCollection::const_iterator gsfItr=gsfele.begin();
325 gsfItr!=gsfele.end(); gsfItr++) {
326 miniGSFeleCollection->push_back(*gsfItr);
329 for(reco::ConversionCollection::const_iterator convItr=conv.begin();
330 convItr!=conv.end(); convItr++) {
331 miniConversionCollection->push_back(*convItr);
334 *miniTriggerCollection = trigres;
335 *miniRhoCollection = rho_val;
342 miniLoosePhoton->reserve(miniPhotonCollection->size());
343 miniTightPhoton->reserve(miniPhotonCollection->size());
344 for (
int iPho=0; iPho<int(miniPhotonCollection->size()); ++iPho) {
348 miniLoosePhoton->push_back(-1);
349 miniTightPhoton->push_back(-1);
352 miniLoosePhoton->push_back((*loosePhotonQual)[photonRef]);
353 miniTightPhoton->push_back((*tightPhotonQual)[photonRef]);
T getParameter(std::string const &) const
edm::InputTag labelPFCandidate_
edm::EDGetTokenT< edm::SortedCollection< HBHERecHit, edm::StrictWeakOrdering< HBHERecHit > > > tok_HBHE_
bool select(reco::PhotonCollection, reco::PFJetCollection)
static HepMC::IO_HEPEVT conv
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
edm::InputTag labelLoosePhot_
edm::InputTag labelPFMET_
virtual void produce(edm::Event &, const edm::EventSetup &)
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< HORecHit, edm::StrictWeakOrdering< HORecHit > > > tok_HO_
double dydz() const
dydz slope
AlCaGammaJetProducer(const edm::ParameterSet &)
edm::InputTag labelPhoton_
edm::InputTag labelGsfEle_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
edm::EDGetTokenT< edm::SortedCollection< HFRecHit, edm::StrictWeakOrdering< HFRecHit > > > tok_HF_
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< 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
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< 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