CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Friends
RefHitDef Class Reference

#include <OMTFConfiguration.h>

Public Member Functions

bool fitsRange (int iPhi) const
 
bool fitsRange (int iPhi) const
 
 RefHitDef (unsigned int aInput=15, int aPhiMin=5760, int aPhiMax=5760, unsigned int aRegion=99, unsigned int aRefLayer=99)
 
 RefHitDef (unsigned int aInput=15, int aPhiMin=5760, int aPhiMax=5760, unsigned int aRegion=99, unsigned int aRefLayer=99)
 

Public Attributes

unsigned int iInput
 Hit input number within a cone. More...
 
unsigned int iRefLayer
 Reference layer logic number (0-7) More...
 
unsigned int iRegion
 Region number assigned to this referecne hit. More...
 
std::pair< int, int > range
 

Friends

std::ostream & operator<< (std::ostream &out, const RefHitDef &aRefHitDef)
 
std::ostream & operator<< (std::ostream &out, const RefHitDef &aRefHitDef)
 

Detailed Description

Definition at line 16 of file OMTFConfiguration.h.

Constructor & Destructor Documentation

◆ RefHitDef() [1/2]

RefHitDef::RefHitDef ( unsigned int  aInput = 15,
int  aPhiMin = 5760,
int  aPhiMax = 5760,
unsigned int  aRegion = 99,
unsigned int  aRefLayer = 99 
)

Definition at line 16 of file OMTFConfiguration.cc.

17  : iInput(aInput), iRegion(aRegion), iRefLayer(aRefLayer), range(std::pair<int, int>(aPhiMin, aPhiMax)) {}
unsigned int iInput
Hit input number within a cone.
std::pair< int, int > range
unsigned int iRefLayer
Reference layer logic number (0-7)
unsigned int iRegion
Region number assigned to this referecne hit.

◆ RefHitDef() [2/2]

RefHitDef::RefHitDef ( unsigned int  aInput = 15,
int  aPhiMin = 5760,
int  aPhiMax = 5760,
unsigned int  aRegion = 99,
unsigned int  aRefLayer = 99 
)

Member Function Documentation

◆ fitsRange() [1/2]

bool RefHitDef::fitsRange ( int  iPhi) const

Definition at line 20 of file OMTFConfiguration.cc.

References range.

20 { return iPhi >= range.first && iPhi <= range.second; }
std::pair< int, int > range

◆ fitsRange() [2/2]

bool RefHitDef::fitsRange ( int  iPhi) const

Friends And Related Function Documentation

◆ operator<< [1/2]

std::ostream& operator<< ( std::ostream &  out,
const RefHitDef aRefHitDef 
)
friend

Definition at line 23 of file OMTFConfiguration.cc.

23  {
24  out << "iRefLayer: " << aRefHitDef.iRefLayer << " iInput: " << aRefHitDef.iInput << " iRegion: " << aRefHitDef.iRegion
25  << " range: (" << aRefHitDef.range.first << ", " << aRefHitDef.range.second << std::endl;
26 
27  return out;
28 }
unsigned int iInput
Hit input number within a cone.
std::pair< int, int > range
unsigned int iRefLayer
Reference layer logic number (0-7)
unsigned int iRegion
Region number assigned to this referecne hit.

◆ operator<< [2/2]

std::ostream& operator<< ( std::ostream &  out,
const RefHitDef aRefHitDef 
)
friend

Definition at line 23 of file OMTFConfiguration.cc.

23  {
24  out << "iRefLayer: " << aRefHitDef.iRefLayer << " iInput: " << aRefHitDef.iInput << " iRegion: " << aRefHitDef.iRegion
25  << " range: (" << aRefHitDef.range.first << ", " << aRefHitDef.range.second << std::endl;
26 
27  return out;
28 }
unsigned int iInput
Hit input number within a cone.
std::pair< int, int > range
unsigned int iRefLayer
Reference layer logic number (0-7)
unsigned int iRegion
Region number assigned to this referecne hit.

Member Data Documentation

◆ iInput

unsigned int RefHitDef::iInput

◆ iRefLayer

unsigned int RefHitDef::iRefLayer

Reference layer logic number (0-7)

Definition at line 35 of file OMTFConfiguration.h.

Referenced by OMTFProcessor< GoldenPatternType >::fillCounts(), operator<<(), and OMTFProcessor< GoldenPatternType >::processInput().

◆ iRegion

unsigned int RefHitDef::iRegion

Region number assigned to this referecne hit.

Definition at line 32 of file OMTFConfiguration.h.

Referenced by OMTFProcessor< GoldenPatternType >::fillCounts(), operator<<(), and OMTFProcessor< GoldenPatternType >::processInput().

◆ range

std::pair< int, int > RefHitDef::range

Local to processor phi range. Hit has to fit into this range to be assigned to this iRegion;

Definition at line 39 of file OMTFConfiguration.h.

Referenced by fitsRange(), and operator<<().