10 log->debug(CONSTRUCTOR,
"GTrueInfoData");
11 gidentity = ghit->getGID();
15 log->debug(NORMAL,
" including ", varName,
" in trueInfoFloatVariablesMap.");
16 trueInfoFloatVariablesMap[varName] = var;
20 log->debug(NORMAL,
" including ", varName,
" in trueInfoStringVariablesMap.");
21 trueInfoStringVariablesMap[varName] = var;
25 std::string identifierString =
"";
26 for (
size_t i = 0; i < gidentity.size() - 1; i++) {
27 identifierString += gidentity[i].getName() +
"->" + std::to_string(gidentity[i].getValue()) +
", ";
29 identifierString += gidentity.back().getName() +
"->" + std::to_string(gidentity.back().getValue());
30 return identifierString;
void includeVariable(std::string varName, float var)
Includes a float variable in the true hit data.
GTrueInfoData(GHit *ghit, GLogger *const logger)
Constructs a GTrueInfoData object.
std::string getIdentityString()
Returns a string representation of the identity.
Defines the GTrueInfoData class which holds true hit data.