CMS 3D CMS Logo

PATPhotonProducer.cc
Go to the documentation of this file.
1 //
2 //
3 
9 
15 
18 
22 
24 
25 #include "TVector2.h"
27 
28 #include <memory>
29 
30 using namespace pat;
31 
33  : isolator_(iConfig.exists("userIsolation") ? iConfig.getParameter<edm::ParameterSet>("userIsolation")
34  : edm::ParameterSet(),
35  consumesCollector(),
36  false),
37  useUserData_(iConfig.exists("userData")) {
38  // initialize the configurables
39  photonToken_ = consumes<edm::View<reco::Photon>>(iConfig.getParameter<edm::InputTag>("photonSource"));
40  electronToken_ = consumes<reco::GsfElectronCollection>(iConfig.getParameter<edm::InputTag>("electronSource"));
41  hConversionsToken_ = consumes<reco::ConversionCollection>(iConfig.getParameter<edm::InputTag>("conversionSource"));
42  beamLineToken_ = consumes<reco::BeamSpot>(iConfig.getParameter<edm::InputTag>("beamLineSrc"));
43  embedSuperCluster_ = iConfig.getParameter<bool>("embedSuperCluster");
44  embedSeedCluster_ = iConfig.getParameter<bool>("embedSeedCluster");
45  embedBasicClusters_ = iConfig.getParameter<bool>("embedBasicClusters");
46  embedPreshowerClusters_ = iConfig.getParameter<bool>("embedPreshowerClusters");
47  embedRecHits_ = iConfig.getParameter<bool>("embedRecHits");
48  reducedBarrelRecHitCollection_ = iConfig.getParameter<edm::InputTag>("reducedBarrelRecHitCollection");
49  reducedBarrelRecHitCollectionToken_ = mayConsume<EcalRecHitCollection>(reducedBarrelRecHitCollection_);
50  reducedEndcapRecHitCollection_ = iConfig.getParameter<edm::InputTag>("reducedEndcapRecHitCollection");
51  reducedEndcapRecHitCollectionToken_ = mayConsume<EcalRecHitCollection>(reducedEndcapRecHitCollection_);
52  // MC matching configurables
53  addGenMatch_ = iConfig.getParameter<bool>("addGenMatch");
54  if (addGenMatch_) {
55  embedGenMatch_ = iConfig.getParameter<bool>("embedGenMatch");
56  if (iConfig.existsAs<edm::InputTag>("genParticleMatch")) {
58  iConfig.getParameter<edm::InputTag>("genParticleMatch")));
59  } else {
61  iConfig.getParameter<std::vector<edm::InputTag>>("genParticleMatch"),
62  [this](edm::InputTag const &tag) { return consumes<edm::Association<reco::GenParticleCollection>>(tag); });
63  }
64  }
65  // Efficiency configurables
66  addEfficiencies_ = iConfig.getParameter<bool>("addEfficiencies");
67  if (addEfficiencies_) {
69  pat::helper::EfficiencyLoader(iConfig.getParameter<edm::ParameterSet>("efficiencies"), consumesCollector());
70  }
71  // PFCluster Isolation maps
72  addPuppiIsolation_ = iConfig.getParameter<bool>("addPuppiIsolation");
73  if (addPuppiIsolation_) {
75  consumes<edm::ValueMap<float>>(iConfig.getParameter<edm::InputTag>("puppiIsolationChargedHadrons"));
77  consumes<edm::ValueMap<float>>(iConfig.getParameter<edm::InputTag>("puppiIsolationNeutralHadrons"));
79  consumes<edm::ValueMap<float>>(iConfig.getParameter<edm::InputTag>("puppiIsolationPhotons"));
80  }
81  addPFClusterIso_ = iConfig.getParameter<bool>("addPFClusterIso");
82  if (addPFClusterIso_) {
83  ecalPFClusterIsoT_ = consumes<edm::ValueMap<float>>(iConfig.getParameter<edm::InputTag>("ecalPFClusterIsoMap"));
84  auto hcPFC = iConfig.getParameter<edm::InputTag>("hcalPFClusterIsoMap");
85  if (not hcPFC.label().empty())
86  hcalPFClusterIsoT_ = consumes<edm::ValueMap<float>>(hcPFC);
87  }
88 
89  // photon ID configurables
90  addPhotonID_ = iConfig.getParameter<bool>("addPhotonID");
91  if (addPhotonID_) {
92  // it might be a single photon ID
93  if (iConfig.existsAs<edm::InputTag>("photonIDSource")) {
94  photIDSrcs_.push_back(NameTag("", iConfig.getParameter<edm::InputTag>("photonIDSource")));
95  }
96  // or there might be many of them
97  if (iConfig.existsAs<edm::ParameterSet>("photonIDSources")) {
98  // please don't configure me twice
99  if (!photIDSrcs_.empty()) {
100  throw cms::Exception("Configuration")
101  << "PATPhotonProducer: you can't specify both 'photonIDSource' and 'photonIDSources'\n";
102  }
103  // read the different photon ID names
104  edm::ParameterSet idps = iConfig.getParameter<edm::ParameterSet>("photonIDSources");
105  std::vector<std::string> names = idps.getParameterNamesForType<edm::InputTag>();
106  for (std::vector<std::string>::const_iterator it = names.begin(), ed = names.end(); it != ed; ++it) {
107  photIDSrcs_.push_back(NameTag(*it, idps.getParameter<edm::InputTag>(*it)));
108  }
109  }
110  // but in any case at least once
111  if (photIDSrcs_.empty())
112  throw cms::Exception("Configuration") << "PATPhotonProducer: id addPhotonID is true, you must specify either:\n"
113  << "\tInputTag photonIDSource = <someTag>\n"
114  << "or\n"
115  << "\tPSet photonIDSources = { \n"
116  << "\t\tInputTag <someName> = <someTag> // as many as you want \n "
117  << "\t}\n";
118  }
120  photIDSrcs_, [this](NameTag const &tag) { return mayConsume<edm::ValueMap<Bool_t>>(tag.second); });
121  // Resolution configurables
122  addResolutions_ = iConfig.getParameter<bool>("addResolutions");
123  if (addResolutions_) {
125  }
126  // Check to see if the user wants to add user data
127  if (useUserData_) {
129  PATUserDataHelper<Photon>(iConfig.getParameter<edm::ParameterSet>("userData"), consumesCollector());
130  }
131  // produces vector of photons
132  produces<std::vector<Photon>>();
133 
134  // read isoDeposit labels, for direct embedding
135  readIsolationLabels(iConfig, "isoDeposits", isoDepositLabels_, isoDepositTokens_);
136  // read isolation value labels, for direct embedding
138 
139  saveRegressionData_ = iConfig.getParameter<bool>("saveRegressionData");
140 }
141 
143 
145  // switch off embedding (in unschedules mode)
146  if (iEvent.isRealData()) {
147  addGenMatch_ = false;
148  embedGenMatch_ = false;
149  }
150 
151  edm::ESHandle<CaloTopology> theCaloTopology;
152  iSetup.get<CaloTopologyRecord>().get(theCaloTopology);
153  ecalTopology_ = &(*theCaloTopology);
154 
155  edm::ESHandle<CaloGeometry> theCaloGeometry;
156  iSetup.get<CaloGeometryRecord>().get(theCaloGeometry);
157  ecalGeometry_ = &(*theCaloGeometry);
158 
159  // Get the vector of Photon's from the event
161  iEvent.getByToken(photonToken_, photons);
162 
163  // for conversion veto selection
165  iEvent.getByToken(hConversionsToken_, hConversions);
166 
167  // Get the collection of electrons from the event
169  iEvent.getByToken(electronToken_, hElectrons);
170 
171  // Get the beamspot
172  edm::Handle<reco::BeamSpot> beamSpotHandle;
173  iEvent.getByToken(beamLineToken_, beamSpotHandle);
174 
175  EcalClusterLazyTools lazyTools(
177 
178  // prepare the MC matching
179  std::vector<edm::Handle<edm::Association<reco::GenParticleCollection>>> genMatches(genMatchTokens_.size());
180  if (addGenMatch_) {
181  for (size_t j = 0, nd = genMatchTokens_.size(); j < nd; ++j) {
182  iEvent.getByToken(genMatchTokens_[j], genMatches[j]);
183  }
184  }
185 
186  if (isolator_.enabled())
187  isolator_.beginEvent(iEvent, iSetup);
188 
193 
195  for (size_t j = 0, nd = isoDepositTokens_.size(); j < nd; ++j) {
196  iEvent.getByToken(isoDepositTokens_[j], deposits[j]);
197  }
198 
200  for (size_t j = 0; j < isolationValueTokens_.size(); ++j) {
202  }
203 
204  // prepare ID extraction
205  std::vector<edm::Handle<edm::ValueMap<Bool_t>>> idhandles;
206  std::vector<pat::Photon::IdPair> ids;
207  if (addPhotonID_) {
208  idhandles.resize(photIDSrcs_.size());
209  ids.resize(photIDSrcs_.size());
210  for (size_t i = 0; i < photIDSrcs_.size(); ++i) {
211  iEvent.getByToken(photIDTokens_[i], idhandles[i]);
212  ids[i].first = photIDSrcs_[i].first;
213  }
214  }
215 
216  //value maps for puppi isolation
217  edm::Handle<edm::ValueMap<float>> PUPPIIsolation_charged_hadrons;
218  edm::Handle<edm::ValueMap<float>> PUPPIIsolation_neutral_hadrons;
219  edm::Handle<edm::ValueMap<float>> PUPPIIsolation_photons;
220  if (addPuppiIsolation_) {
221  iEvent.getByToken(PUPPIIsolation_charged_hadrons_, PUPPIIsolation_charged_hadrons);
222  iEvent.getByToken(PUPPIIsolation_neutral_hadrons_, PUPPIIsolation_neutral_hadrons);
223  iEvent.getByToken(PUPPIIsolation_photons_, PUPPIIsolation_photons);
224  }
225 
226  // loop over photons
227  std::vector<Photon> *PATPhotons = new std::vector<Photon>();
228  for (edm::View<reco::Photon>::const_iterator itPhoton = photons->begin(); itPhoton != photons->end(); itPhoton++) {
229  // construct the Photon from the ref -> save ref to original object
230  unsigned int idx = itPhoton - photons->begin();
231  edm::RefToBase<reco::Photon> photonRef = photons->refAt(idx);
232  edm::Ptr<reco::Photon> photonPtr = photons->ptrAt(idx);
233  Photon aPhoton(photonRef);
234  auto phoPtr = photons->ptrAt(idx);
235  if (embedSuperCluster_)
236  aPhoton.embedSuperCluster();
237  if (embedSeedCluster_)
238  aPhoton.embedSeedCluster();
240  aPhoton.embedBasicClusters();
242  aPhoton.embedPreshowerClusters();
243 
244  std::vector<DetId> selectedCells;
245  bool barrel = itPhoton->isEB();
246  //loop over sub clusters
247  if (embedBasicClusters_) {
248  for (reco::CaloCluster_iterator clusIt = itPhoton->superCluster()->clustersBegin();
249  clusIt != itPhoton->superCluster()->clustersEnd();
250  ++clusIt) {
251  //get seed (max energy xtal)
252  DetId seed = lazyTools.getMaximum(**clusIt).first;
253  //get all xtals in 5x5 window around the seed
254  std::vector<DetId> dets5x5 =
257  selectedCells.insert(selectedCells.end(), dets5x5.begin(), dets5x5.end());
258 
259  //get all xtals belonging to cluster
260  for (const std::pair<DetId, float> &hit : (*clusIt)->hitsAndFractions()) {
261  selectedCells.push_back(hit.first);
262  }
263  }
264  }
265 
266  //remove duplicates
267  std::sort(selectedCells.begin(), selectedCells.end());
268  std::unique(selectedCells.begin(), selectedCells.end());
269 
270  // Retrieve the corresponding RecHits
271 
272  edm::Handle<EcalRecHitCollection> recHitsEBHandle;
273  iEvent.getByToken(reducedBarrelRecHitCollectionToken_, recHitsEBHandle);
274  edm::Handle<EcalRecHitCollection> recHitsEEHandle;
275  iEvent.getByToken(reducedEndcapRecHitCollectionToken_, recHitsEEHandle);
276 
277  //orginal code would throw an exception via the handle not being valid but now it'll just have a null pointer error
278  //should have little effect, if its not barrel or endcap, something very bad has happened elsewhere anyways
279  const EcalRecHitCollection *recHits = nullptr;
280  if (photonRef->superCluster()->seed()->hitsAndFractions().at(0).first.subdetId() == EcalBarrel)
281  recHits = recHitsEBHandle.product();
282  else if (photonRef->superCluster()->seed()->hitsAndFractions().at(0).first.subdetId() == EcalEndcap)
283  recHits = recHitsEEHandle.product();
284 
285  EcalRecHitCollection selectedRecHits;
286 
287  unsigned nSelectedCells = selectedCells.size();
288  for (unsigned icell = 0; icell < nSelectedCells; ++icell) {
289  EcalRecHitCollection::const_iterator it = recHits->find(selectedCells[icell]);
290  if (it != recHits->end()) {
291  selectedRecHits.push_back(*it);
292  }
293  }
294  selectedRecHits.sort();
295  if (embedRecHits_)
296  aPhoton.embedRecHits(&selectedRecHits);
297 
298  // store the match to the generated final state muons
299  if (addGenMatch_) {
300  for (size_t i = 0, n = genMatches.size(); i < n; ++i) {
301  reco::GenParticleRef genPhoton = (*genMatches[i])[photonRef];
302  aPhoton.addGenParticleRef(genPhoton);
303  }
304  if (embedGenMatch_)
305  aPhoton.embedGenParticle();
306  }
307 
308  if (efficiencyLoader_.enabled()) {
309  efficiencyLoader_.setEfficiencies(aPhoton, photonRef);
310  }
311 
312  if (resolutionLoader_.enabled()) {
314  }
315 
316  // here comes the extra functionality
317  if (isolator_.enabled()) {
319  typedef pat::helper::MultiIsolator::IsolationValuePairs IsolationValuePairs;
320  // better to loop backwards, so the vector is resized less times
321  for (IsolationValuePairs::const_reverse_iterator it = isolatorTmpStorage_.rbegin(),
322  ed = isolatorTmpStorage_.rend();
323  it != ed;
324  ++it) {
325  aPhoton.setIsolation(it->first, it->second);
326  }
327  }
328 
329  for (size_t j = 0, nd = deposits.size(); j < nd; ++j) {
330  aPhoton.setIsoDeposit(isoDepositLabels_[j].first, (*deposits[j])[photonRef]);
331  }
332 
333  for (size_t j = 0; j < isolationValues.size(); ++j) {
334  aPhoton.setIsolation(isolationValueLabels_[j].first, (*isolationValues[j])[photonRef]);
335  }
336 
337  // add photon ID info
338  if (addPhotonID_) {
339  for (size_t i = 0; i < photIDSrcs_.size(); ++i) {
340  ids[i].second = (*idhandles[i])[photonRef];
341  }
342  aPhoton.setPhotonIDs(ids);
343  }
344 
345  if (useUserData_) {
346  userDataHelper_.add(aPhoton, iEvent, iSetup);
347  }
348 
349  // set conversion veto selection
350  bool passelectronveto = false;
351  if (hConversions.isValid()) {
352  // this is recommended method
353  passelectronveto = !ConversionTools::hasMatchedPromptElectron(
354  photonRef->superCluster(), *hElectrons, *hConversions, beamSpotHandle->position());
355  }
356  aPhoton.setPassElectronVeto(passelectronveto);
357 
358  // set electron veto using pixel seed (not recommended but many analysis groups are still using since it is powerful method to remove electrons)
359  aPhoton.setHasPixelSeed(photonRef->hasPixelSeed());
360 
361  // set seed energy
362  aPhoton.setSeedEnergy(photonRef->superCluster()->seed()->energy());
363 
364  // set input variables for regression energy correction
365  if (saveRegressionData_) {
366  EcalRegressionData ecalRegData;
367  ecalRegData.fill(*(photonRef->superCluster()),
368  recHitsEBHandle.product(),
369  recHitsEEHandle.product(),
372  -1);
373 
374  aPhoton.setEMax(ecalRegData.eMax());
375  aPhoton.setE2nd(ecalRegData.e2nd());
376  aPhoton.setE3x3(ecalRegData.e3x3());
377  aPhoton.setETop(ecalRegData.eTop());
378  aPhoton.setEBottom(ecalRegData.eBottom());
379  aPhoton.setELeft(ecalRegData.eLeft());
380  aPhoton.setERight(ecalRegData.eRight());
381  aPhoton.setSee(ecalRegData.sigmaIEtaIEta());
382  aPhoton.setSep(
383  ecalRegData.sigmaIEtaIPhi() * ecalRegData.sigmaIEtaIEta() *
384  ecalRegData
385  .sigmaIPhiIPhi()); //there is a conflict on what sigmaIEtaIPhi actually is, regression and ID have it differently, this may change in later releases
386  aPhoton.setSpp(ecalRegData.sigmaIPhiIPhi());
387 
388  aPhoton.setMaxDR(ecalRegData.maxSubClusDR());
389  aPhoton.setMaxDRDPhi(ecalRegData.maxSubClusDRDPhi());
390  aPhoton.setMaxDRDEta(ecalRegData.maxSubClusDRDEta());
391  aPhoton.setMaxDRRawEnergy(ecalRegData.maxSubClusDRRawEnergy());
401 
402  aPhoton.setCryPhi(ecalRegData.seedCrysPhiOrY());
403  aPhoton.setCryEta(ecalRegData.seedCrysEtaOrX());
404  aPhoton.setIEta(ecalRegData.seedCrysIEtaOrIX());
405  aPhoton.setIPhi(ecalRegData.seedCrysIPhiOrIY());
406  } else {
407  aPhoton.setEMax(0);
408  aPhoton.setE2nd(0);
409  aPhoton.setE3x3(0);
410  aPhoton.setETop(0);
411  aPhoton.setEBottom(0);
412  aPhoton.setELeft(0);
413  aPhoton.setERight(0);
414  aPhoton.setSee(0);
415  aPhoton.setSep(0);
416  aPhoton.setSpp(0);
417 
418  aPhoton.setMaxDR(0);
419  aPhoton.setMaxDRDPhi(0);
420  aPhoton.setMaxDRDEta(0);
421  aPhoton.setMaxDRRawEnergy(0);
422  aPhoton.setSubClusRawE1(0);
423  aPhoton.setSubClusRawE2(0);
424  aPhoton.setSubClusRawE3(0);
425  aPhoton.setSubClusDPhi1(0);
426  aPhoton.setSubClusDPhi2(0);
427  aPhoton.setSubClusDPhi3(0);
428  aPhoton.setSubClusDEta1(0);
429  aPhoton.setSubClusDEta2(0);
430  aPhoton.setSubClusDEta3(0);
431 
432  aPhoton.setCryPhi(0);
433  aPhoton.setCryEta(0);
434  aPhoton.setIEta(0);
435  aPhoton.setIPhi(0);
436  }
437 
438  if (addPuppiIsolation_)
439  aPhoton.setIsolationPUPPI((*PUPPIIsolation_charged_hadrons)[phoPtr],
440  (*PUPPIIsolation_neutral_hadrons)[phoPtr],
441  (*PUPPIIsolation_photons)[phoPtr]);
442  else
443  aPhoton.setIsolationPUPPI(-999., -999., -999.);
444 
445  // Get PFCluster Isolation
446  if (addPFClusterIso_) {
448  edm::Handle<edm::ValueMap<float>> ecalPFClusterIsoMapH;
449  iEvent.getByToken(ecalPFClusterIsoT_, ecalPFClusterIsoMapH);
450  newPFIsol.sumEcalClusterEt = (*ecalPFClusterIsoMapH)[photonRef];
451  edm::Handle<edm::ValueMap<float>> hcalPFClusterIsoMapH;
453  iEvent.getByToken(hcalPFClusterIsoT_, hcalPFClusterIsoMapH);
454  newPFIsol.sumHcalClusterEt = (*hcalPFClusterIsoMapH)[photonRef];
455  } else {
456  newPFIsol.sumHcalClusterEt = -999.;
457  }
458  aPhoton.setPflowIsolationVariables(newPFIsol);
459  }
460 
461  // add the Photon to the vector of Photons
462  PATPhotons->push_back(aPhoton);
463  }
464 
465  // sort Photons in ET
466  std::sort(PATPhotons->begin(), PATPhotons->end(), eTComparator_);
467 
468  // put genEvt object in Event
469  std::unique_ptr<std::vector<Photon>> myPhotons(PATPhotons);
470  iEvent.put(std::move(myPhotons));
471  if (isolator_.enabled())
473 }
474 
475 // ParameterSet description for module
478  iDesc.setComment("PAT photon producer module");
479 
480  // input source
481  iDesc.add<edm::InputTag>("photonSource", edm::InputTag("no default"))->setComment("input collection");
482  iDesc.add<edm::InputTag>("electronSource", edm::InputTag("no default"))->setComment("input collection");
483  iDesc.add<edm::InputTag>("conversionSource", edm::InputTag("allConversions"))->setComment("input collection");
484 
485  iDesc.add<edm::InputTag>("reducedBarrelRecHitCollection", edm::InputTag("reducedEcalRecHitsEB"));
486  iDesc.add<edm::InputTag>("reducedEndcapRecHitCollection", edm::InputTag("reducedEcalRecHitsEE"));
487 
488  iDesc.ifValue(
489  edm::ParameterDescription<bool>("addPFClusterIso", false, true),
491  "ecalPFClusterIsoMap", edm::InputTag("photonEcalPFClusterIsolationProducer"), true) and
493  "hcalPFClusterIsoMap", edm::InputTag("photonHcalPFClusterIsolationProducer"), true)) or
494  false >> (edm::ParameterDescription<edm::InputTag>("ecalPFClusterIsoMap", edm::InputTag(""), true) and
495  edm::ParameterDescription<edm::InputTag>("hcalPFClusterIsoMap", edm::InputTag(""), true)));
496 
497  iDesc.ifValue(
498  edm::ParameterDescription<bool>("addPuppiIsolation", false, true),
500  "puppiIsolationChargedHadrons", edm::InputTag("egmPhotonPUPPIIsolation", "h+-DR030-"), true) and
502  "puppiIsolationNeutralHadrons", edm::InputTag("egmPhotonPUPPIIsolation", "h0-DR030-"), true) and
504  "puppiIsolationPhotons", edm::InputTag("egmPhotonPUPPIIsolation", "gamma-DR030-"), true)) or
505  false >> edm::EmptyGroupDescription());
506 
507  iDesc.add<bool>("embedSuperCluster", true)->setComment("embed external super cluster");
508  iDesc.add<bool>("embedSeedCluster", true)->setComment("embed external seed cluster");
509  iDesc.add<bool>("embedBasicClusters", true)->setComment("embed external basic clusters");
510  iDesc.add<bool>("embedPreshowerClusters", true)->setComment("embed external preshower clusters");
511  iDesc.add<bool>("embedRecHits", true)->setComment("embed external RecHits");
512 
513  // MC matching configurables
514  iDesc.add<bool>("addGenMatch", true)->setComment("add MC matching");
515  iDesc.add<bool>("embedGenMatch", false)->setComment("embed MC matched MC information");
516  std::vector<edm::InputTag> emptySourceVector;
517  iDesc
518  .addNode(edm::ParameterDescription<edm::InputTag>("genParticleMatch", edm::InputTag(), true) xor
519  edm::ParameterDescription<std::vector<edm::InputTag>>("genParticleMatch", emptySourceVector, true))
520  ->setComment("input with MC match information");
521 
523 
524  // photon ID configurables
525  iDesc.add<bool>("addPhotonID", true)->setComment("add photon ID variables");
526  edm::ParameterSetDescription photonIDSourcesPSet;
527  photonIDSourcesPSet.setAllowAnything();
528  iDesc
529  .addNode(edm::ParameterDescription<edm::InputTag>("photonIDSource", edm::InputTag(), true) xor
530  edm::ParameterDescription<edm::ParameterSetDescription>("photonIDSources", photonIDSourcesPSet, true))
531  ->setComment("input with photon ID variables");
532 
533  // IsoDeposit configurables
534  edm::ParameterSetDescription isoDepositsPSet;
535  isoDepositsPSet.addOptional<edm::InputTag>("tracker");
536  isoDepositsPSet.addOptional<edm::InputTag>("ecal");
537  isoDepositsPSet.addOptional<edm::InputTag>("hcal");
538  isoDepositsPSet.addOptional<edm::InputTag>("pfAllParticles");
539  isoDepositsPSet.addOptional<edm::InputTag>("pfChargedHadrons");
540  isoDepositsPSet.addOptional<edm::InputTag>("pfChargedAll");
541  isoDepositsPSet.addOptional<edm::InputTag>("pfPUChargedHadrons");
542  isoDepositsPSet.addOptional<edm::InputTag>("pfNeutralHadrons");
543  isoDepositsPSet.addOptional<edm::InputTag>("pfPhotons");
544  isoDepositsPSet.addOptional<std::vector<edm::InputTag>>("user");
545  iDesc.addOptional("isoDeposits", isoDepositsPSet);
546 
547  // isolation values configurables
548  edm::ParameterSetDescription isolationValuesPSet;
549  isolationValuesPSet.addOptional<edm::InputTag>("tracker");
550  isolationValuesPSet.addOptional<edm::InputTag>("ecal");
551  isolationValuesPSet.addOptional<edm::InputTag>("hcal");
552  isolationValuesPSet.addOptional<edm::InputTag>("pfAllParticles");
553  isolationValuesPSet.addOptional<edm::InputTag>("pfChargedHadrons");
554  isolationValuesPSet.addOptional<edm::InputTag>("pfChargedAll");
555  isolationValuesPSet.addOptional<edm::InputTag>("pfPUChargedHadrons");
556  isolationValuesPSet.addOptional<edm::InputTag>("pfNeutralHadrons");
557  isolationValuesPSet.addOptional<edm::InputTag>("pfPhotons");
558  isolationValuesPSet.addOptional<std::vector<edm::InputTag>>("user");
559  iDesc.addOptional("isolationValues", isolationValuesPSet);
560 
561  // Efficiency configurables
562  edm::ParameterSetDescription efficienciesPSet;
563  efficienciesPSet.setAllowAnything(); // TODO: the pat helper needs to implement a description.
564  iDesc.add("efficiencies", efficienciesPSet);
565  iDesc.add<bool>("addEfficiencies", false);
566 
567  // Check to see if the user wants to add user data
568  edm::ParameterSetDescription userDataPSet;
570  iDesc.addOptional("userData", userDataPSet);
571 
572  edm::ParameterSetDescription isolationPSet;
573  isolationPSet.setAllowAnything(); // TODO: the pat helper needs to implement a description.
574  iDesc.add("userIsolation", isolationPSet);
575 
576  iDesc.addNode(edm::ParameterDescription<edm::InputTag>("beamLineSrc", edm::InputTag(), true))
577  ->setComment("input with high level selection");
578 
579  iDesc.add<bool>("saveRegressionData", true)->setComment("save regression input variables");
580 
581  descriptions.add("PATPhotonProducer", iDesc);
582 }
583 
585 
pat::Photon::setSubClusDPhi3
void setSubClusDPhi3(float s)
Definition: Photon.h:291
ConfigurationDescriptions.h
EcalRegressionData::seedCrysIPhiOrIY
float seedCrysIPhiOrIY() const
Definition: EcalRegressionData.h:51
pat::PATPhotonProducer::electronToken_
edm::EDGetTokenT< reco::GsfElectronCollection > electronToken_
Definition: PATPhotonProducer.h:62
EcalRegressionData::eTop
float eTop() const
Definition: EcalRegressionData.h:40
pat::PATPhotonProducer::isolator_
pat::helper::MultiIsolator isolator_
Definition: PATPhotonProducer.h:94
pat::PATPhotonProducer::saveRegressionData_
bool saveRegressionData_
Definition: PATPhotonProducer.h:131
pat::Photon::setMaxDRRawEnergy
void setMaxDRRawEnergy(float m)
Definition: Photon.h:277
pat::PATUserDataHelper
Assists in assimilating all pat::UserData into pat objects.
Definition: PATUserDataHelper.h:49
edm::SortedCollection::sort
void sort()
Definition: SortedCollection.h:302
mps_fire.i
i
Definition: mps_fire.py:355
edm::ParameterSetDescription::add
ParameterDescriptionBase * add(U const &iLabel, T const &value)
Definition: ParameterSetDescription.h:95
edm::SortedCollection< EcalRecHit >::const_iterator
std::vector< EcalRecHit >::const_iterator const_iterator
Definition: SortedCollection.h:80
pat::PATPhotonProducer::useUserData_
bool useUserData_
Definition: PATPhotonProducer.h:121
Reference_intrackfit_cff.barrel
list barrel
Definition: Reference_intrackfit_cff.py:37
reco::Photon::superCluster
reco::SuperClusterRef superCluster() const override
Ref to SuperCluster.
EcalRegressionData::sigmaIEtaIEta
float sigmaIEtaIEta() const
Definition: EcalRegressionData.h:44
MessageLogger.h
pat::Photon::setEBottom
void setEBottom(float e)
Definition: Photon.h:257
EcalRegressionData::eRight
float eRight() const
Definition: EcalRegressionData.h:43
funct::false
false
Definition: Factorize.h:34
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
pat::PATPhotonProducer::embedBasicClusters_
bool embedBasicClusters_
Definition: PATPhotonProducer.h:68
edm::Handle::product
T const * product() const
Definition: Handle.h:70
electronProducer_cff.isolationValues
isolationValues
Definition: electronProducer_cff.py:26
pat::Photon::setSpp
void setSpp(float s)
Definition: Photon.h:266
pat::Photon::setMaxDRDPhi
void setMaxDRDPhi(float m)
Definition: Photon.h:273
ConversionTools.h
pat::Photon::setSubClusDPhi2
void setSubClusDPhi2(float s)
Definition: Photon.h:289
pat::PATPhotonProducer::reducedEndcapRecHitCollectionToken_
edm::EDGetTokenT< EcalRecHitCollection > reducedEndcapRecHitCollectionToken_
Definition: PATPhotonProducer.h:75
EcalRegressionData::seedCrysPhiOrY
float seedCrysPhiOrY() const
Definition: EcalRegressionData.h:48
EcalRegressionData::maxSubClusDRRawEnergy
float maxSubClusDRRawEnergy() const
Definition: EcalRegressionData.h:55
pat::Photon::setIsoDeposit
void setIsoDeposit(IsolationKeys key, const IsoDeposit &dep)
Sets the IsoDeposit associated with some key; if it is already existent, it is overwritten.
Definition: Photon.h:217
pat::helper::EfficiencyLoader
Definition: EfficiencyLoader.h:16
CaloGeometryRecord
Definition: CaloGeometryRecord.h:30
pat::Photon::setIEta
void setIEta(float i)
Definition: Photon.h:308
pat::helper::MultiIsolator::fill
void fill(const edm::View< T > &coll, int idx, IsolationValuePairs &isolations) const
Definition: MultiIsolator.h:84
edm
HLT enums.
Definition: AlignableModifier.h:19
pat::PATUserDataHelper::fillDescription
static void fillDescription(edm::ParameterSetDescription &iDesc)
Definition: PATUserDataHelper.h:135
ConversionTools::hasMatchedPromptElectron
static bool hasMatchedPromptElectron(const reco::SuperClusterRef &sc, const reco::GsfElectronCollection &eleCol, const reco::ConversionCollection &convCol, const math::XYZPoint &beamspot, bool allowCkfMatch=true, float lxyMin=2.0, float probMin=1e-6, unsigned int nHitsBeforeVtxMax=0)
Definition: ConversionTools.cc:392
pat::Photon::embedSuperCluster
void embedSuperCluster()
method to store the photon's supercluster internally
pat::Photon::setSubClusRawE1
void setSubClusRawE1(float s)
Definition: Photon.h:280
pat::PATPhotonProducer::photonToken_
edm::EDGetTokenT< edm::View< reco::Photon > > photonToken_
Definition: PATPhotonProducer.h:61
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
pat::Photon::setMaxDR
void setMaxDR(float m)
Definition: Photon.h:271
pat::Photon::setHasPixelSeed
void setHasPixelSeed(bool flag)
Definition: Photon.h:242
pat::helper::EfficiencyLoader::enabled
bool enabled() const
'true' if this there is at least one efficiency configured
Definition: EfficiencyLoader.h:25
edm::PtrVectorItr
Definition: PtrVector.h:51
edm::SortedCollection< EcalRecHit >
edm::SortedCollection::size
size_type size() const
Definition: SortedCollection.h:215
pat::PATObject::addGenParticleRef
void addGenParticleRef(const reco::GenParticleRef &ref)
Definition: PATObject.h:756
EcalRegressionData
Definition: EcalRegressionData.h:17
EmptyGroupDescription.h
pat::PATPhotonProducer::embedPreshowerClusters_
bool embedPreshowerClusters_
Definition: PATPhotonProducer.h:69
EcalClusterLazyTools.h
CaloTopologyRecord
Definition: CaloTopologyRecord.h:10
edm::ParameterSet::existsAs
bool existsAs(std::string const &parameterName, bool trackiness=true) const
checks if a parameter exists as a given type
Definition: ParameterSet.h:160
EcalRegressionData::maxSubClusDRDPhi
float maxSubClusDRDPhi() const
Definition: EcalRegressionData.h:53
pat::PATPhotonProducer::ecalPFClusterIsoT_
edm::EDGetTokenT< edm::ValueMap< float > > ecalPFClusterIsoT_
Definition: PATPhotonProducer.h:79
pat::Photon::setSubClusDEta3
void setSubClusDEta3(float s)
Definition: Photon.h:298
EcalRegressionData::maxSubClusDRDEta
float maxSubClusDRDEta() const
Definition: EcalRegressionData.h:54
edm::Handle
Definition: AssociativeIterator.h:50
training_settings.idx
idx
Definition: training_settings.py:16
edm::ParameterSetDescription::addOptional
ParameterDescriptionBase * addOptional(U const &iLabel, T const &value)
Definition: ParameterSetDescription.h:105
edm::SortedCollection::push_back
void push_back(T const &t)
Definition: SortedCollection.h:188
EcalRegressionData::eLeft
float eLeft() const
Definition: EcalRegressionData.h:42
dqmdumpme.first
first
Definition: dqmdumpme.py:55
pat::helper::MultiIsolator::IsolationValuePairs
std::vector< std::pair< pat::IsolationKeys, float > > IsolationValuePairs
Definition: MultiIsolator.h:17
EcalRegressionData::SubClusNr::C1
EcalRegressionData::subClusDEta
const std::vector< float > & subClusDEta() const
Definition: EcalRegressionData.h:58
EcalRegressionData::e2nd
float e2nd() const
Definition: EcalRegressionData.h:38
PATPhotonProducer.h
EcalBarrel
Definition: EcalSubdetector.h:10
pat::PATPhotonProducer::isolationValueLabels_
IsolationLabels isolationValueLabels_
Definition: PATPhotonProducer.h:100
pat::helper::KinResolutionsLoader::enabled
bool enabled() const
'true' if this there is at least one efficiency configured
Definition: KinResolutionsLoader.h:27
EcalRegressionData::seedCrysIEtaOrIX
float seedCrysIEtaOrIX() const
Definition: EcalRegressionData.h:50
pat::PATPhotonProducer::IsoDepositMaps
std::vector< edm::Handle< edm::ValueMap< IsoDeposit > > > IsoDepositMaps
Definition: PATPhotonProducer.h:89
pat::PATPhotonProducer::userDataHelper_
pat::PATUserDataHelper< pat::Photon > userDataHelper_
Definition: PATPhotonProducer.h:126
pat::helper::MultiIsolator::enabled
bool enabled() const
True if it has a non null configuration.
Definition: MultiIsolator.h:55
edm::Ref< GenParticleCollection >
EcalRegressionData::eMax
float eMax() const
Definition: EcalRegressionData.h:37
pat::PATPhotonProducer::embedSeedCluster_
bool embedSeedCluster_
Definition: PATPhotonProducer.h:67
pat::helper::MultiIsolator::endEvent
void endEvent()
Definition: MultiIsolator.cc:85
GenParticle.h
deltaR.h
pat::PATPhotonProducer::efficiencyLoader_
pat::helper::EfficiencyLoader efficiencyLoader_
Definition: PATPhotonProducer.h:111
DetId
Definition: DetId.h:17
MakerMacros.h
reco::Photon::PflowIsolationVariables
Definition: Photon.h:459
EcalRegressionData::fill
void fill(const reco::SuperCluster &superClus, const EcalRecHitCollection *ebRecHits, const EcalRecHitCollection *eeRecHits, const CaloGeometry *geom, const CaloTopology *topology, const reco::VertexCollection *vertices)
Definition: EcalRegressionData.h:82
edm::EventSetup::get
T get() const
Definition: EventSetup.h:73
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
pat::Photon::setSubClusRawE2
void setSubClusRawE2(float s)
Definition: Photon.h:282
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
pat::Photon::setCryPhi
void setCryPhi(float c)
Definition: Photon.h:301
names
const std::string names[nVars_]
Definition: PhotonIDValueMapProducer.cc:122
GlobalPosition_Frontier_DevDB_cff.tag
tag
Definition: GlobalPosition_Frontier_DevDB_cff.py:11
reco::Photon::setPflowIsolationVariables
void setPflowIsolationVariables(const PflowIsolationVariables &pfisol)
Set Particle Flow Isolation variables.
Definition: Photon.h:497
pat::PATUserDataHelper::add
void add(ObjectType &patObject, edm::Event const &iEvent, edm::EventSetup const &iSetup)
Definition: PATUserDataHelper.h:114
pat::PATPhotonProducer::resolutionLoader_
pat::helper::KinResolutionsLoader resolutionLoader_
Definition: PATPhotonProducer.h:114
pat::helper::EfficiencyLoader::newEvent
void newEvent(const edm::Event &event)
To be called for each new event, reads in the ValueMaps for efficiencies.
Definition: EfficiencyLoader.cc:21
edm::EDGetTokenT::isUninitialized
bool isUninitialized() const
Definition: EDGetToken.h:70
pat::PATPhotonProducer::isoDepositLabels_
IsolationLabels isoDepositLabels_
Definition: PATPhotonProducer.h:99
pat::PATPhotonProducer::addPFClusterIso_
bool addPFClusterIso_
Definition: PATPhotonProducer.h:77
GenParticleFwd.h
pat::PATPhotonProducer::embedRecHits_
bool embedRecHits_
Definition: PATPhotonProducer.h:70
pat::helper::KinResolutionsLoader
Definition: KinResolutionsLoader.h:18
pat::PATPhotonProducer::~PATPhotonProducer
~PATPhotonProducer() override
Definition: PATPhotonProducer.cc:142
edm::ESHandle< CaloTopology >
pat::PATPhotonProducer::isoDepositTokens_
std::vector< edm::EDGetTokenT< edm::ValueMap< IsoDeposit > > > isoDepositTokens_
Definition: PATPhotonProducer.h:96
EcalRegressionData::SubClusNr::C3
pat::PATPhotonProducer::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: PATPhotonProducer.cc:476
reco::BeamSpot::position
const Point & position() const
position
Definition: BeamSpot.h:59
pat::Photon::setIsolation
void setIsolation(IsolationKeys key, float value)
Definition: Photon.h:171
ParameterSetDescription.h
EcalClusterLazyTools
EcalRegressionData::SubClusNr::C2
pat::Photon::setE3x3
void setE3x3(float e)
Definition: Photon.h:253
CaloGeometryRecord.h
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
edm::vector_transform
auto vector_transform(std::vector< InputType > const &input, Function predicate) -> std::vector< typename std::remove_cv< typename std::remove_reference< decltype(predicate(input.front()))>::type >::type >
Definition: transform.h:11
EcalSubdetector.h
EcalEndcap
Definition: EcalSubdetector.h:10
FastTrackerRecHitMaskProducer_cfi.recHits
recHits
Definition: FastTrackerRecHitMaskProducer_cfi.py:8
pat::PATPhotonProducer::isolatorTmpStorage_
pat::helper::MultiIsolator::IsolationValuePairs isolatorTmpStorage_
Definition: PATPhotonProducer.h:95
pat::Photon::setSep
void setSep(float s)
Definition: Photon.h:268
pat::Photon::setEMax
void setEMax(float e)
Definition: Photon.h:249
reco::Photon::hasPixelSeed
bool hasPixelSeed() const
Bool flagging photons having a non-zero size vector of Ref to electornPixel seeds.
Definition: Photon.h:75
pat::helper::KinResolutionsLoader::setResolutions
void setResolutions(pat::PATObject< T > &obj) const
Sets the efficiencies for this object, using the reference to the original objects.
Definition: KinResolutionsLoader.h:49
pat::Photon::embedSeedCluster
void embedSeedCluster()
method to store the electron's seedcluster internally
HLT_2018_cff.InputTag
InputTag
Definition: HLT_2018_cff.py:79016
edm::ParameterSet
Definition: ParameterSet.h:36
edm::ParameterSetDescription::setComment
void setComment(std::string const &value)
Definition: ParameterSetDescription.cc:33
EcalRegressionData::maxSubClusDR
float maxSubClusDR() const
Definition: EcalRegressionData.h:52
ParameterSet
Definition: Functions.h:16
pat::PATPhotonProducer::produce
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
Definition: PATPhotonProducer.cc:144
reco::Photon::getPflowIsolationVariables
const PflowIsolationVariables & getPflowIsolationVariables() const
Get Particle Flow Isolation variables block.
Definition: Photon.h:494
pat::helper::KinResolutionsLoader::fillDescription
static void fillDescription(edm::ParameterSetDescription &iDesc)
Method for documentation and validation of PSet.
Definition: KinResolutionsLoader.cc:34
pat::Photon::setETop
void setETop(float e)
Definition: Photon.h:255
EcalClusterTools.h
pat::PATPhotonProducer::beamLineToken_
edm::EDGetTokenT< reco::BeamSpot > beamLineToken_
Definition: PATPhotonProducer.h:64
CaloTopology::getSubdetectorTopology
const CaloSubdetectorTopology * getSubdetectorTopology(const DetId &id) const
access the subdetector Topology for the given subdetector directly
Definition: CaloTopology.cc:17
CaloTopologyRecord.h
edm::ParameterSetDescription::ifValue
ParameterDescriptionNode * ifValue(ParameterDescription< T > const &switchParameter, std::unique_ptr< ParameterDescriptionCases< T >> cases)
Definition: ParameterSetDescription.h:220
Photon
Definition: Photon.py:1
pat::Photon::setSubClusDEta2
void setSubClusDEta2(float s)
Definition: Photon.h:296
edm::ParameterSet::getParameterNamesForType
std::vector< std::string > getParameterNamesForType(bool trackiness=true) const
Definition: ParameterSet.h:168
iEvent
int iEvent
Definition: GenABIO.cc:224
pat::PATPhotonProducer::addGenMatch_
bool addGenMatch_
Definition: PATPhotonProducer.h:82
pat::PATPhotonProducer::isolationValueTokens_
std::vector< edm::EDGetTokenT< edm::ValueMap< double > > > isolationValueTokens_
Definition: PATPhotonProducer.h:97
pat::PATPhotonProducer::PATPhotonProducer
PATPhotonProducer(const edm::ParameterSet &iConfig)
Definition: PATPhotonProducer.cc:32
pat::Photon::setPassElectronVeto
void setPassElectronVeto(bool flag)
Definition: Photon.h:239
pat::PATPhotonProducer::ecalTopology_
const CaloTopology * ecalTopology_
Definition: PATPhotonProducer.h:128
pat::PATPhotonProducer::IsolationValueMaps
std::vector< edm::Handle< edm::ValueMap< double > > > IsolationValueMaps
Definition: PATPhotonProducer.h:90
BPHMonitor_cfi.photons
photons
Definition: BPHMonitor_cfi.py:91
edm::Association
Definition: Association.h:18
edm::EventSetup
Definition: EventSetup.h:57
pat::PATPhotonProducer::eTComparator_
GreaterByEt< Photon > eTComparator_
Definition: PATPhotonProducer.h:87
pat::PATPhotonProducer::addEfficiencies_
bool addEfficiencies_
Definition: PATPhotonProducer.h:110
edm::ParameterSetDescription::addNode
ParameterDescriptionNode * addNode(ParameterDescriptionNode const &node)
Definition: ParameterSetDescription.cc:41
pat
Definition: HeavyIon.h:7
edm::ParameterSetDescription::setAllowAnything
void setAllowAnything()
allow any parameter label/value pairs
Definition: ParameterSetDescription.cc:37
EcalRegressionData::subClusDPhi
const std::vector< float > & subClusDPhi() const
Definition: EcalRegressionData.h:57
EcalRegressionData::e3x3
float e3x3() const
Definition: EcalRegressionData.h:39
DetId::Ecal
Definition: DetId.h:27
pat::Photon::setSubClusDEta1
void setSubClusDEta1(float s)
Definition: Photon.h:294
get
#define get
pat::helper::KinResolutionsLoader::newEvent
void newEvent(const edm::Event &event, const edm::EventSetup &setup)
To be called for each new event, reads in the EventSetup object.
Definition: KinResolutionsLoader.cc:27
pat::Photon::setSeedEnergy
void setSeedEnergy(float e)
Definition: Photon.h:246
pat::PATPhotonProducer
Produces the pat::Photon.
Definition: PATPhotonProducer.h:50
pat::Photon::embedPreshowerClusters
void embedPreshowerClusters()
method to store the electron's preshower clusters
EcalRegressionData::seedCrysEtaOrX
float seedCrysEtaOrX() const
Definition: EcalRegressionData.h:49
edm::Ptr
Definition: AssociationVector.h:31
CaloTopology.h
pat::PATPhotonProducer::photIDTokens_
std::vector< edm::EDGetTokenT< edm::ValueMap< Bool_t > > > photIDTokens_
Definition: PATPhotonProducer.h:119
CaloSubdetectorTopology::getWindow
virtual std::vector< DetId > getWindow(const DetId &id, const int &northSouthSize, const int &eastWestSize) const
Definition: CaloSubdetectorTopology.cc:4
pat::PATPhotonProducer::photIDSrcs_
std::vector< NameTag > photIDSrcs_
Definition: PATPhotonProducer.h:118
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
pat::PATPhotonProducer::genMatchTokens_
std::vector< edm::EDGetTokenT< edm::Association< reco::GenParticleCollection > > > genMatchTokens_
Definition: PATPhotonProducer.h:84
EcalRegressionData::eBottom
float eBottom() const
Definition: EcalRegressionData.h:41
pat::PATPhotonProducer::embedSuperCluster_
bool embedSuperCluster_
Definition: PATPhotonProducer.h:66
pat::Photon::setIPhi
void setIPhi(float i)
Definition: Photon.h:306
eostools.move
def move(src, dest)
Definition: eostools.py:511
EcalRegressionData::subClusRawEnergy
const std::vector< float > & subClusRawEnergy() const
Definition: EcalRegressionData.h:56
pat::helper::MultiIsolator::beginEvent
void beginEvent(const edm::Event &event, const edm::EventSetup &eventSetup)
Definition: MultiIsolator.cc:79
tier0.unique
def unique(seq, keepstr=True)
Definition: tier0.py:24
pat::Photon::setMaxDRDEta
void setMaxDRDEta(float m)
Definition: Photon.h:275
pat::PATPhotonProducer::ecalGeometry_
const CaloGeometry * ecalGeometry_
Definition: PATPhotonProducer.h:129
pat::Photon::embedBasicClusters
void embedBasicClusters()
method to store the electron's basic clusters
pat::helper::EfficiencyLoader::setEfficiencies
void setEfficiencies(pat::PATObject< T > &obj, const R &originalRef) const
Sets the efficiencies for this object, using the reference to the original objects.
Definition: EfficiencyLoader.h:41
pat::PATPhotonProducer::hcalPFClusterIsoT_
edm::EDGetTokenT< edm::ValueMap< float > > hcalPFClusterIsoT_
Definition: PATPhotonProducer.h:80
EcalRegressionData::sigmaIEtaIPhi
float sigmaIEtaIPhi() const
Definition: EcalRegressionData.h:45
pat::PATPhotonProducer::hConversionsToken_
edm::EDGetTokenT< reco::ConversionCollection > hConversionsToken_
Definition: PATPhotonProducer.h:63
EcalRegressionData.h
pat::PATPhotonProducer::readIsolationLabels
void readIsolationLabels(const edm::ParameterSet &iConfig, const char *psetName, IsolationLabels &labels, std::vector< edm::EDGetTokenT< edm::ValueMap< T > > > &tokens)
Definition: PATPhotonProducer.h:137
edm::ValueMap< float >
Exception
Definition: hltDiff.cc:246
pat::PATPhotonProducer::PUPPIIsolation_photons_
edm::EDGetTokenT< edm::ValueMap< float > > PUPPIIsolation_photons_
Definition: PATPhotonProducer.h:125
pat::Photon::setPhotonIDs
void setPhotonIDs(const std::vector< IdPair > &ids)
Definition: Photon.h:106
pat::PATPhotonProducer::addPhotonID_
bool addPhotonID_
Definition: PATPhotonProducer.h:116
pat::PATPhotonProducer::addPuppiIsolation_
bool addPuppiIsolation_
Definition: PATPhotonProducer.h:78
pat::Photon::setE2nd
void setE2nd(float e)
Definition: Photon.h:251
pat::PATPhotonProducer::reducedBarrelRecHitCollectionToken_
edm::EDGetTokenT< EcalRecHitCollection > reducedBarrelRecHitCollectionToken_
Definition: PATPhotonProducer.h:73
or
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Definition: Activities.doc:12
edm::RefToBase
Definition: AssociativeIterator.h:54
edm::View::const_iterator
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
Definition: View.h:86
reco::Photon::PflowIsolationVariables::sumEcalClusterEt
float sumEcalClusterEt
Definition: Photon.h:466
reco::Photon::PflowIsolationVariables::sumHcalClusterEt
float sumHcalClusterEt
Definition: Photon.h:467
pat::PATPhotonProducer::PUPPIIsolation_neutral_hadrons_
edm::EDGetTokenT< edm::ValueMap< float > > PUPPIIsolation_neutral_hadrons_
Definition: PATPhotonProducer.h:124
cms::Exception
Definition: Exception.h:70
View.h
pat::Photon::setSubClusDPhi1
void setSubClusDPhi1(float s)
Definition: Photon.h:287
pat::Photon::setELeft
void setELeft(float e)
Definition: Photon.h:259
pat::PATPhotonProducer::PUPPIIsolation_charged_hadrons_
edm::EDGetTokenT< edm::ValueMap< float > > PUPPIIsolation_charged_hadrons_
Definition: PATPhotonProducer.h:123
edm::ParameterDescriptionNode::setComment
void setComment(std::string const &value)
Definition: ParameterDescriptionNode.cc:106
pat::Photon::setSee
void setSee(float s)
Definition: Photon.h:264
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
pat::PATPhotonProducer::reducedBarrelRecHitCollection_
edm::InputTag reducedBarrelRecHitCollection_
Definition: PATPhotonProducer.h:72
pat::PATObject::embedGenParticle
void embedGenParticle()
Definition: PATObject.h:773
edm::HandleBase::isValid
bool isValid() const
Definition: HandleBase.h:70
pat::PATPhotonProducer::addResolutions_
bool addResolutions_
Definition: PATPhotonProducer.h:113
pat::Photon::setERight
void setERight(float e)
Definition: Photon.h:261
edm::Event
Definition: Event.h:73
pat::Photon::embedRecHits
void embedRecHits(const EcalRecHitCollection *rechits)
method to store the RecHits internally - can be called from the PATElectronProducer
edm::EmptyGroupDescription
Definition: EmptyGroupDescription.h:15
edm::ParameterDescription
Definition: ParameterDescription.h:110
CandIsolatorFromDeposits_cfi.deposits
deposits
Definition: CandIsolatorFromDeposits_cfi.py:4
pat::Photon::setCryEta
void setCryEta(float c)
Definition: Photon.h:303
pat::PATPhotonProducer::embedGenMatch_
bool embedGenMatch_
Definition: PATPhotonProducer.h:83
pat::Photon::setSubClusRawE3
void setSubClusRawE3(float s)
Definition: Photon.h:284
edm::InputTag
Definition: InputTag.h:15
pat::Photon::setIsolationPUPPI
void setIsolationPUPPI(float chargedhadrons_, float neutralhadrons_, float photons_)
Sets PUPPI isolation.
Definition: Photon.h:193
pat::PATPhotonProducer::NameTag
std::pair< std::string, edm::InputTag > NameTag
Definition: PATPhotonProducer.h:117
SurveyInfoScenario_cff.seed
seed
Definition: SurveyInfoScenario_cff.py:295
hit
Definition: SiStripHitEffFromCalibTree.cc:88
EcalRegressionData::sigmaIPhiIPhi
float sigmaIPhiIPhi() const
Definition: EcalRegressionData.h:46
pat::PATPhotonProducer::reducedEndcapRecHitCollection_
edm::InputTag reducedEndcapRecHitCollection_
Definition: PATPhotonProducer.h:74