L1Trigger
TrackFindingTracklet
src
AllStubsMemory.cc
Go to the documentation of this file.
1
#include "
L1Trigger/TrackFindingTracklet/interface/AllStubsMemory.h
"
2
#include "
L1Trigger/TrackFindingTracklet/interface/Stub.h
"
3
#include "
L1Trigger/TrackFindingTracklet/interface/Settings.h
"
4
#include <iomanip>
5
6
using namespace
std
;
7
using namespace
trklet
;
8
9
AllStubsMemory::AllStubsMemory(
string
name
,
Settings
const
& settings,
unsigned
int
iSector)
10
:
MemoryBase
(
name
, settings, iSector) {}
11
12
void
AllStubsMemory::writeStubs
(
bool
first
) {
13
openFile
(
first
,
"../data/MemPrints/Stubs/AllStubs_"
);
14
15
for
(
unsigned
int
j
= 0;
j
<
stubs_
.size();
j
++) {
16
string
stub =
stubs_
[
j
]->str();
17
out_
<<
"0x"
;
18
out_
<< std::setfill(
'0'
) << std::setw(2);
19
out_
<< hex <<
j
<<
dec
;
20
out_
<<
" "
<< stub <<
" "
<<
hexFormat
(stub) << endl;
21
}
22
out_
.close();
23
}
Settings.h
trklet::MemoryBase::openFile
void openFile(bool first, std::string filebase)
Definition:
MemoryBase.cc:72
AllStubsMemory.h
trklet::Settings
Definition:
Settings.h:26
trklet::MemoryBase::out_
std::ofstream out_
Definition:
MemoryBase.h:46
trklet::AllStubsMemory::stubs_
std::vector< const Stub * > stubs_
Definition:
AllStubsMemory.h:33
dqmdumpme.first
first
Definition:
dqmdumpme.py:55
trklet::MemoryBase
Definition:
MemoryBase.h:13
trklet
Definition:
AllProjectionsMemory.h:9
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:14
dqmiolumiharvest.j
j
Definition:
dqmiolumiharvest.py:66
Stub.h
TauDecayModes.dec
dec
Definition:
TauDecayModes.py:143
trklet::AllStubsMemory::writeStubs
void writeStubs(bool first)
Definition:
AllStubsMemory.cc:12
Generated for CMSSW Reference Manual by
1.8.16