8 using namespace trklet;
10 TrackletProjectionsMemory::TrackletProjectionsMemory(
string name,
Settings const& settings)
12 size_t pos =
find_nth(name, 0,
"_", 1);
13 assert(pos != string::npos);
26 if (itracklet == tracklet) {
29 assert(itracklet != tracklet);
32 tracklets_.push_back(tracklet);
41 std::ostringstream oss;
42 oss << dirTP <<
"TrackletProjections_" <<
getName() <<
"_" << std::setfill(
'0') << std::setw(2) << (
iSector_ + 1)
44 auto const&
fname = oss.str();
48 out_ <<
"BX = " << (bitset<3>)
bx_ <<
" Event : " <<
event_ << endl;
54 out_ << std::setfill(
'0') << std::setw(2);
static size_t find_nth(const std::string &haystack, size_t pos, const std::string &needle, size_t nth)
std::string memPath() const
void writeTPROJ(bool first, unsigned int iSector)
std::string hexFormat(const std::string &binary)
bool validProj(int layerdisk) const
std::string const & getName() const
Settings const & settings_
Abs< T >::type abs(const T &t)
Log< level::Warning, true > LogPrint
std::vector< Tracklet * > tracklets_
void addProj(Tracklet *tracklet)
void initLayerDisk(unsigned int pos, int &layer, int &disk)
std::ofstream openfile(const std::string &dir, const std::string &fname, const char *file, int line)