7 #include "GaudiKernel/MsgStream.h"
18 track(trk), grade(grd) {
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);
44 throw std::string(
"#BTAG# Error: the following grade ") + grade + std::string(
" could not be found in the list from TrackGradeFactory ");
47 sPos = definition.find_first_not_of(delim, sEnd);
79 out <<
"#BTAG# GradePartition: [ ";
80 for(
int i=0;
i<
part.size();
i++)
out<<
" "<<
part.grades()[
i].gradeString();
85 out <<
"#BTAG# GradePartition: [ ";
86 for(
int i=0;
i<
part.size();
i++)
out<<
" "<<
part.grades()[
i].gradeString();