CMS 3D CMS Logo

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

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

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  bTag(0),
39 
40  {}
unsigned int objType
Definition: MatchStruct.h:24
const void * thepointer
Definition: MatchStruct.h:30
float bTag
Definition: MatchStruct.h:28

◆ MatchStruct() [3/4]

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

Definition at line 41 of file MatchStruct.h.

42  : objType(obj),
43  pt(cand->pt()),
44  eta(cand->eta()),
45  phi(cand->phi()),
46  bTag(bTagVal),
47  lorentzVector(cand->p4()),
49 
50  {}
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() [4/4]

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

Definition at line 52 of file MatchStruct.h.

53  : objType(obj), pt(cand->pt()), eta(cand->eta()), phi(cand->phi()), thepointer(cand) {}
unsigned int objType
Definition: MatchStruct.h:24
const void * thepointer
Definition: MatchStruct.h:30

Member Function Documentation

◆ operator<()

bool MatchStruct::operator< ( MatchStruct  match)
inline

Definition at line 54 of file MatchStruct.h.

References match().

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

◆ operator>()

bool MatchStruct::operator> ( MatchStruct  match)
inline

Definition at line 55 of file MatchStruct.h.

References match().

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

Member Data Documentation

◆ bTag

float MatchStruct::bTag

Definition at line 28 of file MatchStruct.h.

◆ eta

float MatchStruct::eta

◆ lorentzVector

math::XYZTLorentzVector MatchStruct::lorentzVector

Definition at line 29 of file MatchStruct.h.

◆ objType

unsigned int MatchStruct::objType

Definition at line 24 of file MatchStruct.h.

◆ phi

float MatchStruct::phi

◆ pt

float MatchStruct::pt

◆ thepointer

const void* MatchStruct::thepointer

Definition at line 30 of file MatchStruct.h.