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.

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 }

References generateTowerEtThresholdLUT::addr, cmodid, count, crate, idex, layer, nmod, red, relativeConstraints::ring, and text.

◆ ~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.

32  {
33  int res = (int)(idex % 1000);
34  return res;
35  }

References idex, and createfilelist::int.

◆ getCcuCrate()

int TmCcu::getCcuCrate ( )
inline

Definition at line 18 of file TmCcu.h.

18  {
19  int res = (int)(idex / 10000000);
20  return res;
21  }

References idex, and createfilelist::int.

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

◆ getCcuRing()

int TmCcu::getCcuRing ( )
inline

Definition at line 27 of file TmCcu.h.

27  {
28  int res = (int)(idex % 100000);
29  int res1 = (int)(res / 1000);
30  return res1;
31  }

References idex, and createfilelist::int.

Referenced by TrackerMap::TrackerMap().

◆ getCcuSlot()

int TmCcu::getCcuSlot ( )
inline

Definition at line 22 of file TmCcu.h.

22  {
23  int res = (int)(idex / 100000);
24  int res1 = (int)(res / 100);
25  return res - res1 * 100;
26  }

References idex, and createfilelist::int.

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

Member Data Documentation

◆ blue

int TmCcu::blue

Definition at line 8 of file TmCcu.h.

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

◆ cmodid

std::string TmCcu::cmodid

Definition at line 15 of file TmCcu.h.

Referenced by 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

Definition at line 8 of file TmCcu.h.

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

◆ idex

int TmCcu::idex

Definition at line 12 of file TmCcu.h.

Referenced by getCcuAddr(), getCcuCrate(), getCcuRing(), getCcuSlot(), TmCcu(), and TrackerMap::TrackerMap().

◆ layer

int TmCcu::layer

◆ mpos

int TmCcu::mpos

Definition at line 17 of file TmCcu.h.

Referenced by TrackerMap::TrackerMap().

◆ nmod

int TmCcu::nmod

Definition at line 14 of file TmCcu.h.

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

◆ red

int TmCcu::red

Definition at line 8 of file TmCcu.h.

Referenced by TrackerMap::fillc_fec_channel(), TrackerMap::save_as_fectrackermap(), and TmCcu().

◆ text

std::string TmCcu::text

◆ value

float TmCcu::value
TmCcu::layer
int layer
Definition: TmCcu.h:16
TmCcu::text
std::string text
Definition: TmCcu.h:10
TmCcu::nmod
int nmod
Definition: TmCcu.h:14
TmCcu::cmodid
std::string cmodid
Definition: TmCcu.h:15
TmCcu::count
int count
Definition: TmCcu.h:11
TmCcu::crate
int crate
Definition: TmCcu.h:13
generateTowerEtThresholdLUT.addr
addr
Definition: generateTowerEtThresholdLUT.py:57
createfilelist.int
int
Definition: createfilelist.py:10
value
Definition: value.py:1
res
Definition: Electron.h:6
relativeConstraints.ring
ring
Definition: relativeConstraints.py:68
TmCcu::idex
int idex
Definition: TmCcu.h:12
TmCcu::red
int red
Definition: TmCcu.h:8