#include <CandidateMatchMemory.h>
|
void | addMatch (std::pair< Tracklet *, int > tracklet, const Stub *stub) |
|
| CandidateMatchMemory (std::string name, Settings const &settings, unsigned int iSector) |
|
void | clean () override |
|
std::pair< std::pair< Tracklet *, int >, const Stub * > | getMatch (unsigned int i) |
|
unsigned int | nMatches () const |
|
void | writeCM (bool first) |
|
| ~CandidateMatchMemory () 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 filebase) |
|
virtual | ~MemoryBase ()=default |
|
Definition at line 17 of file CandidateMatchMemory.h.
◆ CandidateMatchMemory()
CandidateMatchMemory::CandidateMatchMemory |
( |
std::string |
name, |
|
|
Settings const & |
settings, |
|
|
unsigned int |
iSector |
|
) |
| |
◆ ~CandidateMatchMemory()
trklet::CandidateMatchMemory::~CandidateMatchMemory |
( |
| ) |
|
|
overridedefault |
◆ addMatch()
void CandidateMatchMemory::addMatch |
( |
std::pair< Tracklet *, int > |
tracklet, |
|
|
const Stub * |
stub |
|
) |
| |
◆ clean()
void trklet::CandidateMatchMemory::clean |
( |
| ) |
|
|
inlineoverridevirtual |
◆ getMatch()
std::pair<std::pair<Tracklet*, int>, const Stub*> trklet::CandidateMatchMemory::getMatch |
( |
unsigned int |
i | ) |
|
|
inline |
◆ nMatches()
unsigned int trklet::CandidateMatchMemory::nMatches |
( |
| ) |
const |
|
inline |
◆ writeCM()
void CandidateMatchMemory::writeCM |
( |
bool |
first | ) |
|
Definition at line 29 of file CandidateMatchMemory.cc.
30 std::ostringstream oss;
31 oss <<
"../data/MemPrints/Matches/CandidateMatches_" <<
getName() <<
"_" << std::setfill(
'0') << std::setw(2)
33 auto const&
fname = oss.str();
40 out_.open(
fname.c_str(), std::ofstream::app);
42 out_ <<
"BX = " << (bitset<3>)
bx_ <<
" Event : " <<
event_ << endl;
44 for (
unsigned int j = 0;
j <
matches_.size();
j++) {
45 string stubid =
matches_[
j].second->stubindex().str();
48 if (projindex >= (1 << 7)) {
49 projindex = (1 << 7) - 1;
51 tmp.set(projindex, 7,
true, __LINE__, __FILE__);
53 out_ << std::setfill(
'0') << std::setw(2);
References trklet::MemoryBase::bx_, TauDecayModes::dec, trklet::MemoryBase::event_, dqmdumpme::first, alignmentValidation::fname, trklet::MemoryBase::getName(), trklet::hexFormat(), trklet::MemoryBase::iSector_, dqmiolumiharvest::j, matches_, trklet::MemoryBase::out_, and createJobs::tmp.
◆ matches_
std::vector<std::pair<std::pair<Tracklet*, int>, const Stub*> > trklet::CandidateMatchMemory::matches_ |
|
private |
std::pair< typename Association::data_type::first_type, double > match(Reference key, Association association, bool bestMatchByMaxValue)
Generic matching function.