CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 4 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 generateTowerEtThresholdLUT::addr, 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;
9  count = 0;
10  red = -1;
11  text = "";
12  nmod = 0;
13  cmodid = "";
14  layer = 0;
15 }
std::string cmodid
Definition: TmCcu.h:15
int layer
Definition: TmCcu.h:16
int count
Definition: TmCcu.h:11
int nmod
Definition: TmCcu.h:14
int crate
Definition: TmCcu.h:13
float value
Definition: TmCcu.h:9
int idex
Definition: TmCcu.h:12
int red
Definition: TmCcu.h:8
std::string text
Definition: TmCcu.h:10
TmCcu::~TmCcu ( )

Definition at line 17 of file TmCcu.cc.

17 {}

Member Function Documentation

int TmCcu::getCcuAddr ( )
inline

Definition at line 32 of file TmCcu.h.

References idex.

32  {
33  int res = (int)(idex % 1000);
34  return res;
35  }
int idex
Definition: TmCcu.h:12
int TmCcu::getCcuCrate ( )
inline

Definition at line 18 of file TmCcu.h.

References idex.

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

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

Definition at line 27 of file TmCcu.h.

References idex.

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

27  {
28  int res = (int)(idex % 100000);
29  int res1 = (int)(res / 1000);
30  return res1;
31  }
int idex
Definition: TmCcu.h:12
int TmCcu::getCcuSlot ( )
inline

Definition at line 22 of file TmCcu.h.

References idex.

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

22  {
23  int res = (int)(idex / 100000);
24  int res1 = (int)(res / 100);
25  return res - res1 * 100;
26  }
int idex
Definition: TmCcu.h:12

Member Data Documentation

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

Definition at line 15 of file TmCcu.h.

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

int TmCcu::count
int TmCcu::crate

Definition at line 13 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