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
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 ( int  dcs,
int  branch,
int  rack,
int  crate,
int  board 
)

Definition at line 5 of file TmPsu.cc.

References count, countHV2, countHV3, idex, red, redHV2, redHV3, text, textHV2, textHV3, value, 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
float value
Definition: TmPsu.h:40
int red
Definition: TmPsu.h:37
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 ( )

Definition at line 22 of file TmPsu.cc.

22 {}

Member Function Documentation

int TmPsu::getPsuBoard ( )
inline

Definition at line 31 of file TmPsu.h.

References idex.

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
int TmPsu::getPsuBranch ( )
inline

Definition at line 17 of file TmPsu.h.

Referenced by TrackerMap::TrackerMap().

17  {
18  int res1 = (int)(id % 100000);
19  int res = (int)(res1 % 1000);
20  return (int)(res1 - res) / 1000;
21  }
int TmPsu::getPsuCrate ( )
inline

Definition at line 26 of file TmPsu.h.

References idex.

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
int TmPsu::getPsuDcs ( )
inline

Definition at line 13 of file TmPsu.h.

Referenced by TrackerMap::TrackerMap().

13  {
14  int res = (int)(id % 100000);
15  return (int)(id - res) / 100000;
16  }
int TmPsu::getPsuRack ( )
inline

Definition at line 22 of file TmPsu.h.

References idex.

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

Member Data Documentation

int TmPsu::blue

Definition at line 37 of file TmPsu.h.

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

int TmPsu::blueHV2
int TmPsu::blueHV3
std::string TmPsu::cmodid_HV2

Definition at line 50 of file TmPsu.h.

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

std::string TmPsu::cmodid_HV3

Definition at line 51 of file TmPsu.h.

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

std::string TmPsu::cmodid_LV

Definition at line 49 of file TmPsu.h.

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

int TmPsu::count
int TmPsu::countHV2
int TmPsu::countHV3
int TmPsu::green

Definition at line 37 of file TmPsu.h.

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

int TmPsu::greenHV2
int TmPsu::greenHV3
int TmPsu::id

Definition at line 10 of file TmPsu.h.

int TmPsu::idex
int TmPsu::nmod
int TmPsu::nmodHV2
int TmPsu::nmodHV3
std::string TmPsu::psId

Definition at line 12 of file TmPsu.h.

Referenced by TrackerMap::TrackerMap().

int TmPsu::red
int TmPsu::redHV2
int TmPsu::redHV3
std::string TmPsu::text
std::string TmPsu::textHV2
std::string TmPsu::textHV3
float TmPsu::value
float TmPsu::valueHV2
float TmPsu::valueHV3