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::Candidate *cand, const unsigned int &obj, const float &bTagVal)
 
 MatchStruct (const reco::Track *cand, const unsigned int &obj)
 
bool operator< (MatchStruct match)
 
bool operator> (MatchStruct match)
 

Public Attributes

float bTag
 
float eta
 
math::XYZTLorentzVector lorentzVector
 
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 23 of file MatchStruct.cc.

Constructor & Destructor Documentation

MatchStruct::MatchStruct ( )
inline

Definition at line 32 of file MatchStruct.cc.

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

Definition at line 42 of file MatchStruct.cc.

42  :
43  objType(obj),
44  pt(cand->pt()),
45  eta(cand->eta()),
46  phi(cand->phi()),
47  thepointer(cand)
48 
49  {
50  }
unsigned int objType
Definition: MatchStruct.cc:25
virtual double pt() const =0
transverse momentum
const void * thepointer
Definition: MatchStruct.cc:31
virtual double phi() const =0
momentum azimuthal angle
virtual double eta() const =0
momentum pseudorapidity
MatchStruct::MatchStruct ( const reco::Candidate cand,
const unsigned int &  obj,
const float &  bTagVal 
)
inline

Definition at line 51 of file MatchStruct.cc.

51  :
52  objType(obj),
53  pt(cand->pt()),
54  eta(cand->eta()),
55  phi(cand->phi()),
56  bTag(bTagVal),
57  lorentzVector(cand->p4()),
58  thepointer(cand)
59 
60  {
61  }
math::XYZTLorentzVector lorentzVector
Definition: MatchStruct.cc:30
unsigned int objType
Definition: MatchStruct.cc:25
virtual double pt() const =0
transverse momentum
const void * thepointer
Definition: MatchStruct.cc:31
virtual double phi() const =0
momentum azimuthal angle
virtual double eta() const =0
momentum pseudorapidity
virtual const LorentzVector & p4() const =0
four-momentum Lorentz vector
MatchStruct::MatchStruct ( const reco::Track cand,
const unsigned int &  obj 
)
inline

Definition at line 63 of file MatchStruct.cc.

63  :
64  objType(obj),
65  pt(cand->pt()),
66  eta(cand->eta()),
67  phi(cand->phi()),
68  thepointer(cand)
69  {
70  }
unsigned int objType
Definition: MatchStruct.cc:25
double phi() const
azimuthal angle of momentum vector
Definition: TrackBase.h:598
double eta() const
pseudorapidity of momentum vector
Definition: TrackBase.h:604
const void * thepointer
Definition: MatchStruct.cc:31
double pt() const
track transverse momentum
Definition: TrackBase.h:574

Member Function Documentation

bool MatchStruct::operator< ( MatchStruct  match)
inline

Definition at line 71 of file MatchStruct.cc.

References pt.

72  {
73  return this->pt < match.pt;
74  }
bool MatchStruct::operator> ( MatchStruct  match)
inline

Definition at line 75 of file MatchStruct.cc.

References pt.

76  {
77  return this->pt > match.pt;
78  }

Member Data Documentation

float MatchStruct::bTag

Definition at line 29 of file MatchStruct.cc.

Referenced by matchesByDescendingBtag::operator()().

float MatchStruct::eta
math::XYZTLorentzVector MatchStruct::lorentzVector

Definition at line 30 of file MatchStruct.cc.

unsigned int MatchStruct::objType

Definition at line 25 of file MatchStruct.cc.

float MatchStruct::phi

Definition at line 28 of file MatchStruct.cc.

Referenced by Particle.Particle::__str__().

float MatchStruct::pt
const void* MatchStruct::thepointer

Definition at line 31 of file MatchStruct.cc.