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.

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 }

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

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

31  {
32  int res2 = (int)(idex % 1000);
33  int res1 = (int)(res2 % 100);
34  return res1;
35  }

References idex, and createfilelist::int.

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

◆ getPsuBranch()

int TmPsu::getPsuBranch ( )
inline

Definition at line 17 of file TmPsu.h.

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

References createfilelist::int.

Referenced by TrackerMap::TrackerMap().

◆ getPsuCrate()

int TmPsu::getPsuCrate ( )
inline

Definition at line 26 of file TmPsu.h.

26  {
27  int res1 = (int)(idex % 1000);
28  int res = (int)(res1 % 100);
29  return (int)(res1 - res) / 100;
30  }

References idex, and createfilelist::int.

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

◆ getPsuDcs()

int TmPsu::getPsuDcs ( )
inline

Definition at line 13 of file TmPsu.h.

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

References createfilelist::int.

Referenced by TrackerMap::TrackerMap().

◆ getPsuRack()

int TmPsu::getPsuRack ( )
inline

Definition at line 22 of file TmPsu.h.

22  {
23  int res = (int)(idex % 1000);
24  return (idex - res) / 1000;
25  }

References idex, and createfilelist::int.

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

Member Data Documentation

◆ blue

int TmPsu::blue

Definition at line 37 of file TmPsu.h.

Referenced by TrackerMap::fillc_lv_channel().

◆ blueHV2

int TmPsu::blueHV2

Definition at line 38 of file TmPsu.h.

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

◆ blueHV3

int TmPsu::blueHV3

Definition at line 39 of file TmPsu.h.

Referenced by TrackerMap::drawHV3().

◆ 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::TrackerMap().

◆ count

int TmPsu::count

◆ countHV2

int TmPsu::countHV2

Definition at line 44 of file TmPsu.h.

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

◆ countHV3

int TmPsu::countHV3

Definition at line 45 of file TmPsu.h.

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

◆ green

int TmPsu::green

Definition at line 37 of file TmPsu.h.

Referenced by TrackerMap::fillc_lv_channel().

◆ greenHV2

int TmPsu::greenHV2

Definition at line 38 of file TmPsu.h.

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

◆ greenHV3

int TmPsu::greenHV3

Definition at line 39 of file TmPsu.h.

Referenced by TrackerMap::drawHV3().

◆ id

int TmPsu::id

Definition at line 10 of file TmPsu.h.

◆ idex

int TmPsu::idex

◆ nmod

int TmPsu::nmod

Definition at line 46 of file TmPsu.h.

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

◆ nmodHV2

int TmPsu::nmodHV2

Definition at line 47 of file TmPsu.h.

Referenced by TrackerMap::TrackerMap().

◆ nmodHV3

int TmPsu::nmodHV3

Definition at line 48 of file TmPsu.h.

Referenced by TrackerMap::TrackerMap().

◆ psId

std::string TmPsu::psId

Definition at line 12 of file TmPsu.h.

Referenced by TrackerMap::TrackerMap().

◆ red

int TmPsu::red

Definition at line 37 of file TmPsu.h.

Referenced by TrackerMap::fillc_lv_channel(), TrackerMap::save_as_psutrackermap(), and TmPsu().

◆ redHV2

int TmPsu::redHV2

Definition at line 38 of file TmPsu.h.

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

◆ redHV3

int TmPsu::redHV3

Definition at line 39 of file TmPsu.h.

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

◆ text

std::string TmPsu::text

◆ textHV2

std::string TmPsu::textHV2

Definition at line 53 of file TmPsu.h.

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

◆ textHV3

std::string TmPsu::textHV3

Definition at line 54 of file TmPsu.h.

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

◆ value

float TmPsu::value

◆ valueHV2

float TmPsu::valueHV2

Definition at line 42 of file TmPsu.h.

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

◆ valueHV3

float TmPsu::valueHV3

Definition at line 41 of file TmPsu.h.

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

TmPsu::red
int red
Definition: TmPsu.h:37
MicroEventContent_cff.branch
branch
Definition: MicroEventContent_cff.py:152
TmPsu::idex
int idex
Definition: TmPsu.h:11
TmPsu::count
int count
Definition: TmPsu.h:43
TmPsu::countHV2
int countHV2
Definition: TmPsu.h:44
createfilelist.int
int
Definition: createfilelist.py:10
value
Definition: value.py:1
res
Definition: Electron.h:6
TmPsu::redHV3
int redHV3
Definition: TmPsu.h:39
TmPsu::valueHV3
float valueHV3
Definition: TmPsu.h:41
TmPsu::valueHV2
float valueHV2
Definition: TmPsu.h:42
TmPsu::textHV3
std::string textHV3
Definition: TmPsu.h:54
TmPsu::text
std::string text
Definition: TmPsu.h:52
TmPsu::redHV2
int redHV2
Definition: TmPsu.h:38
TmPsu::textHV2
std::string textHV2
Definition: TmPsu.h:53
TmPsu::countHV3
int countHV3
Definition: TmPsu.h:45