Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

CellID Class Reference

#include <CellID.h>

List of all members.

Public Methods

 CellID ()
 Constructors. More...

 CellID ( long cellID )
 CellID ( long calorimeterNumber, long rawNumber, long columnNumber )
 ~CellID ()
 Destructor. More...

long calorimeterNumber () const
 Retrieve calorimeter number. More...

long rawNumber () const
 Retrieve raw number. More...

long columnNumber () const
 Retrieve column number. More...

long id () const
 Retrieve calorimeter cell ID. More...

void setID ( long calorimeterNumber, long rawNumber, long columnNumber )
 Update calorimeter cell ID. More...

std::ostream& fillStream ( std::ostream& s ) const
 Fill the output stream (ASCII). More...


Private Types

enum  { CalorimeterEncoding = 1000000, RawEncoding = 1000, ColumnEncoding = 1 }

Private Attributes

long m_id

Friends

StreamBuffer& operator<< ( StreamBuffer& s, const CellID& obj )
 Serialize the object for writing. More...

StreamBuffer& operator>> ( StreamBuffer& s, CellID& obj )
 Serialize the object for reading. More...

std::ostream& operator<< ( std::ostream& s, const CellID& obj )
 Output operator(ASCII). More...


Member Enumeration Documentation

anonymous enum [private]
 

Enumeration values:
CalorimeterEncoding  
RawEncoding  
ColumnEncoding  

Definition at line 29 of file CellID.h.


Constructor & Destructor Documentation

CellID::CellID ( ) [inline]
 

Constructors.

Definition at line 34 of file CellID.h.

CellID::CellID ( long cellID ) [inline]
 

Definition at line 36 of file CellID.h.

CellID::CellID ( long calorimeterNumber,
long rawNumber,
long columnNumber ) [inline]
 

Definition at line 38 of file CellID.h.

CellID::~CellID ( ) [inline]
 

Destructor.

Definition at line 42 of file CellID.h.


Member Function Documentation

long CellID::calorimeterNumber ( ) const [inline]
 

Retrieve calorimeter number.

Definition at line 45 of file CellID.h.

Referenced by columnNumber(), fillStream(), and rawNumber().

long CellID::columnNumber ( ) const [inline]
 

Retrieve column number.

Definition at line 54 of file CellID.h.

Referenced by fillStream().

std::ostream & CellID::fillStream ( std::ostream & s ) const [inline]
 

Fill the output stream (ASCII).

Definition at line 84 of file CellID.h.

Referenced by operator<<().

long CellID::id ( ) const [inline]
 

Retrieve calorimeter cell ID.

Definition at line 60 of file CellID.h.

long CellID::rawNumber ( ) const [inline]
 

Retrieve raw number.

Definition at line 49 of file CellID.h.

Referenced by columnNumber(), and fillStream().

void CellID::setID ( long calorimeterNumber,
long rawNumber,
long columnNumber ) [inline]
 

Update calorimeter cell ID.

Definition at line 64 of file CellID.h.

Referenced by CellID().


Friends And Related Function Documentation

std::ostream & operator<< ( std::ostream & s,
const CellID & obj ) [friend]
 

Output operator(ASCII).

Definition at line 80 of file CellID.h.

StreamBuffer & operator<< ( StreamBuffer & s,
const CellID & obj ) [friend]
 

Serialize the object for writing.

Definition at line 71 of file CellID.h.

StreamBuffer & operator>> ( StreamBuffer & s,
CellID & obj ) [friend]
 

Serialize the object for reading.

Definition at line 75 of file CellID.h.


Member Data Documentation

long CellID::m_id [private]
 

Definition at line 100 of file CellID.h.


The documentation for this class was generated from the following file:
Generated at Wed Nov 21 12:22:51 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000