CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
HLTMuonPlotter::MatchStruct Struct Reference

Public Member Functions

 MatchStruct ()
 
 MatchStruct (const reco::Candidate *cand)
 
bool operator< (MatchStruct match)
 
bool operator> (MatchStruct match)
 

Public Attributes

const reco::CandidatecandBase
 
std::vector< const reco::RecoChargedCandidate * > candHlt
 
const l1t::MuoncandL1
 

Detailed Description

Definition at line 72 of file HLTMuonPlotter.h.

Constructor & Destructor Documentation

◆ MatchStruct() [1/2]

HLTMuonPlotter::MatchStruct::MatchStruct ( )
inline

Definition at line 76 of file HLTMuonPlotter.h.

References candBase, and candL1.

76  {
77  candBase = nullptr;
78  candL1 = nullptr;
79  }
const reco::Candidate * candBase
const l1t::Muon * candL1

◆ MatchStruct() [2/2]

HLTMuonPlotter::MatchStruct::MatchStruct ( const reco::Candidate cand)
inline

Definition at line 80 of file HLTMuonPlotter.h.

References candBase, and candL1.

80  {
81  candBase = cand;
82  candL1 = nullptr;
83  }
const reco::Candidate * candBase
const l1t::Muon * candL1

Member Function Documentation

◆ operator<()

bool HLTMuonPlotter::MatchStruct::operator< ( MatchStruct  match)
inline

Definition at line 84 of file HLTMuonPlotter.h.

References candBase, match(), and reco::Candidate::pt().

84 { return candBase->pt() < match.candBase->pt(); }
virtual double pt() const =0
transverse momentum
const reco::Candidate * candBase
std::pair< typename Association::data_type::first_type, double > match(Reference key, Association association, bool bestMatchByMaxValue)
Generic matching function.
Definition: Utils.h:10

◆ operator>()

bool HLTMuonPlotter::MatchStruct::operator> ( MatchStruct  match)
inline

Definition at line 85 of file HLTMuonPlotter.h.

References candBase, match(), and reco::Candidate::pt().

85 { return candBase->pt() > match.candBase->pt(); }
virtual double pt() const =0
transverse momentum
const reco::Candidate * candBase
std::pair< typename Association::data_type::first_type, double > match(Reference key, Association association, bool bestMatchByMaxValue)
Generic matching function.
Definition: Utils.h:10

Member Data Documentation

◆ candBase

const reco::Candidate* HLTMuonPlotter::MatchStruct::candBase

Definition at line 73 of file HLTMuonPlotter.h.

Referenced by MatchStruct(), operator<(), and operator>().

◆ candHlt

std::vector<const reco::RecoChargedCandidate *> HLTMuonPlotter::MatchStruct::candHlt

Definition at line 75 of file HLTMuonPlotter.h.

◆ candL1

const l1t::Muon* HLTMuonPlotter::MatchStruct::candL1

Definition at line 74 of file HLTMuonPlotter.h.

Referenced by MatchStruct().