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
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
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
L1Trigger
TrackFindingTracklet
src
TrackletParametersMemory.cc
Go to the documentation of this file.
1
#include "
L1Trigger/TrackFindingTracklet/interface/TrackletParametersMemory.h
"
2
#include "
L1Trigger/TrackFindingTracklet/interface/Settings.h
"
3
#include "
L1Trigger/TrackFindingTracklet/interface/Globals.h
"
4
#include "
L1Trigger/TrackFindingTracklet/interface/Tracklet.h
"
5
#include <iomanip>
6
#include <filesystem>
7
8
using namespace
std
;
9
using namespace
trklet
;
10
11
TrackletParametersMemory::TrackletParametersMemory(
string
name
,
Settings
const
& settings)
12
:
MemoryBase
(
name
, settings) {}
13
14
void
TrackletParametersMemory::clean
() {
15
for
(
auto
& tracklet :
tracklets_
) {
16
delete
tracklet;
17
}
18
tracklets_
.clear();
19
}
20
21
void
TrackletParametersMemory::writeTPAR
(
bool
first
,
unsigned
int
iSector) {
22
iSector_
= iSector;
23
const
string
dirTP =
settings_
.
memPath
() +
"TrackletParameters/"
;
24
25
std::ostringstream oss;
26
oss << dirTP <<
"TrackletParameters_"
<<
getName
() <<
"_"
<< std::setfill(
'0'
) << std::setw(2) << (
iSector_
+ 1)
27
<<
".dat"
;
28
auto
const
&
fname
= oss.str();
29
30
openfile
(
out_
,
first
, dirTP,
fname
, __FILE__, __LINE__);
31
32
out_
<<
"BX = "
<< (bitset<3>)
bx_
<<
" Event : "
<<
event_
<< endl;
33
34
for
(
unsigned
int
j
= 0;
j
<
tracklets_
.size();
j
++) {
35
string
tpar =
tracklets_
[
j
]->trackletparstr();
36
out_
<<
"0x"
;
37
out_
<< std::setfill(
'0'
) << std::setw(2);
38
out_
<< hex <<
j
<<
dec
;
39
out_
<<
" "
<< tpar <<
" "
<<
trklet::hexFormat
(tpar) << endl;
40
}
41
out_
.close();
42
43
bx_
++;
44
event_
++;
45
if
(
bx_
> 7)
46
bx_
= 0;
47
}
Settings.h
trklet::MemoryBase::settings_
Settings const & settings_
Definition:
MemoryBase.h:50
trklet::openfile
std::ofstream openfile(const std::string &dir, const std::string &fname, const char *file, int line)
Definition:
Util.h:138
trklet::Settings
Definition:
Settings.h:52
TrackletParametersMemory.h
trklet::MemoryBase::event_
int event_
Definition:
MemoryBase.h:48
trklet::MemoryBase::out_
std::ofstream out_
Definition:
MemoryBase.h:46
trklet::MemoryBase::bx_
int bx_
Definition:
MemoryBase.h:47
trklet::MemoryBase::getName
std::string const & getName() const
Definition:
MemoryBase.h:19
trklet::TrackletParametersMemory::writeTPAR
void writeTPAR(bool first, unsigned int iSector)
Definition:
TrackletParametersMemory.cc:21
first
auto first
Definition:
CAHitNtupletGeneratorKernelsImpl.h:125
trklet::MemoryBase
Definition:
MemoryBase.h:13
trklet::Settings::memPath
std::string memPath() const
Definition:
Settings.h:192
Globals.h
trklet::TrackletParametersMemory::clean
void clean() override
Definition:
TrackletParametersMemory.cc:14
trklet
Definition:
AllInnerStubsMemory.h:10
alignmentValidation.fname
string fname
main script
Definition:
alignmentValidation.py:959
std
Definition:
JetResolutionObject.h:76
Skims_PA_cff.name
name
Definition:
Skims_PA_cff.py:17
trklet::hexFormat
std::string hexFormat(const std::string &binary)
Definition:
Util.h:19
dqmiolumiharvest.j
j
Definition:
dqmiolumiharvest.py:66
TauDecayModes.dec
dec
Definition:
TauDecayModes.py:142
Tracklet.h
trklet::TrackletParametersMemory::tracklets_
std::vector< Tracklet * > tracklets_
Definition:
TrackletParametersMemory.h:34
trklet::MemoryBase::iSector_
unsigned int iSector_
Definition:
MemoryBase.h:44
Generated for CMSSW Reference Manual by
1.8.16