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 65 of file HLTMuonPlotter.h.

Constructor & Destructor Documentation

◆ MatchStruct() [1/2]

HLTMuonPlotter::MatchStruct::MatchStruct ( )
inline

Definition at line 69 of file HLTMuonPlotter.h.

References candBase, and candL1.

69  {
70  candBase = nullptr;
71  candL1 = nullptr;
72  }
const reco::Candidate * candBase
const l1t::Muon * candL1

◆ MatchStruct() [2/2]

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

Definition at line 73 of file HLTMuonPlotter.h.

References candBase, and candL1.

73  {
74  candBase = cand;
75  candL1 = nullptr;
76  }
const reco::Candidate * candBase
const l1t::Muon * candL1

Member Function Documentation

◆ operator<()

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

Definition at line 77 of file HLTMuonPlotter.h.

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

77 { 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 78 of file HLTMuonPlotter.h.

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

78 { 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 66 of file HLTMuonPlotter.h.

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

◆ candHlt

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

Definition at line 68 of file HLTMuonPlotter.h.

◆ candL1

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

Definition at line 67 of file HLTMuonPlotter.h.

Referenced by MatchStruct().