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

Constructor & Destructor Documentation

◆ MatchStruct() [1/2]

HLTMuonPlotter::MatchStruct::MatchStruct ( )
inline

Definition at line 84 of file HLTMuonPlotter.h.

84  {
85  candBase = nullptr;
86  candL1 = nullptr;
87  }

References candBase, and candL1.

◆ MatchStruct() [2/2]

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

Definition at line 88 of file HLTMuonPlotter.h.

88  {
89  candBase = cand;
90  candL1 = nullptr;
91  }

References candBase, and candL1.

Member Function Documentation

◆ operator<()

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

Definition at line 92 of file HLTMuonPlotter.h.

92 { return candBase->pt() < match.candBase->pt(); }

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

◆ operator>()

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

Definition at line 93 of file HLTMuonPlotter.h.

93 { return candBase->pt() > match.candBase->pt(); }

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

Member Data Documentation

◆ candBase

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

Definition at line 81 of file HLTMuonPlotter.h.

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

◆ candHlt

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

Definition at line 83 of file HLTMuonPlotter.h.

◆ candL1

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

Definition at line 82 of file HLTMuonPlotter.h.

Referenced by MatchStruct().

reco::Candidate::pt
virtual double pt() const =0
transverse momentum
match
std::pair< typename Association::data_type::first_type, double > match(Reference key, Association association, bool bestMatchByMaxValue)
Generic matching function.
Definition: Utils.h:10
cand
Definition: decayParser.h:32
HLTMuonPlotter::MatchStruct::candL1
const l1t::Muon * candL1
Definition: HLTMuonPlotter.h:82
HLTMuonPlotter::MatchStruct::candBase
const reco::Candidate * candBase
Definition: HLTMuonPlotter.h:81