CMS 3D CMS Logo

Functions
L1HPSPFTauQualityCut.cc File Reference
#include "L1Trigger/Phase2L1Taus/interface/L1HPSPFTauQualityCut.h"
#include "FWCore/Utilities/interface/Exception.h"

Go to the source code of this file.

Functions

bool isSelected (const std::vector< L1HPSPFTauQualityCut > &qualityCuts, const l1t::PFCandidate &pfCand, float_t primaryVertex_z)
 
L1HPSPFTauQualityCut readL1PFTauQualityCut (const edm::ParameterSet &cfg, const std::string &pfCandType, const std::string &dzCut, bool debug)
 
std::vector< L1HPSPFTauQualityCutreadL1PFTauQualityCuts (const edm::ParameterSet &cfg, const std::string &dzCut, bool debug)
 

Function Documentation

◆ isSelected()

bool isSelected ( const std::vector< L1HPSPFTauQualityCut > &  qualityCuts,
const l1t::PFCandidate pfCand,
float_t  primaryVertex_z 
)

◆ readL1PFTauQualityCut()

L1HPSPFTauQualityCut readL1PFTauQualityCut ( const edm::ParameterSet cfg,
const std::string &  pfCandType,
const std::string &  dzCut,
bool  debug 
)

Definition at line 66 of file L1HPSPFTauQualityCut.cc.

References edm::ParameterSet::addParameter(), edm::ParameterSet::addUntrackedParameter(), looper::cfg, debug, TrackSplittingMonitor_cfi::dzCut, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by readL1PFTauQualityCuts().

69  {
70  edm::ParameterSet cfg_pfCandType = cfg.getParameter<edm::ParameterSet>(pfCandType);
71  cfg_pfCandType.addParameter<std::string>("pfCandType", pfCandType);
72  cfg_pfCandType.addParameter<std::string>("dzCut", dzCut);
73  cfg_pfCandType.addUntrackedParameter<bool>("debug", debug);
74  L1HPSPFTauQualityCut qualityCut(cfg_pfCandType);
75  return qualityCut;
76 }
void addParameter(std::string const &name, T const &value)
Definition: ParameterSet.h:135
#define debug
Definition: HDRShower.cc:19
void addUntrackedParameter(std::string const &name, T const &value)
Definition: ParameterSet.h:192

◆ readL1PFTauQualityCuts()

std::vector<L1HPSPFTauQualityCut> readL1PFTauQualityCuts ( const edm::ParameterSet cfg,
const std::string &  dzCut,
bool  debug 
)

Definition at line 78 of file L1HPSPFTauQualityCut.cc.

References looper::cfg, debug, TrackSplittingMonitor_cfi::dzCut, beam_dqm_sourceclient-live_cfg::qualityCuts, and readL1PFTauQualityCut().

Referenced by HPSPFTauProducer::HPSPFTauProducer(), and L1HPSPFTauBuilder::L1HPSPFTauBuilder().

80  {
81  std::vector<L1HPSPFTauQualityCut> qualityCuts;
82  qualityCuts.push_back(readL1PFTauQualityCut(cfg, "chargedHadron", dzCut, debug));
83  qualityCuts.push_back(readL1PFTauQualityCut(cfg, "electron", dzCut, debug));
84  qualityCuts.push_back(readL1PFTauQualityCut(cfg, "muon", dzCut, debug));
85  qualityCuts.push_back(readL1PFTauQualityCut(cfg, "photon", dzCut, debug));
86  qualityCuts.push_back(readL1PFTauQualityCut(cfg, "neutralHadron", dzCut, debug));
87  return qualityCuts;
88 }
#define debug
Definition: HDRShower.cc:19
L1HPSPFTauQualityCut readL1PFTauQualityCut(const edm::ParameterSet &cfg, const std::string &pfCandType, const std::string &dzCut, bool debug)