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());
141 if (ph.size() == 0)
return false;
143 for (reco::PFJetCollection::const_iterator itr=jt.begin();
144 itr!=jt.end(); ++itr) {
151 for (reco::PhotonCollection::const_iterator itr=ph.begin();
152 itr!=ph.end(); ++itr) {
240 const double rho_val = *(rh.
product());
285 std::auto_ptr<double> miniRhoCollection(
new double);
286 std::auto_ptr<std::vector<Bool_t> > miniLoosePhoton(
new std::vector<Bool_t>());
287 std::auto_ptr<std::vector<Bool_t> > miniTightPhoton(
new std::vector<Bool_t>());
296 for(reco::PFJetCollection::const_iterator pfjetItr=pfjets.begin();
297 pfjetItr!=pfjets.end(); pfjetItr++) {
298 miniPFjetCollection->push_back(*pfjetItr);
301 for(reco::PhotonCollection::const_iterator phoItr=photon.begin();
302 phoItr!=photon.end(); phoItr++) {
303 miniPhotonCollection->push_back(*phoItr);
306 for(reco::PFCandidateCollection::const_iterator pfcItr=pfcand.begin();
307 pfcItr!=pfcand.end(); pfcItr++) {
308 miniPFCandCollection->push_back(*pfcItr);
311 for(reco::VertexCollection::const_iterator vtxItr=vtx.begin();
312 vtxItr!=vtx.end(); vtxItr++) {
313 miniVtxCollection->push_back(*vtxItr);
316 for(reco::PFMETCollection::const_iterator pfmetItr=pfmet.begin();
317 pfmetItr!=pfmet.end(); pfmetItr++) {
318 miniPFMETCollection->push_back(*pfmetItr);
322 hbheItr!=Hithbhe.
end(); hbheItr++) {
323 miniHBHECollection->push_back(*hbheItr);
327 hoItr!=Hitho.
end(); hoItr++) {
328 miniHOCollection->push_back(*hoItr);
332 hfItr!=Hithf.
end(); hfItr++) {
333 miniHFCollection->push_back(*hfItr);
336 for(reco::GsfElectronCollection::const_iterator gsfItr=gsfele.begin();
337 gsfItr!=gsfele.end(); gsfItr++) {
338 miniGSFeleCollection->push_back(*gsfItr);
341 for(reco::ConversionCollection::const_iterator convItr=conv.begin();
342 convItr!=conv.end(); convItr++) {
343 miniConversionCollection->push_back(*convItr);
346 *miniTriggerCollection = trigres;
347 *miniRhoCollection = rho_val;
354 miniLoosePhoton->reserve(miniPhotonCollection->size());
355 miniTightPhoton->reserve(miniPhotonCollection->size());
356 for (
int iPho=0; iPho<int(miniPhotonCollection->size()); ++iPho) {
360 miniLoosePhoton->push_back(-1);
361 miniTightPhoton->push_back(-1);
364 miniLoosePhoton->push_back((*loosePhotonQual)[photonRef]);
365 miniTightPhoton->push_back((*tightPhotonQual)[photonRef]);
bool select(const reco::PhotonCollection &, const reco::PFJetCollection &)
T getParameter(std::string const &) const
edm::InputTag labelPFCandidate_
edm::EDGetTokenT< edm::SortedCollection< HBHERecHit, edm::StrictWeakOrdering< HBHERecHit > > > tok_HBHE_
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