CMS 3D CMS Logo

AllStubsMemory.cc
Go to the documentation of this file.
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 
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