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.

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 }

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

Referenced by readL1PFTauQualityCuts().

◆ readL1PFTauQualityCuts()

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

Definition at line 78 of file L1HPSPFTauQualityCut.cc.

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 }

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

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

L1HPSPFTauQualityCut
Definition: L1HPSPFTauQualityCut.h:9
edm::ParameterSet::addUntrackedParameter
void addUntrackedParameter(std::string const &name, T const &value)
Definition: ParameterSet.h:192
debug
#define debug
Definition: HDRShower.cc:19
readL1PFTauQualityCut
L1HPSPFTauQualityCut readL1PFTauQualityCut(const edm::ParameterSet &cfg, const std::string &pfCandType, const std::string &dzCut, bool debug)
Definition: L1HPSPFTauQualityCut.cc:66
TrackSplittingMonitor_cfi.dzCut
dzCut
Definition: TrackSplittingMonitor_cfi.py:20
edm::ParameterSet
Definition: ParameterSet.h:47
edm::ParameterSet::addParameter
void addParameter(std::string const &name, T const &value)
Definition: ParameterSet.h:135
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
looper.cfg
cfg
Definition: looper.py:296
beam_dqm_sourceclient-live_cfg.qualityCuts
qualityCuts
Definition: beam_dqm_sourceclient-live_cfg.py:126