CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
L1HPSPFTauBuilder Class Reference

#include <L1HPSPFTauBuilder.h>

Public Member Functions

void addL1PFCandidates (const std::vector< l1t::PFCandidateRef > &l1PFCands)
 
void buildL1PFTau ()
 
l1t::HPSPFTau getL1PFTau () const
 
 L1HPSPFTauBuilder (const edm::ParameterSet &cfg)
 
void reset ()
 
void setL1PFCandProductID (const edm::ProductID &l1PFCandProductID)
 
void setL1PFTauSeed (const l1t::PFCandidateRef &l1PFCandSeed)
 
void setL1PFTauSeed (const reco::CaloJetRef &l1JetSeed, const std::vector< l1t::PFCandidateRef > &l1PFCands)
 
void setVertex (const l1t::TkPrimaryVertexRef &primaryVertex)
 
 ~L1HPSPFTauBuilder ()=default
 

Private Member Functions

l1t::PFCandidateRefVector convertToRefVector (const std::vector< l1t::PFCandidateRef > &l1PFCands)
 
bool isWithinIsolationCone (const l1t::PFCandidate &l1PFCand)
 
bool isWithinSignalCone (const l1t::PFCandidate &l1PFCand)
 
bool isWithinStrip (const l1t::PFCandidate &l1PFCand)
 

Private Attributes

bool debug_
 
bool isJetSeeded_
 
std::vector< l1t::PFCandidateRefisoAllL1PFCandidates_
 
std::vector< l1t::PFCandidateRefisoChargedHadrons_
 
std::vector< l1t::PFCandidateRefisoElectrons_
 
double isolationConeSize2_
 
double isolationConeSize_
 
std::vector< L1HPSPFTauQualityCutisolationQualityCutsDzCutDisabled_
 
std::vector< L1HPSPFTauQualityCutisolationQualityCutsDzCutEnabledPileup_
 
std::vector< L1HPSPFTauQualityCutisolationQualityCutsDzCutEnabledPrimary_
 
std::vector< l1t::PFCandidateRefisoMuons_
 
std::vector< l1t::PFCandidateRefisoNeutralHadrons_
 
std::vector< l1t::PFCandidateRefisoPhotons_
 
bool isPFCandSeeded_
 
reco::CaloJetRef l1JetSeed_
 
edm::ProductID l1PFCandProductID_
 
l1t::PFCandidateRef l1PFCandSeed_
 
l1t::HPSPFTau l1PFTau_
 
double l1PFTauSeedEta_
 
double l1PFTauSeedPhi_
 
double l1PFTauSeedZVtx_
 
double maxSignalConeSize_
 
double minSignalConeSize_
 
l1t::TkPrimaryVertexRef primaryVertex_
 
std::vector< l1t::PFCandidateRefsignalAllL1PFCandidates_
 
std::vector< l1t::PFCandidateRefsignalChargedHadrons_
 
double signalConeSize2_
 
double signalConeSize_
 
reco::FormulaEvaluator signalConeSizeFormula_
 
std::vector< l1t::PFCandidateRefsignalElectrons_
 
std::vector< l1t::PFCandidateRefsignalMuons_
 
std::vector< l1t::PFCandidateRefsignalNeutralHadrons_
 
std::vector< l1t::PFCandidateRefsignalPhotons_
 
std::vector< L1HPSPFTauQualityCutsignalQualityCutsDzCutDisabled_
 
std::vector< L1HPSPFTauQualityCutsignalQualityCutsDzCutEnabledPrimary_
 
std::vector< l1t::PFCandidateRefstripAllL1PFCandidates_
 
std::vector< l1t::PFCandidateRefstripElectrons_
 
reco::Particle::LorentzVector stripP4_
 
std::vector< l1t::PFCandidateRefstripPhotons_
 
double stripSizeEta_
 
double stripSizePhi_
 
std::vector< l1t::PFCandidateRefsumAllL1PFCandidates_
 
double sumAllL1PFCandidatesPt_
 
std::vector< l1t::PFCandidateRefsumChargedHadrons_
 
double sumChargedIsoPileup_
 
std::vector< l1t::PFCandidateRefsumElectrons_
 
std::vector< l1t::PFCandidateRefsumMuons_
 
std::vector< l1t::PFCandidateRefsumNeutralHadrons_
 
std::vector< l1t::PFCandidateRefsumPhotons_
 
bool useStrips_
 

Detailed Description

Definition at line 14 of file L1HPSPFTauBuilder.h.

Constructor & Destructor Documentation

◆ L1HPSPFTauBuilder()

L1HPSPFTauBuilder::L1HPSPFTauBuilder ( const edm::ParameterSet cfg)

Definition at line 10 of file L1HPSPFTauBuilder.cc.

12  std::regex_replace(cfg.getParameter<std::string>("signalConeSize"), std::regex("pt"), "x")),
13  minSignalConeSize_(cfg.getParameter<double>("minSignalConeSize")),
14  maxSignalConeSize_(cfg.getParameter<double>("maxSignalConeSize")),
15  useStrips_(cfg.getParameter<bool>("useStrips")),
16  stripSizeEta_(cfg.getParameter<double>("stripSizeEta")),
17  stripSizePhi_(cfg.getParameter<double>("stripSizePhi")),
18  isolationConeSize_(cfg.getParameter<double>("isolationConeSize")),
19  debug_(cfg.getUntrackedParameter<bool>("debug", false)) {
21 
23 
24  if (debug_) {
25  std::cout << "setting Quality cuts for signal PFCands:" << std::endl;
26  }
27  edm::ParameterSet cfg_signalQualityCuts = cfg.getParameter<edm::ParameterSet>("signalQualityCuts");
28  signalQualityCutsDzCutDisabled_ = readL1PFTauQualityCuts(cfg_signalQualityCuts, "disabled", debug_);
29  signalQualityCutsDzCutEnabledPrimary_ = readL1PFTauQualityCuts(cfg_signalQualityCuts, "enabled_primary", debug_);
30  if (debug_) {
31  std::cout << "setting Quality cuts for isolation PFCands:" << std::endl;
32  }
33  edm::ParameterSet cfg_isolationQualityCuts = cfg.getParameter<edm::ParameterSet>("isolationQualityCuts");
34  isolationQualityCutsDzCutDisabled_ = readL1PFTauQualityCuts(cfg_isolationQualityCuts, "disabled", debug_);
36  readL1PFTauQualityCuts(cfg_isolationQualityCuts, "enabled_primary", debug_);
37  isolationQualityCutsDzCutEnabledPileup_ = readL1PFTauQualityCuts(cfg_isolationQualityCuts, "enabled_pileup", debug_);
38 }

References cms::cuda::assert(), looper::cfg, gather_cfg::cout, debug_, isolationConeSize2_, isolationConeSize_, isolationQualityCutsDzCutDisabled_, isolationQualityCutsDzCutEnabledPileup_, isolationQualityCutsDzCutEnabledPrimary_, maxSignalConeSize_, minSignalConeSize_, readL1PFTauQualityCuts(), signalQualityCutsDzCutDisabled_, and signalQualityCutsDzCutEnabledPrimary_.

◆ ~L1HPSPFTauBuilder()

L1HPSPFTauBuilder::~L1HPSPFTauBuilder ( )
default

Member Function Documentation

◆ addL1PFCandidates()

void L1HPSPFTauBuilder::addL1PFCandidates ( const std::vector< l1t::PFCandidateRef > &  l1PFCands)

Definition at line 183 of file L1HPSPFTauBuilder.cc.

183  {
184  if (debug_) {
185  std::cout << "<L1HPSPFTauBuilder::addL1PFCandidates>:" << std::endl;
186  }
187 
188  // do not build tau candidates for which no reference z-position exists,
189  // as in this case charged PFCands originating from the primary (hard-scatter) interaction
190  // cannot be distinguished from charged PFCands originating from pileup
191  if (!(isPFCandSeeded_ || isJetSeeded_))
192  return;
193 
194  for (const auto& l1PFCand : l1PFCands) {
195  if (!isWithinIsolationCone(*l1PFCand))
196  continue;
197  sumAllL1PFCandidates_.push_back(l1PFCand);
198  if (l1PFCand->id() == l1t::PFCandidate::ChargedHadron) {
199  sumChargedHadrons_.push_back(l1PFCand);
200  } else if (l1PFCand->id() == l1t::PFCandidate::Electron) {
201  sumElectrons_.push_back(l1PFCand);
202  } else if (l1PFCand->id() == l1t::PFCandidate::NeutralHadron) {
203  sumNeutralHadrons_.push_back(l1PFCand);
204  } else if (l1PFCand->id() == l1t::PFCandidate::Photon) {
205  sumPhotons_.push_back(l1PFCand);
206  } else if (l1PFCand->id() == l1t::PFCandidate::Muon) {
207  sumMuons_.push_back(l1PFCand);
208  }
209  }
210 
211  for (const auto& l1PFCand : sumAllL1PFCandidates_) {
212  sumAllL1PFCandidatesPt_ += l1PFCand->pt();
213  }
214  std::vector<double> emptyV;
215  std::vector<double> sumAllL1PFCandidatesPt(1);
216  sumAllL1PFCandidatesPt[0] = sumAllL1PFCandidatesPt_;
217 
218  signalConeSize_ = signalConeSizeFormula_.evaluate(sumAllL1PFCandidatesPt, emptyV);
219 
225 
226  for (const auto& l1PFCand : sumAllL1PFCandidates_) {
227  if (debug_) {
228  printPFCand(std::cout, *l1PFCand, primaryVertex_);
229  }
230 
231  bool isSignalPFCand = false;
232  bool isStripPFCand = false;
233  bool isElectron_or_Photon =
234  l1PFCand->id() == l1t::PFCandidate::Electron || l1PFCand->id() == l1t::PFCandidate::Photon;
235  bool isChargedHadron = l1PFCand->id() == l1t::PFCandidate::ChargedHadron;
236  if (isWithinSignalCone(*l1PFCand) && !(isChargedHadron && signalChargedHadrons_.size() > 3)) {
237  isSignalPFCand = true;
238  }
239  if (isElectron_or_Photon && isWithinStrip(*l1PFCand)) {
240  if (useStrips_) {
241  isSignalPFCand = true;
242  }
243  isStripPFCand = true;
244  }
245  bool passesSignalQualityCuts = isSelected(signalQualityCutsDzCutEnabledPrimary_, *l1PFCand, l1PFTauSeedZVtx_);
246  if (isSignalPFCand && passesSignalQualityCuts) {
247  signalAllL1PFCandidates_.push_back(l1PFCand);
248  if (l1PFCand->id() == l1t::PFCandidate::ChargedHadron) {
249  signalChargedHadrons_.push_back(l1PFCand);
250  } else if (l1PFCand->id() == l1t::PFCandidate::Electron) {
251  signalElectrons_.push_back(l1PFCand);
252  } else if (l1PFCand->id() == l1t::PFCandidate::NeutralHadron) {
253  signalNeutralHadrons_.push_back(l1PFCand);
254  } else if (l1PFCand->id() == l1t::PFCandidate::Photon) {
255  signalPhotons_.push_back(l1PFCand);
256  } else if (l1PFCand->id() == l1t::PFCandidate::Muon) {
257  signalMuons_.push_back(l1PFCand);
258  }
259  }
260  if (isStripPFCand && passesSignalQualityCuts) {
261  stripAllL1PFCandidates_.push_back(l1PFCand);
262  if (l1PFCand->id() == l1t::PFCandidate::Electron) {
263  stripElectrons_.push_back(l1PFCand);
264  stripP4_ += l1PFCand->p4();
265  } else if (l1PFCand->id() == l1t::PFCandidate::Photon) {
266  stripPhotons_.push_back(l1PFCand);
267  stripP4_ += l1PFCand->p4();
268  } else
269  assert(0);
270  }
271 
272  bool isIsolationPFCand = isWithinIsolationCone(*l1PFCand) && !isSignalPFCand;
273  bool passesIsolationQualityCuts = isSelected(isolationQualityCutsDzCutEnabledPrimary_, *l1PFCand, l1PFTauSeedZVtx_);
274  if (isIsolationPFCand && passesIsolationQualityCuts) {
275  isoAllL1PFCandidates_.push_back(l1PFCand);
276  if (l1PFCand->id() == l1t::PFCandidate::ChargedHadron) {
277  isoChargedHadrons_.push_back(l1PFCand);
278  } else if (l1PFCand->id() == l1t::PFCandidate::Electron) {
279  isoElectrons_.push_back(l1PFCand);
280  } else if (l1PFCand->id() == l1t::PFCandidate::NeutralHadron) {
281  isoNeutralHadrons_.push_back(l1PFCand);
282  } else if (l1PFCand->id() == l1t::PFCandidate::Photon) {
283  isoPhotons_.push_back(l1PFCand);
284  } else if (l1PFCand->id() == l1t::PFCandidate::Muon) {
285  isoMuons_.push_back(l1PFCand);
286  }
287  }
288 
289  if (debug_) {
290  std::cout << "dR = " << reco::deltaR(l1PFCand->eta(), l1PFCand->phi(), l1PFTauSeedEta_, l1PFTauSeedPhi_) << ":"
291  << " isSignalPFCand = " << isSignalPFCand << ", isStripPFCand = " << isStripPFCand
292  << " (passesSignalQualityCuts = " << passesSignalQualityCuts << "),"
293  << " isIsolationPFCand = " << isIsolationPFCand
294  << " (passesIsolationQualityCuts = " << passesIsolationQualityCuts << ")" << std::endl;
295  }
296  }
297 
298  for (const auto& l1PFCand : l1PFCands) {
299  if (!isWithinIsolationCone(*l1PFCand))
300  continue;
301 
302  if (l1PFCand->charge() != 0 && isSelected(isolationQualityCutsDzCutEnabledPileup_, *l1PFCand, l1PFTauSeedZVtx_)) {
303  sumChargedIsoPileup_ += l1PFCand->pt();
304  }
305  }
306 }

References cms::cuda::assert(), l1t::PFCandidate::ChargedHadron, gather_cfg::cout, debug_, reco::deltaR(), l1t::PFCandidate::Electron, reco::FormulaEvaluator::evaluate(), isJetSeeded_, isoAllL1PFCandidates_, isoChargedHadrons_, isoElectrons_, isolationQualityCutsDzCutEnabledPileup_, isolationQualityCutsDzCutEnabledPrimary_, isoMuons_, isoNeutralHadrons_, isoPhotons_, isPFCandSeeded_, isSelected(), isWithinIsolationCone(), isWithinSignalCone(), isWithinStrip(), l1PFTauSeedEta_, l1PFTauSeedPhi_, l1PFTauSeedZVtx_, maxSignalConeSize_, minSignalConeSize_, l1t::PFCandidate::Muon, l1t::PFCandidate::NeutralHadron, l1t::PFCandidate::Photon, primaryVertex_, printPFCand(), signalAllL1PFCandidates_, signalChargedHadrons_, signalConeSize2_, signalConeSize_, signalConeSizeFormula_, signalElectrons_, signalMuons_, signalNeutralHadrons_, signalPhotons_, signalQualityCutsDzCutEnabledPrimary_, stripAllL1PFCandidates_, stripElectrons_, stripP4_, stripPhotons_, sumAllL1PFCandidates_, sumAllL1PFCandidatesPt_, sumChargedHadrons_, sumChargedIsoPileup_, sumElectrons_, sumMuons_, sumNeutralHadrons_, sumPhotons_, and useStrips_.

Referenced by HPSPFTauProducer::produce().

◆ buildL1PFTau()

void L1HPSPFTauBuilder::buildL1PFTau ( )

Definition at line 339 of file L1HPSPFTauBuilder.cc.

339  {
341  for (const auto& l1PFCand : signalAllL1PFCandidates_) {
342  if (l1PFCand->id() == l1t::PFCandidate::ChargedHadron || l1PFCand->id() == l1t::PFCandidate::Electron ||
343  l1PFCand->id() == l1t::PFCandidate::Photon) {
344  l1PFTau_p4 += l1PFCand->p4();
345  if (l1PFCand->charge() != 0 &&
346  (l1PFTau_.leadChargedPFCand().isNull() || l1PFCand->pt() > l1PFTau_.leadChargedPFCand()->pt())) {
347  l1PFTau_.setLeadChargedPFCand(l1PFCand);
348  }
349  }
350  }
351  l1PFTau_.setP4(l1PFTau_p4);
352 
355 
362 
366 
373 
380 
382 
383  if (l1PFTau_.signalChargedHadrons().size() > 1) {
384  if (stripP4_.pt() < 5.)
386  else
388  } else {
389  if (stripP4_.pt() < 5.)
391  else
393  }
394 
396 
400 
401  double sumChargedIso = 0.;
402  double sumNeutralIso = 0.;
403  for (const auto& l1PFCand : isoAllL1PFCandidates_) {
404  if (l1PFCand->charge() != 0) {
405  sumChargedIso += l1PFCand->pt();
406  } else if (l1PFCand->id() == l1t::PFCandidate::Photon) {
407  sumNeutralIso += l1PFCand->pt();
408  }
409  }
410  l1PFTau_.setSumChargedIso(sumChargedIso);
411  l1PFTau_.setSumNeutralIso(sumNeutralIso);
412  const double weightNeutralIso = 1.;
413  const double offsetNeutralIso = 0.;
414  l1PFTau_.setSumCombinedIso(sumChargedIso + weightNeutralIso * (sumNeutralIso - offsetNeutralIso));
416 
417  if (l1PFTau_.sumChargedIso() < 20.0) {
419  }
420  if (l1PFTau_.sumChargedIso() < 10.0) {
422  }
423  if (l1PFTau_.sumChargedIso() < 5.0) {
425  }
426  if (l1PFTau_.sumChargedIso() < 2.5) {
428  }
429 }

References l1t::PFCandidate::ChargedHadron, convertToRefVector(), l1t::PFCandidate::Electron, edm::Ref< C, T, F >::isNull(), isoAllL1PFCandidates_, isoChargedHadrons_, isoElectrons_, isolationConeSize_, isoMuons_, isoNeutralHadrons_, isoPhotons_, l1t::HPSPFTau::kOneProng0Pi0, l1t::HPSPFTau::kOneProng1Pi0, l1t::HPSPFTau::kThreeProng0Pi0, l1t::HPSPFTau::kThreeProng1Pi0, l1JetSeed_, l1PFCandSeed_, l1PFTau_, l1t::HPSPFTau::leadChargedPFCand(), l1t::PFCandidate::Photon, primaryVertex_, l1t::HPSPFTau::setIsoAllL1PFCandidates(), l1t::HPSPFTau::setIsoChargedHadrons(), l1t::HPSPFTau::setIsoElectrons(), l1t::HPSPFTau::setisolationConeSize(), l1t::HPSPFTau::setIsoMuons(), l1t::HPSPFTau::setIsoNeutralHadrons(), l1t::HPSPFTau::setIsoPhotons(), l1t::HPSPFTau::setLeadChargedPFCand(), reco::LeafCandidate::setP4(), l1t::HPSPFTau::setPassLooseIso(), l1t::HPSPFTau::setPassMediumIso(), l1t::HPSPFTau::setPassTightIso(), l1t::HPSPFTau::setPassVLooseIso(), l1t::HPSPFTau::setPrimaryVertex(), l1t::HPSPFTau::setSeedChargedPFCand(), l1t::HPSPFTau::setSeedJet(), l1t::HPSPFTau::setSignalAllL1PFCandidates(), l1t::HPSPFTau::setSignalChargedHadrons(), l1t::HPSPFTau::setSignalConeSize(), l1t::HPSPFTau::setSignalElectrons(), l1t::HPSPFTau::setSignalMuons(), l1t::HPSPFTau::setSignalNeutralHadrons(), l1t::HPSPFTau::setSignalPhotons(), l1t::HPSPFTau::setStripAllL1PFCandidates(), l1t::HPSPFTau::setStripElectrons(), l1t::HPSPFTau::setStripP4(), l1t::HPSPFTau::setStripPhotons(), l1t::HPSPFTau::setSumAllL1PFCandidates(), l1t::HPSPFTau::setSumAllL1PFCandidatesPt(), l1t::HPSPFTau::setSumChargedHadrons(), l1t::HPSPFTau::setSumChargedIso(), l1t::HPSPFTau::setSumChargedIsoPileup(), l1t::HPSPFTau::setSumCombinedIso(), l1t::HPSPFTau::setSumElectrons(), l1t::HPSPFTau::setSumMuons(), l1t::HPSPFTau::setSumNeutralHadrons(), l1t::HPSPFTau::setSumNeutralIso(), l1t::HPSPFTau::setSumPhotons(), l1t::HPSPFTau::setTauType(), signalAllL1PFCandidates_, l1t::HPSPFTau::signalChargedHadrons(), signalChargedHadrons_, signalConeSize_, signalElectrons_, signalMuons_, signalNeutralHadrons_, signalPhotons_, edm::RefVector< C, T, F >::size(), stripAllL1PFCandidates_, stripElectrons_, stripP4_, stripPhotons_, sumAllL1PFCandidates_, sumAllL1PFCandidatesPt_, sumChargedHadrons_, l1t::HPSPFTau::sumChargedIso(), sumChargedIsoPileup_, sumElectrons_, sumMuons_, sumNeutralHadrons_, and sumPhotons_.

Referenced by HPSPFTauProducer::produce().

◆ convertToRefVector()

l1t::PFCandidateRefVector L1HPSPFTauBuilder::convertToRefVector ( const std::vector< l1t::PFCandidateRef > &  l1PFCands)
private

Definition at line 431 of file L1HPSPFTauBuilder.cc.

431  {
432  l1t::PFCandidateRefVector l1PFCandsRefVector(l1PFCandProductID_);
433  for (const auto& l1PFCand : l1PFCands) {
434  l1PFCandsRefVector.push_back(l1PFCand);
435  }
436  return l1PFCandsRefVector;
437 }

References l1PFCandProductID_, and edm::RefVector< C, T, F >::push_back().

Referenced by buildL1PFTau().

◆ getL1PFTau()

l1t::HPSPFTau L1HPSPFTauBuilder::getL1PFTau ( ) const
inline

Definition at line 28 of file L1HPSPFTauBuilder.h.

28 { return l1PFTau_; }

References l1PFTau_.

Referenced by HPSPFTauProducer::produce().

◆ isWithinIsolationCone()

bool L1HPSPFTauBuilder::isWithinIsolationCone ( const l1t::PFCandidate l1PFCand)
private

Definition at line 330 of file L1HPSPFTauBuilder.cc.

330  {
331  double deltaEta = l1PFCand.eta() - l1PFTauSeedEta_;
332  double deltaPhi = l1PFCand.phi() - l1PFTauSeedPhi_;
334  return true;
335  else
336  return false;
337 }

References spr::deltaEta, SiPixelRawToDigiRegional_cfi::deltaPhi, reco::LeafCandidate::eta(), isolationConeSize2_, l1PFTauSeedEta_, l1PFTauSeedPhi_, and reco::LeafCandidate::phi().

Referenced by addL1PFCandidates().

◆ isWithinSignalCone()

bool L1HPSPFTauBuilder::isWithinSignalCone ( const l1t::PFCandidate l1PFCand)
private

Definition at line 310 of file L1HPSPFTauBuilder.cc.

310  {
311  if (isPFCandSeeded_ || isJetSeeded_) {
312  double deltaEta = l1PFCand.eta() - l1PFTauSeedEta_;
313  double deltaPhi = l1PFCand.phi() - l1PFTauSeedPhi_;
315  return true;
316  }
317  return false;
318 }

References spr::deltaEta, SiPixelRawToDigiRegional_cfi::deltaPhi, reco::LeafCandidate::eta(), isJetSeeded_, isPFCandSeeded_, l1PFTauSeedEta_, l1PFTauSeedPhi_, reco::LeafCandidate::phi(), and signalConeSize2_.

Referenced by addL1PFCandidates().

◆ isWithinStrip()

bool L1HPSPFTauBuilder::isWithinStrip ( const l1t::PFCandidate l1PFCand)
private

Definition at line 320 of file L1HPSPFTauBuilder.cc.

320  {
321  if (isPFCandSeeded_ || isJetSeeded_) {
322  double deltaEta = l1PFCand.eta() - l1PFTauSeedEta_;
323  double deltaPhi = l1PFCand.phi() - l1PFTauSeedPhi_;
324  if (std::fabs(deltaEta) < stripSizeEta_ && std::fabs(deltaPhi) < stripSizePhi_)
325  return true;
326  }
327  return false;
328 }

References spr::deltaEta, SiPixelRawToDigiRegional_cfi::deltaPhi, reco::LeafCandidate::eta(), isJetSeeded_, isPFCandSeeded_, l1PFTauSeedEta_, l1PFTauSeedPhi_, reco::LeafCandidate::phi(), stripSizeEta_, and stripSizePhi_.

Referenced by addL1PFCandidates().

◆ reset()

void L1HPSPFTauBuilder::reset ( void  )

Definition at line 40 of file L1HPSPFTauBuilder.cc.

40  {
41  signalConeSize_ = 0.;
42  signalConeSize2_ = 0.;
43 
45  isPFCandSeeded_ = false;
47  isJetSeeded_ = false;
49  l1PFTauSeedEta_ = 0.;
50  l1PFTauSeedPhi_ = 0.;
51  l1PFTauSeedZVtx_ = 0.;
55 
56  stripP4_ = reco::Particle::LorentzVector(0., 0., 0., 0.);
57 
59  signalChargedHadrons_.clear();
60  signalElectrons_.clear();
61  signalNeutralHadrons_.clear();
62  signalPhotons_.clear();
63  signalMuons_.clear();
64 
66  stripElectrons_.clear();
67  stripPhotons_.clear();
68 
69  isoAllL1PFCandidates_.clear();
70  isoChargedHadrons_.clear();
71  isoElectrons_.clear();
72  isoNeutralHadrons_.clear();
73  isoPhotons_.clear();
74  isoMuons_.clear();
75 
76  sumAllL1PFCandidates_.clear();
77  sumChargedHadrons_.clear();
78  sumElectrons_.clear();
79  sumNeutralHadrons_.clear();
80  sumPhotons_.clear();
81  sumMuons_.clear();
82 
84 }

References isJetSeeded_, isoAllL1PFCandidates_, isoChargedHadrons_, isoElectrons_, isoMuons_, isoNeutralHadrons_, isoPhotons_, isPFCandSeeded_, l1JetSeed_, l1PFCandProductID_, l1PFCandSeed_, l1PFTau_, l1PFTauSeedEta_, l1PFTauSeedPhi_, l1PFTauSeedZVtx_, primaryVertex_, signalAllL1PFCandidates_, signalChargedHadrons_, signalConeSize2_, signalConeSize_, signalElectrons_, signalMuons_, signalNeutralHadrons_, signalPhotons_, stripAllL1PFCandidates_, stripElectrons_, stripP4_, stripPhotons_, sumAllL1PFCandidates_, sumAllL1PFCandidatesPt_, sumChargedHadrons_, sumChargedIsoPileup_, sumElectrons_, sumMuons_, sumNeutralHadrons_, and sumPhotons_.

Referenced by HPSPFTauProducer::produce().

◆ setL1PFCandProductID()

void L1HPSPFTauBuilder::setL1PFCandProductID ( const edm::ProductID l1PFCandProductID)

Definition at line 86 of file L1HPSPFTauBuilder.cc.

86  {
87  l1PFCandProductID_ = l1PFCandProductID;
88 }

References l1PFCandProductID_.

Referenced by HPSPFTauProducer::produce().

◆ setL1PFTauSeed() [1/2]

void L1HPSPFTauBuilder::setL1PFTauSeed ( const l1t::PFCandidateRef l1PFCandSeed)

Definition at line 92 of file L1HPSPFTauBuilder.cc.

92  {
93  if (debug_) {
94  std::cout << "<L1HPSPFTauBuilder::setL1PFTauSeed>:" << std::endl;
95  std::cout << "seeding HPSPFTau with ChargedPFCand:";
96  printPFCand(std::cout, *l1PFCandSeed, primaryVertex_);
97  }
98 
99  l1PFCandSeed_ = l1PFCandSeed;
100  l1PFTauSeedEta_ = l1PFCandSeed->eta();
101  l1PFTauSeedPhi_ = l1PFCandSeed->phi();
102  if (l1PFCandSeed->charge() != 0 && l1PFCandSeed->pfTrack().isNonnull()) {
103  l1PFTauSeedZVtx_ = l1PFCandSeed->pfTrack()->vertex().z();
104  isPFCandSeeded_ = true;
105  }
106 }

References gather_cfg::cout, debug_, edm::Ref< C, T, F >::isNonnull(), isPFCandSeeded_, l1PFCandSeed_, l1PFTauSeedEta_, l1PFTauSeedPhi_, l1PFTauSeedZVtx_, primaryVertex_, and printPFCand().

Referenced by HPSPFTauProducer::produce().

◆ setL1PFTauSeed() [2/2]

void L1HPSPFTauBuilder::setL1PFTauSeed ( const reco::CaloJetRef l1JetSeed,
const std::vector< l1t::PFCandidateRef > &  l1PFCands 
)

Definition at line 147 of file L1HPSPFTauBuilder.cc.

148  {
149  if (debug_) {
150  std::cout << "<L1HPSPFTauBuilder::setL1PFTauSeed>:" << std::endl;
151  std::cout << "seeding HPSPFTau with Jet:";
152  std::cout << " pT = " << l1JetSeed->pt() << ", eta = " << l1JetSeed->eta() << ", phi = " << l1JetSeed->phi()
153  << std::endl;
154  }
155 
156  l1JetSeed_ = l1JetSeed;
157  reco::Candidate::LorentzVector l1PFTauSeed_p4;
158  float l1PFTauSeedZVtx = 0.;
159  bool l1PFTauSeed_hasVtx = false;
160  float max_chargedPFCand_pt = -1.;
161  for (const auto& l1PFCand : l1PFCands) {
162  double dR = reco::deltaR(l1PFCand->eta(), l1PFCand->phi(), l1JetSeed->eta(), l1JetSeed->phi());
163  if (dR > 0.4)
164  continue;
165  if (l1PFCand->id() == l1t::PFCandidate::ChargedHadron || l1PFCand->id() == l1t::PFCandidate::Electron ||
166  l1PFCand->id() == l1t::PFCandidate::Photon || l1PFCand->id() == l1t::PFCandidate::Muon) {
167  l1PFTauSeed_p4 += l1PFCand->p4();
168  if (l1PFCand->charge() != 0 && l1PFCand->pfTrack().isNonnull() && l1PFCand->pt() > max_chargedPFCand_pt) {
169  l1PFTauSeedZVtx = l1PFCand->pfTrack()->vertex().z();
170  l1PFTauSeed_hasVtx = true;
171  max_chargedPFCand_pt = l1PFCand->pt();
172  }
173  }
174  }
175  if (l1PFTauSeed_p4.pt() > 1. && l1PFTauSeed_hasVtx) {
176  l1PFTauSeedEta_ = l1PFTauSeed_p4.eta();
177  l1PFTauSeedPhi_ = l1PFTauSeed_p4.phi();
178  l1PFTauSeedZVtx_ = l1PFTauSeedZVtx;
179  isJetSeeded_ = true;
180  }
181 }

References l1t::PFCandidate::ChargedHadron, gather_cfg::cout, debug_, reco::deltaR(), HGC3DClusterGenMatchSelector_cfi::dR, l1t::PFCandidate::Electron, isJetSeeded_, l1JetSeed_, l1PFTauSeedEta_, l1PFTauSeedPhi_, l1PFTauSeedZVtx_, l1t::PFCandidate::Muon, and l1t::PFCandidate::Photon.

◆ setVertex()

void L1HPSPFTauBuilder::setVertex ( const l1t::TkPrimaryVertexRef primaryVertex)

Member Data Documentation

◆ debug_

bool L1HPSPFTauBuilder::debug_
private

Definition at line 97 of file L1HPSPFTauBuilder.h.

Referenced by addL1PFCandidates(), L1HPSPFTauBuilder(), and setL1PFTauSeed().

◆ isJetSeeded_

bool L1HPSPFTauBuilder::isJetSeeded_
private

◆ isoAllL1PFCandidates_

std::vector<l1t::PFCandidateRef> L1HPSPFTauBuilder::isoAllL1PFCandidates_
private

Definition at line 81 of file L1HPSPFTauBuilder.h.

Referenced by addL1PFCandidates(), buildL1PFTau(), and reset().

◆ isoChargedHadrons_

std::vector<l1t::PFCandidateRef> L1HPSPFTauBuilder::isoChargedHadrons_
private

Definition at line 82 of file L1HPSPFTauBuilder.h.

Referenced by addL1PFCandidates(), buildL1PFTau(), and reset().

◆ isoElectrons_

std::vector<l1t::PFCandidateRef> L1HPSPFTauBuilder::isoElectrons_
private

Definition at line 83 of file L1HPSPFTauBuilder.h.

Referenced by addL1PFCandidates(), buildL1PFTau(), and reset().

◆ isolationConeSize2_

double L1HPSPFTauBuilder::isolationConeSize2_
private

Definition at line 49 of file L1HPSPFTauBuilder.h.

Referenced by isWithinIsolationCone(), and L1HPSPFTauBuilder().

◆ isolationConeSize_

double L1HPSPFTauBuilder::isolationConeSize_
private

Definition at line 48 of file L1HPSPFTauBuilder.h.

Referenced by buildL1PFTau(), and L1HPSPFTauBuilder().

◆ isolationQualityCutsDzCutDisabled_

std::vector<L1HPSPFTauQualityCut> L1HPSPFTauBuilder::isolationQualityCutsDzCutDisabled_
private

Definition at line 53 of file L1HPSPFTauBuilder.h.

Referenced by L1HPSPFTauBuilder().

◆ isolationQualityCutsDzCutEnabledPileup_

std::vector<L1HPSPFTauQualityCut> L1HPSPFTauBuilder::isolationQualityCutsDzCutEnabledPileup_
private

Definition at line 55 of file L1HPSPFTauBuilder.h.

Referenced by addL1PFCandidates(), and L1HPSPFTauBuilder().

◆ isolationQualityCutsDzCutEnabledPrimary_

std::vector<L1HPSPFTauQualityCut> L1HPSPFTauBuilder::isolationQualityCutsDzCutEnabledPrimary_
private

Definition at line 54 of file L1HPSPFTauBuilder.h.

Referenced by addL1PFCandidates(), and L1HPSPFTauBuilder().

◆ isoMuons_

std::vector<l1t::PFCandidateRef> L1HPSPFTauBuilder::isoMuons_
private

Definition at line 86 of file L1HPSPFTauBuilder.h.

Referenced by addL1PFCandidates(), buildL1PFTau(), and reset().

◆ isoNeutralHadrons_

std::vector<l1t::PFCandidateRef> L1HPSPFTauBuilder::isoNeutralHadrons_
private

Definition at line 84 of file L1HPSPFTauBuilder.h.

Referenced by addL1PFCandidates(), buildL1PFTau(), and reset().

◆ isoPhotons_

std::vector<l1t::PFCandidateRef> L1HPSPFTauBuilder::isoPhotons_
private

Definition at line 85 of file L1HPSPFTauBuilder.h.

Referenced by addL1PFCandidates(), buildL1PFTau(), and reset().

◆ isPFCandSeeded_

bool L1HPSPFTauBuilder::isPFCandSeeded_
private

◆ l1JetSeed_

reco::CaloJetRef L1HPSPFTauBuilder::l1JetSeed_
private

Definition at line 60 of file L1HPSPFTauBuilder.h.

Referenced by buildL1PFTau(), reset(), and setL1PFTauSeed().

◆ l1PFCandProductID_

edm::ProductID L1HPSPFTauBuilder::l1PFCandProductID_
private

Definition at line 56 of file L1HPSPFTauBuilder.h.

Referenced by convertToRefVector(), reset(), and setL1PFCandProductID().

◆ l1PFCandSeed_

l1t::PFCandidateRef L1HPSPFTauBuilder::l1PFCandSeed_
private

Definition at line 58 of file L1HPSPFTauBuilder.h.

Referenced by buildL1PFTau(), reset(), and setL1PFTauSeed().

◆ l1PFTau_

l1t::HPSPFTau L1HPSPFTauBuilder::l1PFTau_
private

Definition at line 66 of file L1HPSPFTauBuilder.h.

Referenced by buildL1PFTau(), getL1PFTau(), and reset().

◆ l1PFTauSeedEta_

double L1HPSPFTauBuilder::l1PFTauSeedEta_
private

◆ l1PFTauSeedPhi_

double L1HPSPFTauBuilder::l1PFTauSeedPhi_
private

◆ l1PFTauSeedZVtx_

double L1HPSPFTauBuilder::l1PFTauSeedZVtx_
private

Definition at line 63 of file L1HPSPFTauBuilder.h.

Referenced by addL1PFCandidates(), reset(), and setL1PFTauSeed().

◆ maxSignalConeSize_

double L1HPSPFTauBuilder::maxSignalConeSize_
private

Definition at line 42 of file L1HPSPFTauBuilder.h.

Referenced by addL1PFCandidates(), and L1HPSPFTauBuilder().

◆ minSignalConeSize_

double L1HPSPFTauBuilder::minSignalConeSize_
private

Definition at line 41 of file L1HPSPFTauBuilder.h.

Referenced by addL1PFCandidates(), and L1HPSPFTauBuilder().

◆ primaryVertex_

l1t::TkPrimaryVertexRef L1HPSPFTauBuilder::primaryVertex_
private

Definition at line 65 of file L1HPSPFTauBuilder.h.

Referenced by addL1PFCandidates(), buildL1PFTau(), reset(), setL1PFTauSeed(), and setVertex().

◆ signalAllL1PFCandidates_

std::vector<l1t::PFCandidateRef> L1HPSPFTauBuilder::signalAllL1PFCandidates_
private

Definition at line 70 of file L1HPSPFTauBuilder.h.

Referenced by addL1PFCandidates(), buildL1PFTau(), and reset().

◆ signalChargedHadrons_

std::vector<l1t::PFCandidateRef> L1HPSPFTauBuilder::signalChargedHadrons_
private

Definition at line 71 of file L1HPSPFTauBuilder.h.

Referenced by addL1PFCandidates(), buildL1PFTau(), and reset().

◆ signalConeSize2_

double L1HPSPFTauBuilder::signalConeSize2_
private

Definition at line 40 of file L1HPSPFTauBuilder.h.

Referenced by addL1PFCandidates(), isWithinSignalCone(), and reset().

◆ signalConeSize_

double L1HPSPFTauBuilder::signalConeSize_
private

Definition at line 39 of file L1HPSPFTauBuilder.h.

Referenced by addL1PFCandidates(), buildL1PFTau(), and reset().

◆ signalConeSizeFormula_

reco::FormulaEvaluator L1HPSPFTauBuilder::signalConeSizeFormula_
private

Definition at line 37 of file L1HPSPFTauBuilder.h.

Referenced by addL1PFCandidates().

◆ signalElectrons_

std::vector<l1t::PFCandidateRef> L1HPSPFTauBuilder::signalElectrons_
private

Definition at line 72 of file L1HPSPFTauBuilder.h.

Referenced by addL1PFCandidates(), buildL1PFTau(), and reset().

◆ signalMuons_

std::vector<l1t::PFCandidateRef> L1HPSPFTauBuilder::signalMuons_
private

Definition at line 75 of file L1HPSPFTauBuilder.h.

Referenced by addL1PFCandidates(), buildL1PFTau(), and reset().

◆ signalNeutralHadrons_

std::vector<l1t::PFCandidateRef> L1HPSPFTauBuilder::signalNeutralHadrons_
private

Definition at line 73 of file L1HPSPFTauBuilder.h.

Referenced by addL1PFCandidates(), buildL1PFTau(), and reset().

◆ signalPhotons_

std::vector<l1t::PFCandidateRef> L1HPSPFTauBuilder::signalPhotons_
private

Definition at line 74 of file L1HPSPFTauBuilder.h.

Referenced by addL1PFCandidates(), buildL1PFTau(), and reset().

◆ signalQualityCutsDzCutDisabled_

std::vector<L1HPSPFTauQualityCut> L1HPSPFTauBuilder::signalQualityCutsDzCutDisabled_
private

Definition at line 51 of file L1HPSPFTauBuilder.h.

Referenced by L1HPSPFTauBuilder().

◆ signalQualityCutsDzCutEnabledPrimary_

std::vector<L1HPSPFTauQualityCut> L1HPSPFTauBuilder::signalQualityCutsDzCutEnabledPrimary_
private

Definition at line 52 of file L1HPSPFTauBuilder.h.

Referenced by addL1PFCandidates(), and L1HPSPFTauBuilder().

◆ stripAllL1PFCandidates_

std::vector<l1t::PFCandidateRef> L1HPSPFTauBuilder::stripAllL1PFCandidates_
private

Definition at line 77 of file L1HPSPFTauBuilder.h.

Referenced by addL1PFCandidates(), buildL1PFTau(), and reset().

◆ stripElectrons_

std::vector<l1t::PFCandidateRef> L1HPSPFTauBuilder::stripElectrons_
private

Definition at line 78 of file L1HPSPFTauBuilder.h.

Referenced by addL1PFCandidates(), buildL1PFTau(), and reset().

◆ stripP4_

reco::Particle::LorentzVector L1HPSPFTauBuilder::stripP4_
private

Definition at line 68 of file L1HPSPFTauBuilder.h.

Referenced by addL1PFCandidates(), buildL1PFTau(), and reset().

◆ stripPhotons_

std::vector<l1t::PFCandidateRef> L1HPSPFTauBuilder::stripPhotons_
private

Definition at line 79 of file L1HPSPFTauBuilder.h.

Referenced by addL1PFCandidates(), buildL1PFTau(), and reset().

◆ stripSizeEta_

double L1HPSPFTauBuilder::stripSizeEta_
private

Definition at line 45 of file L1HPSPFTauBuilder.h.

Referenced by isWithinStrip().

◆ stripSizePhi_

double L1HPSPFTauBuilder::stripSizePhi_
private

Definition at line 46 of file L1HPSPFTauBuilder.h.

Referenced by isWithinStrip().

◆ sumAllL1PFCandidates_

std::vector<l1t::PFCandidateRef> L1HPSPFTauBuilder::sumAllL1PFCandidates_
private

Definition at line 88 of file L1HPSPFTauBuilder.h.

Referenced by addL1PFCandidates(), buildL1PFTau(), and reset().

◆ sumAllL1PFCandidatesPt_

double L1HPSPFTauBuilder::sumAllL1PFCandidatesPt_
private

Definition at line 64 of file L1HPSPFTauBuilder.h.

Referenced by addL1PFCandidates(), buildL1PFTau(), and reset().

◆ sumChargedHadrons_

std::vector<l1t::PFCandidateRef> L1HPSPFTauBuilder::sumChargedHadrons_
private

Definition at line 89 of file L1HPSPFTauBuilder.h.

Referenced by addL1PFCandidates(), buildL1PFTau(), and reset().

◆ sumChargedIsoPileup_

double L1HPSPFTauBuilder::sumChargedIsoPileup_
private

Definition at line 95 of file L1HPSPFTauBuilder.h.

Referenced by addL1PFCandidates(), buildL1PFTau(), and reset().

◆ sumElectrons_

std::vector<l1t::PFCandidateRef> L1HPSPFTauBuilder::sumElectrons_
private

Definition at line 90 of file L1HPSPFTauBuilder.h.

Referenced by addL1PFCandidates(), buildL1PFTau(), and reset().

◆ sumMuons_

std::vector<l1t::PFCandidateRef> L1HPSPFTauBuilder::sumMuons_
private

Definition at line 93 of file L1HPSPFTauBuilder.h.

Referenced by addL1PFCandidates(), buildL1PFTau(), and reset().

◆ sumNeutralHadrons_

std::vector<l1t::PFCandidateRef> L1HPSPFTauBuilder::sumNeutralHadrons_
private

Definition at line 91 of file L1HPSPFTauBuilder.h.

Referenced by addL1PFCandidates(), buildL1PFTau(), and reset().

◆ sumPhotons_

std::vector<l1t::PFCandidateRef> L1HPSPFTauBuilder::sumPhotons_
private

Definition at line 92 of file L1HPSPFTauBuilder.h.

Referenced by addL1PFCandidates(), buildL1PFTau(), and reset().

◆ useStrips_

bool L1HPSPFTauBuilder::useStrips_
private

Definition at line 44 of file L1HPSPFTauBuilder.h.

Referenced by addL1PFCandidates().

l1t::PFCandidate::Photon
Definition: PFCandidate.h:15
L1HPSPFTauBuilder::sumChargedIsoPileup_
double sumChargedIsoPileup_
Definition: L1HPSPFTauBuilder.h:95
L1HPSPFTauBuilder::signalQualityCutsDzCutEnabledPrimary_
std::vector< L1HPSPFTauQualityCut > signalQualityCutsDzCutEnabledPrimary_
Definition: L1HPSPFTauBuilder.h:52
l1t::HPSPFTau::setSumAllL1PFCandidatesPt
void setSumAllL1PFCandidatesPt(float sumAllL1PFCandidatesPt)
Definition: HPSPFTau.h:128
l1t::HPSPFTau::setLeadChargedPFCand
void setLeadChargedPFCand(l1t::PFCandidateRef leadChargedPFCand)
Definition: HPSPFTau.h:83
L1HPSPFTauBuilder::l1PFCandSeed_
l1t::PFCandidateRef l1PFCandSeed_
Definition: L1HPSPFTauBuilder.h:58
l1t::HPSPFTau::setSumChargedIsoPileup
void setSumChargedIsoPileup(float sumChargedIsoPileup)
Definition: HPSPFTau.h:135
L1HPSPFTauBuilder::stripP4_
reco::Particle::LorentzVector stripP4_
Definition: L1HPSPFTauBuilder.h:68
L1HPSPFTauBuilder::isolationQualityCutsDzCutDisabled_
std::vector< L1HPSPFTauQualityCut > isolationQualityCutsDzCutDisabled_
Definition: L1HPSPFTauBuilder.h:53
L1HPSPFTauBuilder::l1PFTauSeedEta_
double l1PFTauSeedEta_
Definition: L1HPSPFTauBuilder.h:61
L1HPSPFTauBuilder::sumChargedHadrons_
std::vector< l1t::PFCandidateRef > sumChargedHadrons_
Definition: L1HPSPFTauBuilder.h:89
edm::Ref::isNull
bool isNull() const
Checks for null.
Definition: Ref.h:235
L1HPSPFTauBuilder::stripSizePhi_
double stripSizePhi_
Definition: L1HPSPFTauBuilder.h:46
l1t::HPSPFTau::setIsoAllL1PFCandidates
void setIsoAllL1PFCandidates(l1t::PFCandidateRefVector isoAllL1PFCandidates)
Definition: HPSPFTau.h:104
l1t::HPSPFTau::kThreeProng1Pi0
Definition: HPSPFTau.h:57
l1t::HPSPFTau::setIsoElectrons
void setIsoElectrons(l1t::PFCandidateRefVector isoElectrons)
Definition: HPSPFTau.h:108
gather_cfg.cout
cout
Definition: gather_cfg.py:144
l1t::HPSPFTau::setIsoPhotons
void setIsoPhotons(l1t::PFCandidateRefVector isoPhotons)
Definition: HPSPFTau.h:110
l1t::HPSPFTau::setSignalChargedHadrons
void setSignalChargedHadrons(l1t::PFCandidateRefVector signalChargedHadrons)
Definition: HPSPFTau.h:88
l1t::HPSPFTau::setSumPhotons
void setSumPhotons(l1t::PFCandidateRefVector sumPhotons)
Definition: HPSPFTau.h:119
L1HPSPFTauBuilder::isoMuons_
std::vector< l1t::PFCandidateRef > isoMuons_
Definition: L1HPSPFTauBuilder.h:86
L1HPSPFTauBuilder::l1PFTauSeedZVtx_
double l1PFTauSeedZVtx_
Definition: L1HPSPFTauBuilder.h:63
cms::cuda::assert
assert(be >=bs)
l1t::HPSPFTau::setPrimaryVertex
void setPrimaryVertex(l1t::TkPrimaryVertexRef primaryVertex)
Definition: HPSPFTau.h:122
L1HPSPFTauBuilder::isolationQualityCutsDzCutEnabledPrimary_
std::vector< L1HPSPFTauQualityCut > isolationQualityCutsDzCutEnabledPrimary_
Definition: L1HPSPFTauBuilder.h:54
l1t::HPSPFTau::setSumNeutralIso
void setSumNeutralIso(float sumNeutralIso)
Definition: HPSPFTau.h:133
isSelected
bool isSelected(const std::vector< L1HPSPFTauQualityCut > &qualityCuts, const l1t::PFCandidate &pfCand, float_t primaryVertexZ)
Definition: L1HPSPFTauQualityCut.cc:90
l1t::HPSPFTau::setIsoChargedHadrons
void setIsoChargedHadrons(l1t::PFCandidateRefVector isoChargedHadrons)
Definition: HPSPFTau.h:107
L1HPSPFTauBuilder::isWithinSignalCone
bool isWithinSignalCone(const l1t::PFCandidate &l1PFCand)
Definition: L1HPSPFTauBuilder.cc:310
l1t::HPSPFTau::kOneProng1Pi0
Definition: HPSPFTau.h:57
edm::RefVector< l1t::PFCandidateCollection >
L1HPSPFTauBuilder::l1PFCandProductID_
edm::ProductID l1PFCandProductID_
Definition: L1HPSPFTauBuilder.h:56
L1HPSPFTauBuilder::signalConeSizeFormula_
reco::FormulaEvaluator signalConeSizeFormula_
Definition: L1HPSPFTauBuilder.h:37
l1t::HPSPFTau::kThreeProng0Pi0
Definition: HPSPFTau.h:57
l1t::PFCandidate::Electron
Definition: PFCandidate.h:15
L1HPSPFTauBuilder::stripPhotons_
std::vector< l1t::PFCandidateRef > stripPhotons_
Definition: L1HPSPFTauBuilder.h:79
l1t::HPSPFTau::setSumAllL1PFCandidates
void setSumAllL1PFCandidates(l1t::PFCandidateRefVector sumAllL1PFCandidates)
Definition: HPSPFTau.h:113
reco::Particle::LorentzVector
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Particle.h:21
L1HPSPFTauBuilder::stripAllL1PFCandidates_
std::vector< l1t::PFCandidateRef > stripAllL1PFCandidates_
Definition: L1HPSPFTauBuilder.h:77
L1HPSPFTauBuilder::l1PFTauSeedPhi_
double l1PFTauSeedPhi_
Definition: L1HPSPFTauBuilder.h:62
l1t::HPSPFTau::setSumChargedIso
void setSumChargedIso(float sumChargedIso)
Definition: HPSPFTau.h:132
L1HPSPFTauBuilder::signalChargedHadrons_
std::vector< l1t::PFCandidateRef > signalChargedHadrons_
Definition: L1HPSPFTauBuilder.h:71
L1HPSPFTauBuilder::signalConeSize_
double signalConeSize_
Definition: L1HPSPFTauBuilder.h:39
BeamMonitor_cff.primaryVertex
primaryVertex
hltOfflineBeamSpot for HLTMON
Definition: BeamMonitor_cff.py:7
l1t::HPSPFTau::setPassMediumIso
void setPassMediumIso(bool passMediumIso)
Definition: HPSPFTau.h:138
L1HPSPFTauBuilder::isoNeutralHadrons_
std::vector< l1t::PFCandidateRef > isoNeutralHadrons_
Definition: L1HPSPFTauBuilder.h:84
l1t::HPSPFTau::setSignalConeSize
void setSignalConeSize(float signalConeSize)
Definition: HPSPFTau.h:129
l1t::HPSPFTau::setSumNeutralHadrons
void setSumNeutralHadrons(l1t::PFCandidateRefVector sumNeutralHadrons)
Definition: HPSPFTau.h:118
spr::deltaEta
static const double deltaEta
Definition: CaloConstants.h:8
l1t::PFCandidateRef
edm::Ref< l1t::PFCandidateCollection > PFCandidateRef
Definition: PFCandidate.h:58
SiPixelRawToDigiRegional_cfi.deltaPhi
deltaPhi
Definition: SiPixelRawToDigiRegional_cfi.py:9
l1t::HPSPFTau::setPassVLooseIso
void setPassVLooseIso(bool passVLooseIso)
Definition: HPSPFTau.h:140
L1HPSPFTauBuilder::signalNeutralHadrons_
std::vector< l1t::PFCandidateRef > signalNeutralHadrons_
Definition: L1HPSPFTauBuilder.h:73
l1t::HPSPFTau::sumChargedIso
float sumChargedIso() const
Definition: HPSPFTau.h:66
l1t::HPSPFTau::setSignalAllL1PFCandidates
void setSignalAllL1PFCandidates(l1t::PFCandidateRefVector signalAllL1PFCandidates)
Definition: HPSPFTau.h:85
L1HPSPFTauBuilder::stripSizeEta_
double stripSizeEta_
Definition: L1HPSPFTauBuilder.h:45
l1t::TkPrimaryVertexRef
edm::Ref< TkPrimaryVertexCollection > TkPrimaryVertexRef
Definition: TkPrimaryVertex.h:31
L1HPSPFTauBuilder::isJetSeeded_
bool isJetSeeded_
Definition: L1HPSPFTauBuilder.h:59
l1t::HPSPFTau::setStripPhotons
void setStripPhotons(l1t::PFCandidateRefVector stripPhotons)
Definition: HPSPFTau.h:102
L1HPSPFTauBuilder::convertToRefVector
l1t::PFCandidateRefVector convertToRefVector(const std::vector< l1t::PFCandidateRef > &l1PFCands)
Definition: L1HPSPFTauBuilder.cc:431
l1t::HPSPFTau::setTauType
void setTauType(Kind tauType)
Definition: HPSPFTau.h:124
L1HPSPFTauBuilder::l1PFTau_
l1t::HPSPFTau l1PFTau_
Definition: L1HPSPFTauBuilder.h:66
l1t::HPSPFTau::setSumCombinedIso
void setSumCombinedIso(float sumCombinedIso)
Definition: HPSPFTau.h:134
L1HPSPFTauBuilder::sumAllL1PFCandidates_
std::vector< l1t::PFCandidateRef > sumAllL1PFCandidates_
Definition: L1HPSPFTauBuilder.h:88
L1HPSPFTauBuilder::isoChargedHadrons_
std::vector< l1t::PFCandidateRef > isoChargedHadrons_
Definition: L1HPSPFTauBuilder.h:82
L1HPSPFTauBuilder::isWithinStrip
bool isWithinStrip(const l1t::PFCandidate &l1PFCand)
Definition: L1HPSPFTauBuilder.cc:320
l1t::HPSPFTau::setSignalNeutralHadrons
void setSignalNeutralHadrons(l1t::PFCandidateRefVector signalNeutralHadrons)
Definition: HPSPFTau.h:92
L1HPSPFTauBuilder::debug_
bool debug_
Definition: L1HPSPFTauBuilder.h:97
l1t::HPSPFTau::setStripAllL1PFCandidates
void setStripAllL1PFCandidates(l1t::PFCandidateRefVector stripAllL1PFCandidates)
Definition: HPSPFTau.h:98
L1HPSPFTauBuilder::signalQualityCutsDzCutDisabled_
std::vector< L1HPSPFTauQualityCut > signalQualityCutsDzCutDisabled_
Definition: L1HPSPFTauBuilder.h:51
edm::ParameterSet
Definition: ParameterSet.h:47
L1HPSPFTauBuilder::sumElectrons_
std::vector< l1t::PFCandidateRef > sumElectrons_
Definition: L1HPSPFTauBuilder.h:90
l1t::HPSPFTau::kOneProng0Pi0
Definition: HPSPFTau.h:57
L1HPSPFTauBuilder::stripElectrons_
std::vector< l1t::PFCandidateRef > stripElectrons_
Definition: L1HPSPFTauBuilder.h:78
L1HPSPFTauBuilder::sumPhotons_
std::vector< l1t::PFCandidateRef > sumPhotons_
Definition: L1HPSPFTauBuilder.h:92
reco::LeafCandidate::eta
double eta() const final
momentum pseudorapidity
Definition: LeafCandidate.h:152
l1t::HPSPFTau::setSumChargedHadrons
void setSumChargedHadrons(l1t::PFCandidateRefVector sumChargedHadrons)
Definition: HPSPFTau.h:116
edm::Ref::isNonnull
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:238
L1HPSPFTauBuilder::isoAllL1PFCandidates_
std::vector< l1t::PFCandidateRef > isoAllL1PFCandidates_
Definition: L1HPSPFTauBuilder.h:81
l1t::PFCandidate::ChargedHadron
Definition: PFCandidate.h:15
l1t::HPSPFTau
Definition: HPSPFTau.h:14
L1HPSPFTauBuilder::isolationQualityCutsDzCutEnabledPileup_
std::vector< L1HPSPFTauQualityCut > isolationQualityCutsDzCutEnabledPileup_
Definition: L1HPSPFTauBuilder.h:55
l1t::HPSPFTau::setPassTightIso
void setPassTightIso(bool passTightIso)
Definition: HPSPFTau.h:137
L1HPSPFTauBuilder::useStrips_
bool useStrips_
Definition: L1HPSPFTauBuilder.h:44
L1HPSPFTauBuilder::isoPhotons_
std::vector< l1t::PFCandidateRef > isoPhotons_
Definition: L1HPSPFTauBuilder.h:85
L1HPSPFTauBuilder::isWithinIsolationCone
bool isWithinIsolationCone(const l1t::PFCandidate &l1PFCand)
Definition: L1HPSPFTauBuilder.cc:330
l1t::HPSPFTau::setSeedJet
void setSeedJet(reco::CaloJetRef seedJet)
Definition: HPSPFTau.h:82
l1t::HPSPFTau::setisolationConeSize
void setisolationConeSize(float isolationConeSize)
Definition: HPSPFTau.h:130
l1t::HPSPFTau::setSignalPhotons
void setSignalPhotons(l1t::PFCandidateRefVector signalPhotons)
Definition: HPSPFTau.h:95
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
readL1PFTauQualityCuts
std::vector< L1HPSPFTauQualityCut > readL1PFTauQualityCuts(const edm::ParameterSet &cfg, const std::string &dzCut, bool debug=false)
Definition: L1HPSPFTauQualityCut.cc:78
looper.cfg
cfg
Definition: looper.py:296
L1HPSPFTauBuilder::signalElectrons_
std::vector< l1t::PFCandidateRef > signalElectrons_
Definition: L1HPSPFTauBuilder.h:72
l1t::HPSPFTau::setIsoMuons
void setIsoMuons(l1t::PFCandidateRefVector isoMuons)
Definition: HPSPFTau.h:111
l1t::PFCandidate::Muon
Definition: PFCandidate.h:15
L1HPSPFTauBuilder::l1JetSeed_
reco::CaloJetRef l1JetSeed_
Definition: L1HPSPFTauBuilder.h:60
L1HPSPFTauBuilder::isoElectrons_
std::vector< l1t::PFCandidateRef > isoElectrons_
Definition: L1HPSPFTauBuilder.h:83
L1HPSPFTauBuilder::signalConeSize2_
double signalConeSize2_
Definition: L1HPSPFTauBuilder.h:40
l1t::HPSPFTau::setStripElectrons
void setStripElectrons(l1t::PFCandidateRefVector stripElectrons)
Definition: HPSPFTau.h:101
reco::LeafCandidate::setP4
void setP4(const LorentzVector &p4) final
set 4-momentum
Definition: LeafCandidate.h:158
l1t::HPSPFTau::setSignalElectrons
void setSignalElectrons(l1t::PFCandidateRefVector signalElectrons)
Definition: HPSPFTau.h:91
l1t::HPSPFTau::setIsoNeutralHadrons
void setIsoNeutralHadrons(l1t::PFCandidateRefVector isoNeutralHadrons)
Definition: HPSPFTau.h:109
reco::LeafCandidate::phi
double phi() const final
momentum azimuthal angle
Definition: LeafCandidate.h:148
L1HPSPFTauBuilder::primaryVertex_
l1t::TkPrimaryVertexRef primaryVertex_
Definition: L1HPSPFTauBuilder.h:65
printPFCand
void printPFCand(ostream &os, const l1t::PFCandidate &l1PFCand, const l1t::TkPrimaryVertexRef &primaryVertex)
Definition: HPSPFTau.cc:63
reco::FormulaEvaluator::evaluate
double evaluate(V const &iVariables, P const &iParameters) const
Definition: FormulaEvaluator.h:73
L1HPSPFTauBuilder::signalPhotons_
std::vector< l1t::PFCandidateRef > signalPhotons_
Definition: L1HPSPFTauBuilder.h:74
l1t::HPSPFTau::leadChargedPFCand
const l1t::PFCandidateRef & leadChargedPFCand() const
Definition: HPSPFTau.h:28
l1t::HPSPFTau::setPassLooseIso
void setPassLooseIso(bool passLooseIso)
Definition: HPSPFTau.h:139
L1HPSPFTauBuilder::minSignalConeSize_
double minSignalConeSize_
Definition: L1HPSPFTauBuilder.h:41
reco::deltaR
constexpr auto deltaR(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
Definition: deltaR.h:30
L1HPSPFTauBuilder::isolationConeSize_
double isolationConeSize_
Definition: L1HPSPFTauBuilder.h:48
reco::CaloJetRef
edm::Ref< CaloJetCollection > CaloJetRef
edm references
Definition: CaloJetCollection.h:17
l1t::HPSPFTau::signalChargedHadrons
const l1t::PFCandidateRefVector & signalChargedHadrons() const
Definition: HPSPFTau.h:31
HGC3DClusterGenMatchSelector_cfi.dR
dR
Definition: HGC3DClusterGenMatchSelector_cfi.py:7
L1HPSPFTauBuilder::isPFCandSeeded_
bool isPFCandSeeded_
Definition: L1HPSPFTauBuilder.h:57
l1t::PFCandidate::NeutralHadron
Definition: PFCandidate.h:15
l1t::HPSPFTau::setSumMuons
void setSumMuons(l1t::PFCandidateRefVector sumMuons)
Definition: HPSPFTau.h:120
reco::Candidate::LorentzVector
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:36
l1t::HPSPFTau::setSignalMuons
void setSignalMuons(l1t::PFCandidateRefVector signalMuons)
Definition: HPSPFTau.h:96
L1HPSPFTauBuilder::sumNeutralHadrons_
std::vector< l1t::PFCandidateRef > sumNeutralHadrons_
Definition: L1HPSPFTauBuilder.h:91
edm::RefVector::size
size_type size() const
Size of the RefVector.
Definition: RefVector.h:102
L1HPSPFTauBuilder::sumMuons_
std::vector< l1t::PFCandidateRef > sumMuons_
Definition: L1HPSPFTauBuilder.h:93
l1t::HPSPFTau::setSumElectrons
void setSumElectrons(l1t::PFCandidateRefVector sumElectrons)
Definition: HPSPFTau.h:117
L1HPSPFTauBuilder::sumAllL1PFCandidatesPt_
double sumAllL1PFCandidatesPt_
Definition: L1HPSPFTauBuilder.h:64
l1t::HPSPFTau::setSeedChargedPFCand
void setSeedChargedPFCand(l1t::PFCandidateRef seedChargedPFCand)
Definition: HPSPFTau.h:81
L1HPSPFTauBuilder::maxSignalConeSize_
double maxSignalConeSize_
Definition: L1HPSPFTauBuilder.h:42
edm::ProductID
Definition: ProductID.h:27
L1HPSPFTauBuilder::signalMuons_
std::vector< l1t::PFCandidateRef > signalMuons_
Definition: L1HPSPFTauBuilder.h:75
l1t::HPSPFTau::setStripP4
void setStripP4(reco::Particle::LorentzVector &stripP4)
Definition: HPSPFTau.h:126
L1HPSPFTauBuilder::signalAllL1PFCandidates_
std::vector< l1t::PFCandidateRef > signalAllL1PFCandidates_
Definition: L1HPSPFTauBuilder.h:70
L1HPSPFTauBuilder::isolationConeSize2_
double isolationConeSize2_
Definition: L1HPSPFTauBuilder.h:49