Channel Class Reference

#include <Channel.hh>

Inheritance diagram for Channel:

Inheritance graph
[legend]
Collaboration diagram for Channel:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Channel (const Chip &, const std::string description, const i32 aCol, const i32 aRow, const i32 aId)
 Channel (const Channel &source)
Channeloperator= (const Channel &source)
virtual ~Channel ()
std::string getDescription () const
void print () const
const ChipgetChip () const
const ChambergetChamber () const
int getColumn (void) const
void setColumn (int aColumn)
int getRow (void) const
void setRow (int aRow)
ui32 getHardId (void) const
ui32 getSoftId (void) const
i32 getX () const
i32 getY () const
i32 getZ () const
virtual const ui32 getXLength () const =0
virtual const ui32 getYLength () const =0
virtual bool valueIsValid (const int value)

Protected Attributes

const Chipchip
std::string description
ui32 hardId
ui32 column
ui32 row

Friends

std::ostream & operator<< (std::ostream &out, const Channel &x)


Detailed Description

CLASS Channel //

Definition at line 27 of file Channel.hh.


Constructor & Destructor Documentation

Channel::Channel ( const Chip ,
const std::string  description,
const i32  aCol,
const i32  aRow,
const i32  aId 
)

Channel::Channel ( const Channel source  ) 

virtual Channel::~Channel (  )  [virtual]


Member Function Documentation

Channel& Channel::operator= ( const Channel source  ) 

std::string Channel::getDescription (  )  const [inline]

Definition at line 39 of file Channel.hh.

00039 { return description; };

void Channel::print (  )  const

const Chip& Channel::getChip (  )  const [inline]

Definition at line 42 of file Channel.hh.

00042 { return chip; };

const Chamber& Channel::getChamber (  )  const

int Channel::getColumn ( void   )  const [inline]

Definition at line 45 of file Channel.hh.

00045 { return column; };

void Channel::setColumn ( int  aColumn  )  [inline]

Definition at line 46 of file Channel.hh.

00046 { column = aColumn; };

int Channel::getRow ( void   )  const [inline]

Definition at line 48 of file Channel.hh.

00048 { return row; };

void Channel::setRow ( int  aRow  )  [inline]

Definition at line 49 of file Channel.hh.

00049 { row = aRow; };

ui32 Channel::getHardId ( void   )  const [inline]

Definition at line 51 of file Channel.hh.

Referenced by main().

00051 { return hardId; }

ui32 Channel::getSoftId ( void   )  const

ui32 result = 100000000 * getChamber().getId() + 1000000 * difId + 10000 * getChip().getId() + 100 * getColumn() + getRow()

chamber id < 41 dif id < 100 chip id < 100 colomn < 100 row < 100

Referenced by main().

i32 Channel::getX (  )  const

X, Y 'world'position

Referenced by main().

i32 Channel::getY (  )  const

Referenced by main().

i32 Channel::getZ (  )  const

Referenced by main().

virtual const ui32 Channel::getXLength (  )  const [pure virtual]

Implemented in DiracChannel, GassiplexChannel, and HardRockChannel.

Referenced by main().

virtual const ui32 Channel::getYLength (  )  const [pure virtual]

Implemented in DiracChannel, GassiplexChannel, and HardRockChannel.

Referenced by main().

virtual bool Channel::valueIsValid ( const int  value  )  [inline, virtual]

Definition at line 74 of file Channel.hh.

00074 { return(0); };


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const Channel x 
) [friend]


Member Data Documentation

const Chip& Channel::chip [protected]

Definition at line 74 of file Channel.hh.

Referenced by getChip().

std::string Channel::description [protected]

the chip this channel belongs to

Definition at line 83 of file Channel.hh.

ui32 Channel::hardId [protected]

short description

Definition at line 84 of file Channel.hh.

Referenced by getHardId().

ui32 Channel::column [protected]

unique within a chamber

Definition at line 85 of file Channel.hh.

Referenced by getColumn(), and setColumn().

ui32 Channel::row [protected]

Definition at line 85 of file Channel.hh.

Referenced by getRow(), and setRow().


The documentation for this class was generated from the following file:

Generated on Thu Jul 9 09:49:39 2009 for MicromegasFramework by  doxygen 1.5.8