CMS 3D CMS Logo

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

#include <MatchStruct.h>

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.h.

Constructor & Destructor Documentation

MatchStruct::MatchStruct ( )
inline

Definition at line 31 of file MatchStruct.h.

31 : objType(0), pt(0), eta(0), phi(0), bTag(0), lorentzVector(0, 0, 0, 0), thepointer(nullptr) {}
math::XYZTLorentzVector lorentzVector
Definition: MatchStruct.h:29
unsigned int objType
Definition: MatchStruct.h:24
const void * thepointer
Definition: MatchStruct.h:30
float bTag
Definition: MatchStruct.h:28
MatchStruct::MatchStruct ( const reco::Candidate cand,
const unsigned int &  obj 
)
inline

Definition at line 32 of file MatchStruct.h.

33  : objType(obj),
34  pt(cand->pt()),
35  eta(cand->eta()),
36  phi(cand->phi()),
37  thepointer(cand)
38 
39  {}
unsigned int objType
Definition: MatchStruct.h:24
virtual double pt() const =0
transverse momentum
const void * thepointer
Definition: MatchStruct.h:30
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 40 of file MatchStruct.h.

41  : objType(obj),
42  pt(cand->pt()),
43  eta(cand->eta()),
44  phi(cand->phi()),
45  bTag(bTagVal),
46  lorentzVector(cand->p4()),
47  thepointer(cand)
48 
49  {}
math::XYZTLorentzVector lorentzVector
Definition: MatchStruct.h:29
unsigned int objType
Definition: MatchStruct.h:24
virtual double pt() const =0
transverse momentum
const void * thepointer
Definition: MatchStruct.h:30
float bTag
Definition: MatchStruct.h:28
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 51 of file MatchStruct.h.

52  : objType(obj), pt(cand->pt()), eta(cand->eta()), phi(cand->phi()), thepointer(cand) {}
unsigned int objType
Definition: MatchStruct.h:24
double phi() const
azimuthal angle of momentum vector
Definition: TrackBase.h:649
double eta() const
pseudorapidity of momentum vector
Definition: TrackBase.h:652
const void * thepointer
Definition: MatchStruct.h:30
double pt() const
track transverse momentum
Definition: TrackBase.h:637

Member Function Documentation

bool MatchStruct::operator< ( MatchStruct  match)
inline

Definition at line 53 of file MatchStruct.h.

References pt.

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

Definition at line 54 of file MatchStruct.h.

References pt.

54 { return this->pt > match.pt; }

Member Data Documentation

float MatchStruct::bTag

Definition at line 28 of file MatchStruct.h.

Referenced by matchesByDescendingBtag::operator()().

float MatchStruct::eta

Definition at line 26 of file MatchStruct.h.

Referenced by Particle.Particle::__str__(), Jet.Jet::jetID(), and Jet.Jet::puJetId().

math::XYZTLorentzVector MatchStruct::lorentzVector

Definition at line 29 of file MatchStruct.h.

unsigned int MatchStruct::objType

Definition at line 24 of file MatchStruct.h.

float MatchStruct::phi

Definition at line 27 of file MatchStruct.h.

Referenced by Particle.Particle::__str__(), and ntupleDataFormat.Track::phiPull().

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

Definition at line 30 of file MatchStruct.h.