#include <CleanTrackMemory.h>
|
void | addTrack (Tracklet *tracklet) |
|
void | clean () override |
|
| CleanTrackMemory (std::string name, Settings const &settings, unsigned int iSector, double phimin, double phimax) |
|
unsigned int | nTracks () const |
|
void | writeCT (bool first) |
|
| ~CleanTrackMemory () override=default |
|
void | findAndReplaceAll (std::string &data, std::string toSearch, std::string replaceStr) |
|
std::string | getLastPartOfName () const |
|
std::string const & | getName () const |
|
unsigned int | initLayerDisk (unsigned int pos) |
|
void | initLayerDisk (unsigned int pos, int &layer, int &disk) |
|
void | initSpecialSeeding (unsigned int pos, bool &overlap, bool &extra, bool &extended) |
|
| MemoryBase (std::string name, Settings const &settings, unsigned int iSector) |
|
void | openFile (bool first, std::string dirName, std::string filebase) |
|
virtual | ~MemoryBase ()=default |
|
Definition at line 13 of file CleanTrackMemory.h.
◆ CleanTrackMemory()
CleanTrackMemory::CleanTrackMemory |
( |
std::string |
name, |
|
|
Settings const & |
settings, |
|
|
unsigned int |
iSector, |
|
|
double |
phimin, |
|
|
double |
phimax |
|
) |
| |
◆ ~CleanTrackMemory()
trklet::CleanTrackMemory::~CleanTrackMemory |
( |
| ) |
|
|
overridedefault |
◆ addTrack()
void trklet::CleanTrackMemory::addTrack |
( |
Tracklet * |
tracklet | ) |
|
|
inline |
◆ clean()
void trklet::CleanTrackMemory::clean |
( |
| ) |
|
|
inlineoverridevirtual |
◆ nTracks()
unsigned int trklet::CleanTrackMemory::nTracks |
( |
| ) |
const |
|
inline |
◆ writeCT()
void CleanTrackMemory::writeCT |
( |
bool |
first | ) |
|
Definition at line 17 of file CleanTrackMemory.cc.
20 std::ostringstream oss;
21 oss << dirCT <<
"CleanTrack_" <<
getName() <<
"_" << std::setfill(
'0') << std::setw(2) << (
iSector_ + 1) <<
".dat";
22 auto const&
fname = oss.str();
28 if (not std::filesystem::exists(dirCT)) {
29 int fail = system((
string(
"mkdir -p ") + dirCT).c_str());
31 throw cms::Exception(
"BadDir") << __FILE__ <<
" " << __LINE__ <<
" could not create directory " << dirCT;
35 throw cms::Exception(
"BadFile") << __FILE__ <<
" " << __LINE__ <<
" could not create file " <<
fname;
40 out_ <<
"BX = " << (bitset<3>)
bx_ <<
" Event : " <<
event_ << endl;
42 for (
unsigned int j = 0;
j <
tracks_.size();
j++) {
44 out_ << std::setfill(
'0') << std::setw(2);
58 out_.open(fnameAll, std::ofstream::app);
62 <<
" phisector= " <<
iSector_ + 1 << endl;
64 for (
unsigned int j = 0;
j <
tracks_.size();
j++) {
References trklet::MemoryBase::bx_, TauDecayModes::dec, trklet::MemoryBase::event_, Exception, first, alignmentValidation::fname, trklet::MemoryBase::getName(), trklet::hexFormat(), trklet::MemoryBase::iSector_, dqmiolumiharvest::j, trklet::Settings::memPath(), trklet::MemoryBase::out_, trklet::MemoryBase::settings_, AlCaHLTBitMon_QueryRunRegistry::string, tracks_, and trklet::Settings::writeMonitorData().
◆ phimax_
double trklet::CleanTrackMemory::phimax_ |
|
private |
◆ phimin_
double trklet::CleanTrackMemory::phimin_ |
|
private |
◆ tracks_
std::vector<Tracklet*> trklet::CleanTrackMemory::tracks_ |
|
private |