#include <GradedTrack.h>
Definition at line 43 of file GradedTrack.h.
◆ TrackGradePartition() [1/2]
Analysis::TrackGradePartition::TrackGradePartition |
( |
| ) |
|
◆ TrackGradePartition() [2/2]
Definition at line 26 of file GradedTrack.cxx.
29 const TrackGradesDefinition & myTrackGradesDefinition = trackGradeFactory.getTrackGradesDefinition();
32 const std::string delim(
"+");
33 std::string::size_type sPos, sEnd, sLen;
34 sPos = definition.find_first_not_of(delim);
35 while ( sPos != std::string::npos ) {
36 sEnd = definition.find_first_of(delim, sPos);
37 if(sEnd==std::string::npos) sEnd = definition.length();
39 std::string grade = definition.substr(sPos,sLen);
41 const TrackGrade* tgrade(myTrackGradesDefinition.getGrade(grade));
44 throw std::string(
"#BTAG# Error: the following grade ") + grade + std::string(
" could not be found in the list from TrackGradeFactory ");
46 m_grades.push_back(TrackGrade(*tgrade));
47 sPos = definition.find_first_not_of(delim, sEnd);
◆ ~TrackGradePartition()
Analysis::TrackGradePartition::~TrackGradePartition |
( |
| ) |
|
◆ add()
◆ grades()
const std::vector< TrackGrade > & Analysis::TrackGradePartition::grades |
( |
| ) |
const |
◆ size()
int Analysis::TrackGradePartition::size |
( |
| ) |
const |
◆ suffix()
const std::string Analysis::TrackGradePartition::suffix |
( |
| ) |
const |
◆ m_grades
std::vector<TrackGrade> Analysis::TrackGradePartition::m_grades |
|
private |
The documentation for this class was generated from the following files: