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::Key ( int  iEta = 99,
unsigned int  iPt = 0,
int  iCharge = 0,
unsigned int  iNumber = 999 
)
inline

Definition at line 16 of file GoldenPattern.h.

17  : theEtaCode(iEta), thePtCode(iPt), theCharge(iCharge), theNumber(iNumber) {}

Member Function Documentation

◆ number()

unsigned int Key::number ( ) const
inline

Definition at line 32 of file GoldenPattern.h.

32 { return theNumber; }

References theNumber.

Referenced by OMTFSorter::sortRefHitResults().

◆ operator<()

bool Key::operator< ( const Key o) const
inline

Definition at line 19 of file GoldenPattern.h.

19 { return (theNumber < o.theNumber); }

References EcalTangentSkim_cfg::o, and theNumber.

◆ operator==()

bool Key::operator== ( const Key o) const
inline

Definition at line 21 of file GoldenPattern.h.

21  {
22  return theEtaCode == o.theEtaCode && thePtCode == o.thePtCode && theCharge == o.theCharge &&
23  theNumber == o.theNumber;
24  }

References EcalTangentSkim_cfg::o, theCharge, theEtaCode, theNumber, and thePtCode.

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 26 of file GoldenPattern.h.

26  {
27  out << "Key_" << o.theNumber << ": (eta=" << o.theEtaCode << ", pt=" << o.thePtCode << ", charge=" << o.theCharge
28  << ")";
29  return out;
30  }

Member Data Documentation

◆ theCharge

int Key::theCharge

◆ theEtaCode

int Key::theEtaCode

Definition at line 34 of file GoldenPattern.h.

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

◆ theNumber

unsigned int Key::theNumber

Definition at line 37 of file GoldenPattern.h.

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

◆ thePtCode

unsigned int Key::thePtCode
Key::thePtCode
unsigned int thePtCode
Definition: GoldenPattern.h:35
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:42
Key::theCharge
int theCharge
Definition: GoldenPattern.h:36
Key::theNumber
unsigned int theNumber
Definition: GoldenPattern.h:37
Key::theEtaCode
int theEtaCode
Definition: GoldenPattern.h:34
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31
L1TowerCalibrationProducer_cfi.iEta
iEta
Definition: L1TowerCalibrationProducer_cfi.py:60