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.

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

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.

Referenced by TrackerMap::TrackerMap().

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.

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

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.

Referenced by TrackerMap::TrackerMap().

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.

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

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.

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

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

Definition at line 33 of file TmPsu.h.

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

std::string TmPsu::cmodid_HV3

Definition at line 34 of file TmPsu.h.

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

std::string TmPsu::cmodid_LV

Definition at line 32 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 20 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.

Referenced by NodeCut.MatchId::match().

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