CMS 3D CMS Logo

Public Member Functions | Public Attributes

TmCcu Class Reference

#include <TmCcu.h>

List of all members.

Public Member Functions

int getCcuAddr ()
int getCcuCrate ()
int getCcuRing ()
int getCcuSlot ()
 TmCcu (int crate, int slot, int ring, int addr)
 ~TmCcu ()

Public Attributes

int blue
std::string cmodid
int count
int crate
int green
int idex
int layer
int mpos
int nmod
int red
std::string text
float value

Detailed Description

Definition at line 5 of file TmCcu.h.


Constructor & Destructor Documentation

TmCcu::TmCcu ( int  crate,
int  slot,
int  ring,
int  addr 
)

Definition at line 5 of file TmCcu.cc.

References cmodid, count, crate, idex, layer, nmod, red, text, and value.

                                                 {
  idex=crate*10000000+slot*100000+ring*1000+addr;
  this->crate=crate;
  value=0;count=0;
  red = -1;
  text="";
  nmod=0;
  cmodid="";
  layer=0;
}
TmCcu::~TmCcu ( )

Definition at line 16 of file TmCcu.cc.

             {
}

Member Function Documentation

int TmCcu::getCcuAddr ( ) [inline]

Definition at line 22 of file TmCcu.h.

References idex.

{int res = (int) (idex%1000); return  res;}
int TmCcu::getCcuCrate ( ) [inline]

Definition at line 19 of file TmCcu.h.

References idex.

Referenced by TrackerMap::printall(), TrackerMap::printonline(), TrackerMap::save_as_fectrackermap(), and TrackerMap::TrackerMap().

{int res = (int) (idex/10000000); return res;}
int TmCcu::getCcuRing ( ) [inline]

Definition at line 21 of file TmCcu.h.

References idex.

Referenced by TrackerMap::drawCcu(), and TrackerMap::TrackerMap().

{int res = (int) (idex%100000); int res1=(int)(res/1000);return res1 ;}
int TmCcu::getCcuSlot ( ) [inline]

Definition at line 20 of file TmCcu.h.

References idex.

Referenced by TrackerMap::drawCcu(), TrackerMap::save_as_fectrackermap(), and TrackerMap::TrackerMap().

{int res = (int) (idex/100000); int res1=(int)(res/100);return res - res1*100;}

Member Data Documentation

std::string TmCcu::cmodid

Definition at line 16 of file TmCcu.h.

Referenced by TrackerMap::drawCcu(), TmCcu(), and TrackerMap::TrackerMap().

Definition at line 14 of file TmCcu.h.

Referenced by TmCcu().

Definition at line 17 of file TmCcu.h.

Referenced by TrackerMap::drawCcu(), TmCcu(), and TrackerMap::TrackerMap().

std::string TmCcu::text
float TmCcu::value