CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 
7  id=dcs*100000+branch*1000+crate*100+board;
8  idex=rack*1000+crate*100+board;
9  value=0;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 
21 
22 }
int redHV2
Definition: TmPsu.h:21
int count
Definition: TmPsu.h:26
int idex
Definition: TmPsu.h:11
int countHV2
Definition: TmPsu.h:27
float value
Definition: TmPsu.h:23
int red
Definition: TmPsu.h:20
int redHV3
Definition: TmPsu.h:22
float valueHV2
Definition: TmPsu.h:25
std::string textHV3
Definition: TmPsu.h:37
std::string text
Definition: TmPsu.h:35
int countHV3
Definition: TmPsu.h:28
float valueHV3
Definition: TmPsu.h:24
std::string textHV2
Definition: TmPsu.h:36
TmPsu::~TmPsu ( )

Definition at line 24 of file TmPsu.cc.

24  {
25 }

Member Function Documentation

int TmPsu::getPsuBoard ( )
inline

Definition at line 17 of file TmPsu.h.

References idex.

17 {int res2 = (int) (idex%1000); int res1=(int)(res2%100);return res1;}
int idex
Definition: TmPsu.h:11
int TmPsu::getPsuBranch ( )
inline

Definition at line 14 of file TmPsu.h.

14 {int res1 = (int)(id%100000); int res = (int)(res1%1000); return (int) (res1 -res)/1000;}
int TmPsu::getPsuCrate ( )
inline

Definition at line 16 of file TmPsu.h.

References idex.

16 {int res1 = (int) (idex%1000); int res=(int)(res1%100);return (int)(res1 - res)/100;}
int idex
Definition: TmPsu.h:11
int TmPsu::getPsuDcs ( )
inline

Definition at line 13 of file TmPsu.h.

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

Definition at line 15 of file TmPsu.h.

References idex.

15 {int res = (int) (idex%1000); return (idex - res)/1000;}
int idex
Definition: TmPsu.h:11

Member Data Documentation

int TmPsu::blue

Definition at line 20 of file TmPsu.h.

int TmPsu::blueHV2

Definition at line 21 of file TmPsu.h.

int TmPsu::blueHV3

Definition at line 22 of file TmPsu.h.

std::string TmPsu::cmodid_HV2

Definition at line 33 of file TmPsu.h.

std::string TmPsu::cmodid_HV3

Definition at line 34 of file TmPsu.h.

std::string TmPsu::cmodid_LV

Definition at line 32 of file TmPsu.h.

int TmPsu::count

Definition at line 26 of file TmPsu.h.

Referenced by TmPsu().

int TmPsu::countHV2

Definition at line 27 of file TmPsu.h.

Referenced by TmPsu().

int TmPsu::countHV3

Definition at line 28 of file TmPsu.h.

Referenced by TmPsu().

int TmPsu::green

Definition at line 20 of file TmPsu.h.

int TmPsu::greenHV2

Definition at line 21 of file TmPsu.h.

int TmPsu::greenHV3

Definition at line 22 of file TmPsu.h.

int TmPsu::id

Definition at line 10 of file TmPsu.h.

int TmPsu::idex

Definition at line 11 of file TmPsu.h.

Referenced by getPsuBoard(), getPsuCrate(), getPsuRack(), and TmPsu().

int TmPsu::nmod

Definition at line 29 of file TmPsu.h.

int TmPsu::nmodHV2

Definition at line 30 of file TmPsu.h.

int TmPsu::nmodHV3

Definition at line 31 of file TmPsu.h.

std::string TmPsu::psId

Definition at line 12 of file TmPsu.h.

int TmPsu::red

Definition at line 20 of file TmPsu.h.

Referenced by TmPsu().

int TmPsu::redHV2

Definition at line 21 of file TmPsu.h.

Referenced by TmPsu().

int TmPsu::redHV3

Definition at line 22 of file TmPsu.h.

Referenced by TmPsu().

std::string TmPsu::text

Definition at line 35 of file TmPsu.h.

Referenced by TmPsu().

std::string TmPsu::textHV2

Definition at line 36 of file TmPsu.h.

Referenced by TmPsu().

std::string TmPsu::textHV3

Definition at line 37 of file TmPsu.h.

Referenced by TmPsu().

float TmPsu::value
float TmPsu::valueHV2

Definition at line 25 of file TmPsu.h.

Referenced by TmPsu().

float TmPsu::valueHV3

Definition at line 24 of file TmPsu.h.

Referenced by TmPsu().