CMS 3D CMS Logo

Public Member Functions | Public Attributes

MatchStruct Class Reference

List of all members.

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.

                     :
                objType(0),
                pt(0),
                eta(0),
                phi(0),
                thepointer(0)
        {
        }
MatchStruct::MatchStruct ( const reco::Candidate cand,
const unsigned int &  obj 
) [inline]

Definition at line 39 of file MatchStruct.cc.

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

        {
        }
MatchStruct::MatchStruct ( const reco::Track cand,
const unsigned int &  obj 
) [inline]

Definition at line 49 of file MatchStruct.cc.

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

Member Function Documentation

bool MatchStruct::operator< ( MatchStruct  match) [inline]

Definition at line 57 of file MatchStruct.cc.

References pt.

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

Definition at line 61 of file MatchStruct.cc.

References pt.

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

Member Data Documentation

Definition at line 28 of file MatchStruct.cc.

unsigned int MatchStruct::objType

Definition at line 26 of file MatchStruct.cc.

Definition at line 29 of file MatchStruct.cc.

Definition at line 27 of file MatchStruct.cc.

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

Definition at line 30 of file MatchStruct.cc.