src
CommonTools
TrackerMap
interface
TmPsu.h
Go to the documentation of this file.
1
#include <map>
2
#include <string>
3
4
class
TmModule
;
5
6
class
TmPsu
{
7
public
:
8
TmPsu
(
int
dcs,
int
branch
,
int
rack,
int
crate,
int
board);
9
~TmPsu
();
10
int
id
;
11
int
idex
;
12
std::string
psId
;
//ex: TECminus_5_6_4_2_3...
13
int
getPsuDcs
() {
14
int
res
= (
int
)(
id
% 100000);
15
return
(
int
)(
id
-
res
) / 100000;
16
}
17
int
getPsuBranch
() {
18
int
res1 = (
int
)(
id
% 100000);
19
int
res
= (
int
)(res1 % 1000);
20
return
(
int
)(res1 -
res
) / 1000;
21
}
22
int
getPsuRack
() {
23
int
res
= (
int
)(
idex
% 1000);
24
return
(
idex
-
res
) / 1000;
25
}
26
int
getPsuCrate
() {
27
int
res1 = (
int
)(
idex
% 1000);
28
int
res
= (
int
)(res1 % 100);
29
return
(
int
)(res1 -
res
) / 100;
30
}
31
int
getPsuBoard
() {
32
int
res2 = (
int
)(
idex
% 1000);
33
int
res1 = (
int
)(res2 % 100);
34
return
res1;
35
}
36
37
int
red
,
green
,
blue
;
38
int
redHV2
,
greenHV2
,
blueHV2
;
39
int
redHV3
,
greenHV3
,
blueHV3
;
40
float
value
;
41
float
valueHV3
;
42
float
valueHV2
;
43
int
count
;
44
int
countHV2
;
45
int
countHV3
;
46
int
nmod
;
47
int
nmodHV2
;
48
int
nmodHV3
;
49
std::string
cmodid_LV
;
//list of modules connected to the LV channels of this psu
50
std::string
cmodid_HV2
;
51
std::string
cmodid_HV3
;
52
std::string
text
;
53
std::string
textHV2
;
54
std::string
textHV3
;
55
};
TmPsu::getPsuBranch
int getPsuBranch()
Definition:
TmPsu.h:17
MicroEventContent_cff.branch
branch
Definition:
MicroEventContent_cff.py:185
TmPsu::redHV2
int redHV2
Definition:
TmPsu.h:38
TmPsu::cmodid_HV2
std::string cmodid_HV2
Definition:
TmPsu.h:50
TmPsu::nmodHV3
int nmodHV3
Definition:
TmPsu.h:48
TmPsu::count
int count
Definition:
TmPsu.h:43
TmPsu::idex
int idex
Definition:
TmPsu.h:11
TmPsu::countHV2
int countHV2
Definition:
TmPsu.h:44
TmPsu::value
float value
Definition:
TmPsu.h:40
TmPsu::getPsuBoard
int getPsuBoard()
Definition:
TmPsu.h:31
TmPsu::red
int red
Definition:
TmPsu.h:37
TmPsu::greenHV3
int greenHV3
Definition:
TmPsu.h:39
res
Definition:
Electron.h:6
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
TmPsu::getPsuDcs
int getPsuDcs()
Definition:
TmPsu.h:13
createfilelist.int
int
Definition:
createfilelist.py:10
TmPsu::nmod
int nmod
Definition:
TmPsu.h:46
TmPsu::blueHV3
int blueHV3
Definition:
TmPsu.h:39
TmPsu::greenHV2
int greenHV2
Definition:
TmPsu.h:38
TmPsu::getPsuRack
int getPsuRack()
Definition:
TmPsu.h:22
TmPsu::nmodHV2
int nmodHV2
Definition:
TmPsu.h:47
TmPsu::green
int green
Definition:
TmPsu.h:37
TmPsu::psId
std::string psId
Definition:
TmPsu.h:12
TmPsu::redHV3
int redHV3
Definition:
TmPsu.h:39
TmPsu::~TmPsu
~TmPsu()
Definition:
TmPsu.cc:22
TmModule
Definition:
TmModule.h:4
TmPsu::cmodid_HV3
std::string cmodid_HV3
Definition:
TmPsu.h:51
TmPsu::id
int id
Definition:
TmPsu.h:10
TmPsu::valueHV2
float valueHV2
Definition:
TmPsu.h:42
TmPsu::TmPsu
TmPsu(int dcs, int branch, int rack, int crate, int board)
Definition:
TmPsu.cc:5
TmPsu::textHV3
std::string textHV3
Definition:
TmPsu.h:54
TmPsu::text
std::string text
Definition:
TmPsu.h:52
TmPsu::countHV3
int countHV3
Definition:
TmPsu.h:45
TmPsu::cmodid_LV
std::string cmodid_LV
Definition:
TmPsu.h:49
TmPsu::valueHV3
float valueHV3
Definition:
TmPsu.h:41
TmPsu::textHV2
std::string textHV2
Definition:
TmPsu.h:53
TmPsu::blue
int blue
Definition:
TmPsu.h:37
TmPsu::blueHV2
int blueHV2
Definition:
TmPsu.h:38
TmPsu
Definition:
TmPsu.h:6
TmPsu::getPsuCrate
int getPsuCrate()
Definition:
TmPsu.h:26
Generated for CMSSW Reference Manual by
1.8.14