Chamber Class Reference

#include <Chamber.hh>

Inheritance diagram for Chamber:

Inheritance graph
[legend]
Collaboration diagram for Chamber:

Collaboration graph
[legend]

List of all members.

Public Member Functions

unsigned int getNumberOfBoards () const
BoardMap_t getBoards (void) const
void setDescription (const std::string aDesc)
std::string getDescription () const
std::string getType () const
const ChannelgetChannelById (const i32 channelId, const i32 chipId=-1, const i32 difId=-1) const
const BoardMap_t & getBoardsByDifId (const i32 difId) const
void addDif (Dif *dif)
void addBoard (Board *board)
i32 getX (void) const
void setX (const i32 aX)
i32 getY (void) const
void setY (const i32 aY)
i32 getZ (void) const
void setZ (const i32 aZ)
i32 getId (void) const
void setId (const i32 aId)
virtual const ui32 getXLength () const =0
virtual const ui32 getYLength () const =0
virtual const ui32 getXGap () const =0
virtual const ui32 getYGap () const =0

Protected Member Functions

 Chamber (const i32 xPos, const i32 yPos, const i32 zPos, const ui32 nbColumns, const ui32 nbRows, const i32 id)
 Chamber (const Chamber &source)
Chamberoperator= (const Chamber &source)
std::ostream & operator<< (std::ostream &out) const
virtual ~Chamber ()

Protected Attributes

i32 xPos
i32 yPos
i32 zPos
i32 id
std::string description
BoardMap_t boards
std::string type
ui32 nbColumns
ui32 nbRows
DifMap_t difs

Friends

class Detector
std::ostream & operator<< (std::ostream &out, const Chamber &x)


Detailed Description

CLASS CHAMBER //

Definition at line 27 of file Chamber.hh.


Constructor & Destructor Documentation

Chamber::Chamber ( const i32  xPos,
const i32  yPos,
const i32  zPos,
const ui32  nbColumns,
const ui32  nbRows,
const i32  id 
) [protected]

Chamber::Chamber ( const Chamber source  )  [protected]

virtual Chamber::~Chamber (  )  [protected, virtual]


Member Function Documentation

Chamber& Chamber::operator= ( const Chamber source  )  [protected]

std::ostream& Chamber::operator<< ( std::ostream &  out  )  const [protected]

unsigned int Chamber::getNumberOfBoards (  )  const [inline]

Reimplemented in DiracChamber1, GassiplexChamber1, GassiplexChamber4, and HardRockChamber6.

Definition at line 40 of file Chamber.hh.

00040 { return(boards.size()); };

BoardMap_t Chamber::getBoards ( void   )  const [inline]

Definition at line 41 of file Chamber.hh.

Referenced by main().

00041 { return boards; };

void Chamber::setDescription ( const std::string  aDesc  )  [inline]

Definition at line 43 of file Chamber.hh.

00043 { description = aDesc; };

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

Definition at line 44 of file Chamber.hh.

00044 { return description; };

std::string Chamber::getType (  )  const [inline]

Definition at line 45 of file Chamber.hh.

Referenced by main().

00045 { return type; };

const Channel& Chamber::getChannelById ( const i32  channelId,
const i32  chipId = -1,
const i32  difId = -1 
) const

const BoardMap_t& Chamber::getBoardsByDifId ( const i32  difId  )  const

void Chamber::addDif ( Dif dif  ) 

void Chamber::addBoard ( Board board  ) 

i32 Chamber::getX ( void   )  const [inline]

Definition at line 52 of file Chamber.hh.

Referenced by main().

00052 { return xPos; };

void Chamber::setX ( const i32  aX  )  [inline]

Definition at line 54 of file Chamber.hh.

00054 { xPos = aX; };

i32 Chamber::getY ( void   )  const [inline]

Definition at line 56 of file Chamber.hh.

Referenced by main().

00056 { return yPos; };

void Chamber::setY ( const i32  aY  )  [inline]

Definition at line 58 of file Chamber.hh.

00058 { yPos = aY; };

i32 Chamber::getZ ( void   )  const [inline]

Definition at line 60 of file Chamber.hh.

00060 { return zPos; };

void Chamber::setZ ( const i32  aZ  )  [inline]

Definition at line 62 of file Chamber.hh.

00062 { zPos = aZ; };

i32 Chamber::getId ( void   )  const [inline]

Definition at line 64 of file Chamber.hh.

00064 { return id; };

void Chamber::setId ( const i32  aId  )  [inline]

Definition at line 65 of file Chamber.hh.

00065 { id = aId; };

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

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

virtual const ui32 Chamber::getXGap (  )  const [pure virtual]

virtual const ui32 Chamber::getYGap (  )  const [pure virtual]


Friends And Related Function Documentation

friend class Detector [friend]

Definition at line 29 of file Chamber.hh.

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


Member Data Documentation

i32 Chamber::xPos [protected]

Definition at line 76 of file Chamber.hh.

Referenced by getX(), and setX().

i32 Chamber::yPos [protected]

Definition at line 76 of file Chamber.hh.

Referenced by getY(), and setY().

i32 Chamber::zPos [protected]

Definition at line 76 of file Chamber.hh.

Referenced by getZ(), and setZ().

i32 Chamber::id [protected]

the chamber position

Definition at line 77 of file Chamber.hh.

Referenced by getId().

std::string Chamber::description [protected]

the chamber unique id

Definition at line 78 of file Chamber.hh.

Referenced by getDescription(), and setDescription().

BoardMap_t Chamber::boards [protected]

short description

Definition at line 79 of file Chamber.hh.

Referenced by getBoards(), and getNumberOfBoards().

std::string Chamber::type [protected]

the list of boards which compose the chamber

Definition at line 80 of file Chamber.hh.

Referenced by getType().

ui32 Chamber::nbColumns [protected]

the type of the chamber

Definition at line 81 of file Chamber.hh.

ui32 Chamber::nbRows [protected]

Definition at line 81 of file Chamber.hh.

DifMap_t Chamber::difs [protected]

number of board row and column

Definition at line 82 of file Chamber.hh.


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