CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
MatchStruct Class Reference

Public Member Functions

 MatchStruct ()
 
 MatchStruct (const reco::Candidate *cand, const unsigned int &obj)
 
 MatchStruct (const reco::Track *cand, const unsigned int &obj)
 
bool operator< (MatchStruct match)
 
bool operator> (MatchStruct match)
 

Public Attributes

float eta
 
unsigned int objType
 
float phi
 
float pt
 
const void * thepointer
 

Detailed Description

Generate histograms for trigger efficiencies Higgs related Documentation available on the CMS TWiki: https://twiki.cern.ch/twiki/bin/view/CMS/HiggsWGHLTValidate

Author
J. Duarte Campderros

Definition at line 22 of file MatchStruct.cc.

Constructor & Destructor Documentation

MatchStruct::MatchStruct ( )
inline

Definition at line 29 of file MatchStruct.cc.

29  :
30  objType(0),
31  pt(0),
32  eta(0),
33  phi(0),
34  thepointer(0)
35  {
36  }
unsigned int objType
Definition: MatchStruct.cc:24
const void * thepointer
Definition: MatchStruct.cc:28
MatchStruct::MatchStruct ( const reco::Candidate cand,
const unsigned int &  obj 
)
inline

Definition at line 37 of file MatchStruct.cc.

37  :
38  objType(obj),
39  pt(cand->pt()),
40  eta(cand->eta()),
41  phi(cand->phi()),
42  thepointer(cand)
43 
44  {
45  }
unsigned int objType
Definition: MatchStruct.cc:24
virtual float eta() const =0
momentum pseudorapidity
virtual float phi() const =0
momentum azimuthal angle
virtual float pt() const =0
transverse momentum
const void * thepointer
Definition: MatchStruct.cc:28
MatchStruct::MatchStruct ( const reco::Track cand,
const unsigned int &  obj 
)
inline

Definition at line 47 of file MatchStruct.cc.

47  :
48  objType(obj),
49  pt(cand->pt()),
50  eta(cand->eta()),
51  phi(cand->phi()),
52  thepointer(cand)
53  {
54  }
unsigned int objType
Definition: MatchStruct.cc:24
double phi() const
azimuthal angle of momentum vector
Definition: TrackBase.h:621
double eta() const
pseudorapidity of momentum vector
Definition: TrackBase.h:627
const void * thepointer
Definition: MatchStruct.cc:28
double pt() const
track transverse momentum
Definition: TrackBase.h:597

Member Function Documentation

bool MatchStruct::operator< ( MatchStruct  match)
inline

Definition at line 55 of file MatchStruct.cc.

References pt.

56  {
57  return this->pt < match.pt;
58  }
bool MatchStruct::operator> ( MatchStruct  match)
inline

Definition at line 59 of file MatchStruct.cc.

References pt.

60  {
61  return this->pt > match.pt;
62  }

Member Data Documentation

float MatchStruct::eta

Definition at line 26 of file MatchStruct.cc.

unsigned int MatchStruct::objType

Definition at line 24 of file MatchStruct.cc.

float MatchStruct::phi

Definition at line 27 of file MatchStruct.cc.

float MatchStruct::pt

Definition at line 25 of file MatchStruct.cc.

Referenced by matchesByDescendingPt::operator()(), operator<(), and operator>().

const void* MatchStruct::thepointer

Definition at line 28 of file MatchStruct.cc.