test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
TmCcu Class Reference

#include <TmCcu.h>

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.

5  {
6  idex=crate*10000000+slot*100000+ring*1000+addr;
7  this->crate=crate;
8  value=0;count=0;
9  red = -1;
10  text="";
11  nmod=0;
12  cmodid="";
13  layer=0;
14 }
std::string cmodid
Definition: TmCcu.h:16
int layer
Definition: TmCcu.h:17
int count
Definition: TmCcu.h:12
int nmod
Definition: TmCcu.h:15
int crate
Definition: TmCcu.h:14
float value
Definition: TmCcu.h:10
int idex
Definition: TmCcu.h:13
int red
Definition: TmCcu.h:9
std::string text
Definition: TmCcu.h:11
TmCcu::~TmCcu ( )

Definition at line 16 of file TmCcu.cc.

16  {
17 }

Member Function Documentation

int TmCcu::getCcuAddr ( )
inline

Definition at line 22 of file TmCcu.h.

References idex.

22 {int res = (int) (idex%1000); return res;}
int idex
Definition: TmCcu.h:13
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().

19 {int res = (int) (idex/10000000); return res;}
int idex
Definition: TmCcu.h:13
int TmCcu::getCcuRing ( )
inline

Definition at line 21 of file TmCcu.h.

References idex.

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

21 {int res = (int) (idex%100000); int res1=(int)(res/1000);return res1 ;}
int idex
Definition: TmCcu.h:13
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().

20 {int res = (int) (idex/100000); int res1=(int)(res/100);return res - res1*100;}
int idex
Definition: TmCcu.h:13

Member Data Documentation

int TmCcu::blue
std::string TmCcu::cmodid

Definition at line 16 of file TmCcu.h.

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

int TmCcu::count
int TmCcu::crate

Definition at line 14 of file TmCcu.h.

Referenced by TmCcu().

int TmCcu::green
int TmCcu::idex
int TmCcu::layer
int TmCcu::mpos
int TmCcu::nmod
int TmCcu::red
std::string TmCcu::text
float TmCcu::value