Main Page
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
+
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Properties
_
a
c
d
e
f
l
m
o
p
s
t
u
v
+
Related Functions
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Package Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
src
CondFormats
CSCObjects
src
CSCTriggerElectronicsMappingFromFile.cc
Go to the documentation of this file.
1
#include "
CondFormats/CSCObjects/interface/CSCTriggerElectronicsMappingFromFile.h
"
2
#include <iostream>
3
#include <fstream>
4
#include <sstream>
5
6
CSCTriggerElectronicsMappingFromFile::CSCTriggerElectronicsMappingFromFile
(
std::string
filename
) : filename_(
filename
) {
7
fill
();
8
}
9
10
CSCTriggerElectronicsMappingFromFile::~CSCTriggerElectronicsMappingFromFile
() {}
11
12
void
CSCTriggerElectronicsMappingFromFile::fill
(
void
) {
13
std::ifstream
in
(
filename_
.c_str());
14
std::string
line
;
15
const
std::string
commentFlag =
"#"
;
16
if
(!
in
) {
17
std::cout
<<
"CSCTriggerElectronicsMappingFromFile: ERROR! Failed to open file containing mapping, "
<<
filename_
18
<< std::endl;
19
}
else
{
20
std::cout
<<
"CSCTriggerElectronicsMappingFromFile: opened file containing mapping, "
<<
filename_
<< std::endl;
21
22
while
(getline(
in
,
line
)) {
// getline() from <string>
23
if
(
debugV
())
24
std::cout
<<
line
<< std::endl;
25
if
(
line
[0] != commentFlag[0]) {
26
int
i1
,
i2
,
i3
, i6, i7, i8, i9, i10;
27
std::istringstream is(
line
);
28
is >>
i1
>>
i2
>>
i3
>> i6 >> i7 >> i8 >> i9 >> i10;
29
if
(
debugV
())
30
std::cout
<<
i1
<<
" "
<<
i2
<<
" "
<<
i3
<<
" "
<< i6 <<
" "
<< i7 <<
" "
<< i8 <<
" "
<< i9 <<
" "
<< i10
31
<< std::endl;
32
addRecord
(
i1
,
i2
,
i3
, 0, 0, i6, i7, i8, i9, i10);
33
}
34
}
35
}
36
37
return
;
38
}
CSCTriggerElectronicsMappingFromFile.h
corrVsCorr.filename
filename
Definition:
corrVsCorr.py:123
CSCTriggerElectronicsMappingFromFile::~CSCTriggerElectronicsMappingFromFile
~CSCTriggerElectronicsMappingFromFile() override
Destructor.
Definition:
CSCTriggerElectronicsMappingFromFile.cc:10
testProducerWithPsetDescEmpty_cfi.i2
i2
Definition:
testProducerWithPsetDescEmpty_cfi.py:46
CSCTriggerElectronicsMappingFromFile::filename_
std::string filename_
Definition:
CSCTriggerElectronicsMappingFromFile.h:26
recoMuon::in
Definition:
RecoMuonEnumerators.h:6
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
CSCTriggerMapping::addRecord
void addRecord(int rendcap, int rstation, int rsector, int rsubsector, int rcscid, int cendcap, int cstation, int csector, int csubsector, int ccscid)
Definition:
CSCTriggerMapping.cc:31
CSCTriggerElectronicsMappingFromFile::CSCTriggerElectronicsMappingFromFile
CSCTriggerElectronicsMappingFromFile()
Definition:
CSCTriggerElectronicsMappingFromFile.h:17
mps_splice.line
line
Definition:
mps_splice.py:76
CSCTriggerElectronicsMappingFromFile::fill
void fill(void) override
Fill mapping store.
Definition:
CSCTriggerElectronicsMappingFromFile.cc:12
testProducerWithPsetDescEmpty_cfi.i3
i3
Definition:
testProducerWithPsetDescEmpty_cfi.py:47
CSCTriggerMapping::debugV
bool debugV(void) const
Definition:
CSCTriggerMapping.h:121
testProducerWithPsetDescEmpty_cfi.i1
i1
Definition:
testProducerWithPsetDescEmpty_cfi.py:45
gather_cfg.cout
cout
Definition:
gather_cfg.py:144
Generated for CMSSW Reference Manual by
1.8.14