#include <PFMuonSelector.h>
Public Types | |
enum | Version_t { TOPPAG12_LJETS, N_VERSIONS } |
Public Types inherited from Selector< pat::Muon > | |
typedef std::binary_function < pat::Muon, pat::strbitset, bool > | base_type |
typedef std::pair< index_type, size_t > | cut_flow_item |
typedef std::vector < cut_flow_item > | cut_flow_map |
typedef pat::Muon | data_type |
typedef std::map< index_type, double > | double_map |
typedef pat::strbitset::index_type | index_type |
typedef std::map< index_type, int > | int_map |
Public Member Functions | |
void | initialize (Version_t version, double chi2=10.0, int minTrackerLayers=6, int minValidMuonHits=1, double maxIp=0.2, int minPixelHits=1, int minNMatches=2, double pfiso=0.12) |
bool | operator() (const pat::Muon &muon, pat::strbitset &ret) |
This provides the interface for base classes to select objects. More... | |
PFMuonSelector () | |
PFMuonSelector (edm::ParameterSet const ¶meters, edm::ConsumesCollector &&iC) | |
PFMuonSelector (edm::ParameterSet const ¶meters) | |
bool | TopPag12LjetsCuts (const pat::Muon &muon, pat::strbitset &ret) |
Public Member Functions inherited from Selector< pat::Muon > | |
void | clear (std::string const &s) |
Turn off a given selection cut. More... | |
void | clear (index_type const &i) |
bool | considerCut (std::string const &s) const |
consider the cut at index "s" More... | |
bool | considerCut (index_type const &i) const |
int | cut (index_type const &i, int val) const |
Access the int cut values at index "s". More... | |
double | cut (index_type const &i, double val) const |
Access the double cut values at index "s". More... | |
int | cut (std::string s, int val) const |
Access the int cut values at index "s". More... | |
double | cut (std::string s, double val) const |
Access the double cut values at index "s". More... | |
pat::strbitset | getBitTemplate () const |
Get an empty bitset with the proper names. More... | |
double | getPasses (std::string const &s) const |
Return the number of passing cases. More... | |
double | getPasses (index_type const &i) const |
bool | ignoreCut (std::string const &s) const |
ignore the cut at index "s" More... | |
bool | ignoreCut (index_type const &i) const |
virtual bool | operator() (pat::Muonconst &t) |
This provides an alternative signature without the second ret. More... | |
virtual bool | operator() (pat::Muonconst &t, edm::EventBase const &e, pat::strbitset &ret) |
This provides an alternative signature that includes extra information. More... | |
virtual bool | operator() (pat::Muonconst &t, edm::EventBase const &e) |
This provides an alternative signature that includes extra information. More... | |
bool | operator[] (std::string const &s) const |
bool | operator[] (index_type const &i) const |
void | passCut (pat::strbitset &ret, std::string const &s) |
Passing cuts. More... | |
void | passCut (pat::strbitset &ret, index_type const &i) |
void | print (std::ostream &out) const |
Print the cut flow. More... | |
void | printActiveCuts (std::ostream &out) const |
Print the cuts being considered. More... | |
virtual void | push_back (std::string const &s) |
This is the registration of an individual cut string. More... | |
virtual void | push_back (std::string const &s, int cut) |
This is the registration of an individual cut string, with an int cut value. More... | |
virtual void | push_back (std::string const &s, double cut) |
This is the registration of an individual cut string, with a double cut value. More... | |
Selector () | |
Constructor clears the bits. More... | |
void | set (std::string const &s, bool val=true) |
Set a given selection cut, on or off. More... | |
void | set (index_type const &i, bool val=true) |
void | set (std::string const &s, int cut, bool val=true) |
Set a given selection cut, on or off, and reset int cut value. More... | |
void | set (index_type const &i, int cut, bool val=true) |
void | set (std::string const &s, double cut, bool val=true) |
Set a given selection cut, on or off, and reset int cut value. More... | |
void | set (index_type const &i, double cut, bool val=true) |
void | setIgnored (pat::strbitset &ret) |
set ignored bits More... | |
void | setIgnoredCuts (std::vector< std::string > const &bitsToIgnore) |
set the bits to ignore from a vector More... | |
virtual | ~Selector () |
Public Attributes | |
bool | verbose_ |
Additional Inherited Members | |
Protected Attributes inherited from Selector< pat::Muon > | |
pat::strbitset | bits_ |
the bitset indexed by strings More... | |
cut_flow_map | cutFlow_ |
map of cut flows in "human" order More... | |
double_map | doubleCuts_ |
the double-value cut map More... | |
int_map | intCuts_ |
the int-value cut map More... | |
pat::strbitset | retInternal_ |
internal ret if users don't care about return bits More... | |
Definition at line 16 of file PFMuonSelector.h.
Enumerator | |
---|---|
TOPPAG12_LJETS | |
N_VERSIONS |
Definition at line 22 of file PFMuonSelector.h.
|
inline |
Definition at line 24 of file PFMuonSelector.h.
|
inline |
Definition at line 27 of file PFMuonSelector.h.
|
inline |
Definition at line 32 of file PFMuonSelector.h.
References Exception, edm::ParameterSet::exists(), Selector< pat::Muon >::getBitTemplate(), edm::ParameterSet::getParameter(), initialize(), N_VERSIONS, Selector< pat::Muon >::retInternal_, Selector< pat::Muon >::setIgnoredCuts(), AlCaHLTBitMon_QueryRunRegistry::string, TOPPAG12_LJETS, verbose_, and relval_steps::version.
|
inline |
Definition at line 63 of file PFMuonSelector.h.
References Selector< pat::Muon >::bits_, beam_dqm_sourceclient-live_cfg::chi2, indexChi2_, indexMaxIp_, indexmaxPfRelIso_, indexMinTrackerLayers_, indexminValidMuHits_, indexPixHits_, indexStations_, HLT_25ns10e33_v2_cff::minPixelHits, Selector< pat::Muon >::push_back(), Selector< pat::Muon >::set(), TOPPAG12_LJETS, relval_steps::version, and version_.
Referenced by PFMuonSelector().
|
inlinevirtual |
This provides the interface for base classes to select objects.
Implements Selector< pat::Muon >.
Definition at line 111 of file PFMuonSelector.h.
References TOPPAG12_LJETS, TopPag12LjetsCuts(), and version_.
|
inline |
Definition at line 121 of file PFMuonSelector.h.
References Selector< pat::Muon >::cut(), pat::Muon::dB(), pat::Muon::globalTrack(), Selector< pat::Muon >::ignoreCut(), indexChi2_, indexMaxIp_, indexmaxPfRelIso_, indexMinTrackerLayers_, indexminValidMuHits_, indexPixHits_, indexStations_, pat::Muon::innerTrack(), edm::Ref< C, T, F >::isAvailable(), reco::Muon::isGlobalMuon(), edm::Ref< C, T, F >::isNonnull(), GeomDetEnumerators::isTracker(), reco::Muon::isTrackerMuon(), HLT_25ns10e33_v2_cff::minPixelHits, pat::Muon::normChi2(), reco::Muon::numberOfMatches(), Selector< pat::Muon >::passCut(), pat::PfChargedHadronIso, pat::PfGammaIso, pat::PfNeutralHadronIso, EnergyCorrector::pt, reco::LeafCandidate::pt(), runTheMatrix::ret, pat::strbitset::set(), Selector< pat::Muon >::setIgnored(), pat::Muon::track(), and pat::Lepton< LeptonType >::userIsolation().
Referenced by operator()().
|
private |
Definition at line 171 of file PFMuonSelector.h.
Referenced by initialize(), and TopPag12LjetsCuts().
|
private |
Definition at line 174 of file PFMuonSelector.h.
Referenced by initialize(), and TopPag12LjetsCuts().
|
private |
Definition at line 177 of file PFMuonSelector.h.
Referenced by initialize(), and TopPag12LjetsCuts().
|
private |
Definition at line 172 of file PFMuonSelector.h.
Referenced by initialize(), and TopPag12LjetsCuts().
|
private |
Definition at line 173 of file PFMuonSelector.h.
Referenced by initialize(), and TopPag12LjetsCuts().
|
private |
Definition at line 175 of file PFMuonSelector.h.
Referenced by initialize(), and TopPag12LjetsCuts().
|
private |
Definition at line 176 of file PFMuonSelector.h.
Referenced by initialize(), and TopPag12LjetsCuts().
bool PFMuonSelector::verbose_ |
Definition at line 20 of file PFMuonSelector.h.
Referenced by PFMuonSelector().
|
private |
Definition at line 169 of file PFMuonSelector.h.
Referenced by initialize(), and operator()().