CMS 3D CMS Logo

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::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, relativeConstraints::ring, FCDTask_cfi::slot, and text.

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
Definition: value.py:1
int idex
Definition: TmCcu.h:12
int red
Definition: TmCcu.h:8
std::string text
Definition: TmCcu.h:10

◆ ~TmCcu()

TmCcu::~TmCcu ( )

Definition at line 17 of file TmCcu.cc.

17 {}

Member Function Documentation

◆ getCcuAddr()

int TmCcu::getCcuAddr ( )
inline

Definition at line 32 of file TmCcu.h.

References idex, and createfilelist::int.

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

◆ getCcuCrate()

int TmCcu::getCcuCrate ( )
inline

Definition at line 18 of file TmCcu.h.

References idex, and createfilelist::int.

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

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

◆ getCcuRing()

int TmCcu::getCcuRing ( )
inline

Definition at line 27 of file TmCcu.h.

References idex, and createfilelist::int.

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

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

◆ getCcuSlot()

int TmCcu::getCcuSlot ( )
inline

Definition at line 22 of file TmCcu.h.

References idex, and createfilelist::int.

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  }
Definition: Electron.h:6
int idex
Definition: TmCcu.h:12

Member Data Documentation

◆ blue

int TmCcu::blue

◆ cmodid

std::string TmCcu::cmodid

Definition at line 15 of file TmCcu.h.

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

◆ count

int TmCcu::count

◆ crate

int TmCcu::crate

Definition at line 13 of file TmCcu.h.

Referenced by TmCcu().

◆ green

int TmCcu::green

◆ idex

int TmCcu::idex

◆ layer

int TmCcu::layer

◆ mpos

int TmCcu::mpos

◆ nmod

int TmCcu::nmod

◆ red

int TmCcu::red

◆ text

std::string TmCcu::text

◆ value

float TmCcu::value