CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
TmPsu Class Reference

#include <TmPsu.h>

Public Member Functions

int getPsuBoard ()
 
int getPsuBranch ()
 
int getPsuCrate ()
 
int getPsuDcs ()
 
int getPsuRack ()
 
 TmPsu (int dcs, int branch, int rack, int crate, int board)
 
 ~TmPsu ()
 

Public Attributes

int blue
 
int blueHV2
 
int blueHV3
 
std::string cmodid_HV2
 
std::string cmodid_HV3
 
std::string cmodid_LV
 
int count
 
int countHV2
 
int countHV3
 
int green
 
int greenHV2
 
int greenHV3
 
int id
 
int idex
 
int nmod
 
int nmodHV2
 
int nmodHV3
 
std::string psId
 
int red
 
int redHV2
 
int redHV3
 
std::string text
 
std::string textHV2
 
std::string textHV3
 
float value
 
float valueHV2
 
float valueHV3
 

Detailed Description

Definition at line 6 of file TmPsu.h.

Constructor & Destructor Documentation

◆ TmPsu()

TmPsu::TmPsu ( int  dcs,
int  branch,
int  rack,
int  crate,
int  board 
)

Definition at line 5 of file TmPsu.cc.

References MicroEventContent_cff::branch, count, countHV2, countHV3, FCDTask_cfi::crate, idex, red, redHV2, redHV3, text, textHV2, textHV3, valueHV2, and valueHV3.

5  {
6  id = dcs * 100000 + branch * 1000 + crate * 100 + board;
7  idex = rack * 1000 + crate * 100 + board;
8  value = 0;
9  count = 0;
10  countHV2 = 0;
11  countHV3 = 0;
12  valueHV2 = 0;
13  valueHV3 = 0;
14  red = -1;
15  redHV2 = -1;
16  redHV3 = -1;
17  text = "";
18  textHV2 = "";
19  textHV3 = "";
20 }
int redHV2
Definition: TmPsu.h:38
int count
Definition: TmPsu.h:43
int idex
Definition: TmPsu.h:11
int countHV2
Definition: TmPsu.h:44
int red
Definition: TmPsu.h:37
Definition: value.py:1
int redHV3
Definition: TmPsu.h:39
float valueHV2
Definition: TmPsu.h:42
std::string textHV3
Definition: TmPsu.h:54
std::string text
Definition: TmPsu.h:52
int countHV3
Definition: TmPsu.h:45
float valueHV3
Definition: TmPsu.h:41
std::string textHV2
Definition: TmPsu.h:53

◆ ~TmPsu()

TmPsu::~TmPsu ( )

Definition at line 22 of file TmPsu.cc.

22 {}

Member Function Documentation

◆ getPsuBoard()

int TmPsu::getPsuBoard ( )
inline

Definition at line 31 of file TmPsu.h.

References idex, and createfilelist::int.

Referenced by TrackerMap::drawHV2(), TrackerMap::drawHV3(), TrackerMap::drawPsu(), TrackerMap::printall(), TrackerMap::printonline(), and TrackerMap::TrackerMap().

31  {
32  int res2 = (int)(idex % 1000);
33  int res1 = (int)(res2 % 100);
34  return res1;
35  }
int idex
Definition: TmPsu.h:11

◆ getPsuBranch()

int TmPsu::getPsuBranch ( )
inline

Definition at line 17 of file TmPsu.h.

References createfilelist::int.

Referenced by TrackerMap::TrackerMap().

17  {
18  int res1 = (int)(id % 100000);
19  int res = (int)(res1 % 1000);
20  return (int)(res1 - res) / 1000;
21  }
Definition: Electron.h:6

◆ getPsuCrate()

int TmPsu::getPsuCrate ( )
inline

Definition at line 26 of file TmPsu.h.

References idex, and createfilelist::int.

Referenced by TrackerMap::drawHV2(), TrackerMap::drawHV3(), TrackerMap::drawPsu(), TrackerMap::save_as_HVtrackermap(), TrackerMap::save_as_psutrackermap(), and TrackerMap::TrackerMap().

26  {
27  int res1 = (int)(idex % 1000);
28  int res = (int)(res1 % 100);
29  return (int)(res1 - res) / 100;
30  }
int idex
Definition: TmPsu.h:11
Definition: Electron.h:6

◆ getPsuDcs()

int TmPsu::getPsuDcs ( )
inline

Definition at line 13 of file TmPsu.h.

References createfilelist::int.

Referenced by TrackerMap::TrackerMap().

13  {
14  int res = (int)(id % 100000);
15  return (int)(id - res) / 100000;
16  }
Definition: Electron.h:6

◆ getPsuRack()

int TmPsu::getPsuRack ( )
inline

Definition at line 22 of file TmPsu.h.

References idex, and createfilelist::int.

Referenced by TrackerMap::printall(), TrackerMap::printonline(), TrackerMap::save_as_HVtrackermap(), TrackerMap::save_as_psutrackermap(), and TrackerMap::TrackerMap().

22  {
23  int res = (int)(idex % 1000);
24  return (idex - res) / 1000;
25  }
int idex
Definition: TmPsu.h:11
Definition: Electron.h:6

Member Data Documentation

◆ blue

int TmPsu::blue

Definition at line 37 of file TmPsu.h.

Referenced by TrackerMap::drawPsu(), and TrackerMap::fillc_lv_channel().

◆ blueHV2

int TmPsu::blueHV2

◆ blueHV3

int TmPsu::blueHV3

◆ cmodid_HV2

std::string TmPsu::cmodid_HV2

Definition at line 50 of file TmPsu.h.

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

◆ cmodid_HV3

std::string TmPsu::cmodid_HV3

Definition at line 51 of file TmPsu.h.

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

◆ cmodid_LV

std::string TmPsu::cmodid_LV

Definition at line 49 of file TmPsu.h.

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

◆ count

int TmPsu::count

◆ countHV2

int TmPsu::countHV2

◆ countHV3

int TmPsu::countHV3

◆ green

int TmPsu::green

Definition at line 37 of file TmPsu.h.

Referenced by TrackerMap::drawPsu(), and TrackerMap::fillc_lv_channel().

◆ greenHV2

int TmPsu::greenHV2

◆ greenHV3

int TmPsu::greenHV3

◆ id

int TmPsu::id

Definition at line 10 of file TmPsu.h.

◆ idex

int TmPsu::idex

◆ nmod

int TmPsu::nmod

◆ nmodHV2

int TmPsu::nmodHV2

◆ nmodHV3

int TmPsu::nmodHV3

◆ psId

std::string TmPsu::psId

Definition at line 12 of file TmPsu.h.

Referenced by TrackerMap::TrackerMap().

◆ red

int TmPsu::red

◆ redHV2

int TmPsu::redHV2

◆ redHV3

int TmPsu::redHV3

◆ text

std::string TmPsu::text

◆ textHV2

std::string TmPsu::textHV2

◆ textHV3

std::string TmPsu::textHV3

◆ value

float TmPsu::value

◆ valueHV2

float TmPsu::valueHV2

◆ valueHV3

float TmPsu::valueHV3