#include <Cuts.h>
Classes | |
struct | CutSpec |
Public Member Functions | |
Cuts () | |
dummy constructor | |
Cuts (const edm::ParameterSet &pset) | |
ctor by PSet | |
Cuts (const std::vector< double > &etaBounds, const std::vector< double > &coneSizes, const std::vector< double > &thresholds) | |
constructor from valid parameters | |
const CutSpec & | operator() (double eta) const |
const CutSpec & | operator[] (unsigned int i) const |
std::string | print () const |
unsigned int | size () |
Private Member Functions | |
void | init (const std::vector< double > &etaBounds, const std::vector< double > &coneSizes, const std::vector< double > &thresholds) |
Private Attributes | |
std::vector< CutSpec > | theCuts |
Cuts::Cuts | ( | const edm::ParameterSet & | pset | ) |
ctor by PSet
Definition at line 10 of file Cuts.cc.
References edm::ParameterSet::getParameter(), and init.
{ vector<double> etaBounds = pset.getParameter<std::vector<double> >("EtaBounds"); vector<double> coneSizes = pset.getParameter<std::vector<double> >("ConeSizes"); vector<double> thresholds = pset.getParameter<std::vector<double> >("Thresholds"); init(etaBounds,coneSizes,thresholds); }
muonisolation::Cuts::Cuts | ( | const std::vector< double > & | etaBounds, |
const std::vector< double > & | coneSizes, | ||
const std::vector< double > & | thresholds | ||
) |
constructor from valid parameters
void muonisolation::Cuts::init | ( | const std::vector< double > & | etaBounds, |
const std::vector< double > & | coneSizes, | ||
const std::vector< double > & | thresholds | ||
) | [private] |
const Cuts::CutSpec & Cuts::operator() | ( | double | eta | ) | const |
Definition at line 44 of file Cuts.cc.
References MuonErrorMatrixValues_cff::etaRange, and i.
const CutSpec& muonisolation::Cuts::operator[] | ( | unsigned int | i | ) | const [inline] |
std::string Cuts::print | ( | void | ) | const |
Definition at line 55 of file Cuts.cc.
References query::result.
Referenced by L3MuonCombinedRelativeIsolationProducer::beginJob(), and L3MuonIsolationProducer::beginJob().
{ std::ostringstream result; typedef std::vector<CutSpec>::const_iterator IT; result << "Cuts : " << std::endl; for (IT it = theCuts.begin(), itEnd = theCuts.end(); it < itEnd; ++it) { result << "eta: "<<(*it).etaRange <<", cone: "<< (*it).conesize <<", cut: "<<(*it).threshold <<std::endl; } return result.str(); }
unsigned int muonisolation::Cuts::size | ( | void | ) | [inline] |
std::vector<CutSpec> muonisolation::Cuts::theCuts [private] |
Definition at line 42 of file Cuts.h.
Referenced by operator[](), and size().