11 TrackletParametersMemory::TrackletParametersMemory(
string name,
Settings const& settings,
unsigned int iSector)
24 if ((tracklet->nMatches() + tracklet->nMatchesDisk()) > 0) {
25 if (tracklet->layer() == 1)
27 if (tracklet->layer() == 3)
29 if (tracklet->layer() == 5)
32 out << tracklet->layer() <<
" " << tracklet->disk() <<
" " << tracklet->nMatches() <<
" "
33 << tracklet->nMatchesDisk() << endl;
40 std::ostringstream oss;
41 oss << dirTP <<
"TrackletParameters_" <<
getName() <<
"_" << std::setfill(
'0') << std::setw(2) << (
iSector_ + 1)
43 auto const&
fname = oss.str();
49 if (not std::filesystem::exists(dirTP)) {
50 int fail = system((
string(
"mkdir -p ") + dirTP).c_str());
52 throw cms::Exception(
"BadDir") << __FILE__ <<
" " << __LINE__ <<
" could not create directory " << dirTP;
56 throw cms::Exception(
"BadFile") << __FILE__ <<
" " << __LINE__ <<
" could not create file " <<
fname;
61 out_ <<
"BX = " << (bitset<3>)
bx_ <<
" Event : " <<
event_ << endl;
66 out_ << std::setfill(
'0') << std::setw(2);