L1Trigger
TrackFindingTracklet
src
AllInnerStubsMemory.cc
Go to the documentation of this file.
1
#include "
L1Trigger/TrackFindingTracklet/interface/AllInnerStubsMemory.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
AllInnerStubsMemory::AllInnerStubsMemory(
string
name
,
Settings
const
& settings) :
MemoryBase
(
name
, settings) {}
10
11
void
AllInnerStubsMemory::writeStubs
(
bool
first
,
unsigned
int
iSector) {
12
iSector_
= iSector;
13
const
string
dirS =
settings_
.
memPath
() +
"Stubs/"
;
14
openFile
(
first
, dirS,
"AllInnerStubs_"
);
15
16
for
(
unsigned
int
j
= 0;
j
<
stubs_
.size();
j
++) {
17
string
stub =
stubs_
[
j
]->strinner();
18
out_
<<
"0x"
;
19
out_
<< std::setfill(
'0'
) << std::setw(2);
20
out_
<< hex <<
j
<<
dec
;
21
out_
<<
" "
<< stub <<
" "
<<
hexFormat
(stub) << endl;
22
}
23
out_
.close();
24
}
Settings.h
trklet::MemoryBase::settings_
Settings const & settings_
Definition:
MemoryBase.h:50
trklet::AllInnerStubsMemory::writeStubs
void writeStubs(bool first, unsigned int iSector)
Definition:
AllInnerStubsMemory.cc:11
trklet::Settings
Definition:
Settings.h:52
trklet::MemoryBase::out_
std::ofstream out_
Definition:
MemoryBase.h:46
trklet::MemoryBase::openFile
void openFile(bool first, std::string dirName, std::string filebase)
Definition:
MemoryBase.cc:74
first
auto first
Definition:
CAHitNtupletGeneratorKernelsImpl.h:125
trklet::MemoryBase
Definition:
MemoryBase.h:13
trklet::Settings::memPath
std::string memPath() const
Definition:
Settings.h:192
trklet
Definition:
AllInnerStubsMemory.h:10
std
Definition:
JetResolutionObject.h:76
Skims_PA_cff.name
name
Definition:
Skims_PA_cff.py:17
trklet::AllInnerStubsMemory::stubs_
std::vector< const Stub * > stubs_
Definition:
AllInnerStubsMemory.h:33
trklet::hexFormat
std::string hexFormat(const std::string &binary)
Definition:
Util.h:19
dqmiolumiharvest.j
j
Definition:
dqmiolumiharvest.py:66
Stub.h
TauDecayModes.dec
dec
Definition:
TauDecayModes.py:142
AllInnerStubsMemory.h
trklet::MemoryBase::iSector_
unsigned int iSector_
Definition:
MemoryBase.h:44
Generated for CMSSW Reference Manual by
1.8.16