CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Friends
Key Struct Reference

#include <GoldenPattern.h>

Public Member Functions

 Key (int iEta=99, unsigned int iPt=0, int iCharge=0, unsigned int iNumber=999)
 
unsigned int number () const
 
bool operator< (const Key &o) const
 
bool operator== (const Key &o) const
 

Public Attributes

int theCharge
 
int theEtaCode
 
unsigned int theNumber
 
unsigned int thePtCode
 

Friends

std::ostream & operator<< (std::ostream &out, const Key &o)
 

Detailed Description

Definition at line 15 of file GoldenPattern.h.

Constructor & Destructor Documentation

Key::Key ( int  iEta = 99,
unsigned int  iPt = 0,
int  iCharge = 0,
unsigned int  iNumber = 999 
)
inline

Definition at line 17 of file GoldenPattern.h.

17  :
18  theEtaCode(iEta), thePtCode(iPt), theCharge(iCharge), theNumber(iNumber) {}
unsigned int theNumber
Definition: GoldenPattern.h:36
int theCharge
Definition: GoldenPattern.h:35
unsigned int thePtCode
Definition: GoldenPattern.h:34
int theEtaCode
Definition: GoldenPattern.h:33

Member Function Documentation

unsigned int Key::number ( ) const
inline

Definition at line 31 of file GoldenPattern.h.

References theNumber.

Referenced by OMTFSorter::sortRefHitResults().

31 {return theNumber;}
unsigned int theNumber
Definition: GoldenPattern.h:36
bool Key::operator< ( const Key o) const
inline

Definition at line 20 of file GoldenPattern.h.

References theNumber.

20 {return (theNumber < o.theNumber);}
unsigned int theNumber
Definition: GoldenPattern.h:36
bool Key::operator== ( const Key o) const
inline

Definition at line 22 of file GoldenPattern.h.

References theCharge, theEtaCode, theNumber, and thePtCode.

22  {
24  }
unsigned int theNumber
Definition: GoldenPattern.h:36
int theCharge
Definition: GoldenPattern.h:35
unsigned int thePtCode
Definition: GoldenPattern.h:34
int theEtaCode
Definition: GoldenPattern.h:33

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const Key o 
)
friend

Definition at line 26 of file GoldenPattern.h.

Referenced by GoldenPattern::pdfValue().

26  {
27  out << "Key_"<<o.theNumber<<": (eta="<<o.theEtaCode<<", pt="<<o.thePtCode<<", charge="<<o.theCharge<<")";
28  return out;
29  }
unsigned int theNumber
Definition: GoldenPattern.h:36
int theCharge
Definition: GoldenPattern.h:35
unsigned int thePtCode
Definition: GoldenPattern.h:34
int theEtaCode
Definition: GoldenPattern.h:33

Member Data Documentation

int Key::theCharge
int Key::theEtaCode

Definition at line 33 of file GoldenPattern.h.

Referenced by operator==(), and XMLConfigWriter::writeResultsData().

unsigned int Key::theNumber

Definition at line 36 of file GoldenPattern.h.

Referenced by number(), operator<(), and operator==().

unsigned int Key::thePtCode