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

Date:
2012/03/23 11:50:56
Revision:
1.7
Author
J. Duarte Campderros

Definition at line 24 of file MatchStruct.cc.

Constructor & Destructor Documentation

MatchStruct::MatchStruct ( )
inline

Definition at line 31 of file MatchStruct.cc.

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

Definition at line 39 of file MatchStruct.cc.

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

Definition at line 49 of file MatchStruct.cc.

49  :
50  objType(obj),
51  pt(cand->pt()),
52  eta(cand->eta()),
53  phi(cand->phi()),
54  thepointer(cand)
55  {
56  }
unsigned int objType
Definition: MatchStruct.cc:26
double phi() const
azimuthal angle of momentum vector
Definition: TrackBase.h:139
double eta() const
pseudorapidity of momentum vector
Definition: TrackBase.h:141
const void * thepointer
Definition: MatchStruct.cc:30
double pt() const
track transverse momentum
Definition: TrackBase.h:131

Member Function Documentation

bool MatchStruct::operator< ( MatchStruct  match)
inline

Definition at line 57 of file MatchStruct.cc.

References pt.

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

Definition at line 61 of file MatchStruct.cc.

References pt.

62  {
63  return this->pt > match.pt;
64  }

Member Data Documentation

float MatchStruct::eta

Definition at line 28 of file MatchStruct.cc.

unsigned int MatchStruct::objType

Definition at line 26 of file MatchStruct.cc.

float MatchStruct::phi

Definition at line 29 of file MatchStruct.cc.

float MatchStruct::pt

Definition at line 27 of file MatchStruct.cc.

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

const void* MatchStruct::thepointer

Definition at line 30 of file MatchStruct.cc.