CMS 3D CMS Logo

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() [1/4]

MatchStruct::MatchStruct ( )
inline

Definition at line 31 of file MatchStruct.cc.

31 : objType(0), pt(0), eta(0), phi(0), bTag(0), lorentzVector(0, 0, 0, 0), thepointer(nullptr) {}

◆ MatchStruct() [2/4]

MatchStruct::MatchStruct ( const reco::Candidate cand,
const unsigned int &  obj 
)
inline

Definition at line 32 of file MatchStruct.cc.

33  : objType(obj),
34  pt(cand->pt()),
35  eta(cand->eta()),
36  phi(cand->phi()),
38 
39  {}

◆ MatchStruct() [3/4]

MatchStruct::MatchStruct ( const reco::Candidate cand,
const unsigned int &  obj,
const float &  bTagVal 
)
inline

Definition at line 40 of file MatchStruct.cc.

41  : objType(obj),
42  pt(cand->pt()),
43  eta(cand->eta()),
44  phi(cand->phi()),
45  bTag(bTagVal),
46  lorentzVector(cand->p4()),
48 
49  {}

◆ MatchStruct() [4/4]

MatchStruct::MatchStruct ( const reco::Track cand,
const unsigned int &  obj 
)
inline

Definition at line 51 of file MatchStruct.cc.

52  : objType(obj), pt(cand->pt()), eta(cand->eta()), phi(cand->phi()), thepointer(cand) {}

Member Function Documentation

◆ operator<()

bool MatchStruct::operator< ( MatchStruct  match)
inline

Definition at line 53 of file MatchStruct.cc.

53 { return this->pt < match.pt; }

References match().

◆ operator>()

bool MatchStruct::operator> ( MatchStruct  match)
inline

Definition at line 54 of file MatchStruct.cc.

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

References match().

Member Data Documentation

◆ bTag

float MatchStruct::bTag

Definition at line 28 of file MatchStruct.cc.

◆ eta

float MatchStruct::eta

Definition at line 26 of file MatchStruct.cc.

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

◆ lorentzVector

math::XYZTLorentzVector MatchStruct::lorentzVector

Definition at line 29 of file MatchStruct.cc.

◆ objType

unsigned int MatchStruct::objType

Definition at line 24 of file MatchStruct.cc.

◆ phi

float MatchStruct::phi

Definition at line 27 of file MatchStruct.cc.

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

◆ pt

float MatchStruct::pt

◆ thepointer

const void* MatchStruct::thepointer

Definition at line 30 of file MatchStruct.cc.

MatchStruct::objType
unsigned int objType
Definition: MatchStruct.cc:24
MatchStruct::phi
float phi
Definition: MatchStruct.cc:27
MatchStruct::pt
float pt
Definition: MatchStruct.cc:25
getGTfromDQMFile.obj
obj
Definition: getGTfromDQMFile.py:32
MatchStruct::thepointer
const void * thepointer
Definition: MatchStruct.cc:30
cand
Definition: decayParser.h:32
MatchStruct::lorentzVector
math::XYZTLorentzVector lorentzVector
Definition: MatchStruct.cc:29
MatchStruct::bTag
float bTag
Definition: MatchStruct.cc:28
MatchStruct::eta
float eta
Definition: MatchStruct.cc:26