CMS 3D CMS Logo

Classes | Functions
L1HPSPFTauQualityCut.h File Reference
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "DataFormats/L1TParticleFlow/interface/PFCandidate.h"
#include <string>
#include <vector>

Go to the source code of this file.

Classes

class  L1HPSPFTauQualityCut
 

Functions

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

Function Documentation

◆ isSelected()

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

◆ readL1PFTauQualityCuts()

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

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)