CMS 3D CMS Logo

Public Member Functions | Public Attributes

TmPsu Class Reference

#include <TmPsu.h>

List of all members.

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.

                                                            {
  
  id=dcs*100000+branch*1000+crate*100+board;
  idex=rack*1000+crate*100+board;
  value=0;count=0;
  countHV2=0;
  countHV3=0;
  valueHV2=0;
  valueHV3=0;
  red = -1;
  redHV2 = -1;
  redHV3 = -1;
  text="";
  textHV2="";
  textHV3="";


}
TmPsu::~TmPsu ( )

Definition at line 24 of file TmPsu.cc.

             {
}

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().

{int res2 = (int) (idex%1000); int res1=(int)(res2%100);return res1;}
int TmPsu::getPsuBranch ( ) [inline]

Definition at line 14 of file TmPsu.h.

Referenced by TrackerMap::TrackerMap().

{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().

{int res1 = (int) (idex%1000); int res=(int)(res1%100);return (int)(res1 - res)/100;}
int TmPsu::getPsuDcs ( ) [inline]

Definition at line 13 of file TmPsu.h.

Referenced by TrackerMap::TrackerMap().

{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().

{int res = (int) (idex%1000); return (idex - res)/1000;}

Member Data Documentation

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::id

Definition at line 10 of file TmPsu.h.

std::string TmPsu::psId

Definition at line 12 of file TmPsu.h.

Referenced by TrackerMap::TrackerMap().

std::string TmPsu::text
std::string TmPsu::textHV2
std::string TmPsu::textHV3
float TmPsu::value