8 StubPairsMemory::StubPairsMemory(
string name,
Settings const& settings,
unsigned int iSector)
12 std::ostringstream oss;
13 oss <<
"../data/MemPrints/StubPairs/StubPairs_" <<
getName() <<
"_" << std::setfill(
'0') << std::setw(2)
15 auto const&
fname = oss.str();
22 out_.open(
fname.c_str(), std::ofstream::app);
24 out_ <<
"BX = " << (bitset<3>)
bx_ <<
" Event : " <<
event_ << endl;
26 for (
unsigned int j = 0;
j <
stubs_.size();
j++) {
27 string stub1index =
stubs_[
j].first.stub()->stubindex().str();
28 string stub2index =
stubs_[
j].second.stub()->stubindex().str();
30 out_ << std::setfill(
'0') << std::setw(2);
32 out_ <<
" " << stub1index <<
"|" << stub2index <<
" " <<
trklet::hexFormat(stub1index + stub2index) << endl;