56 #include "TRestDetector.h"
64 auto cl =
RESTValue(
this, this->ClassName());
65 for (
int i = 0; i < cl.GetNumberOfDataMembers(); i++) {
66 if (cl.GetDataMember(i).name ==
"fgIsA")
continue;
67 if (cl.GetDataMember(i).ToString() !=
"-1")
68 RESTMetadata << cl.GetDataMember(i).name <<
": " << cl.GetDataMember(i).ToString() << RESTendl;
70 RESTMetadata <<
"---------------------------------------" << RESTendl;
76 if (fElectronicsClock !=
"-1") {
An metadata class to store basic detector information.
void UpdateMetadataMembers() override
Method to allow implementation of specific metadata members updates at inherited classes.
void PrintMetadata() override
Implemented it in the derived metadata class to print out specific metadata information.
Int_t StringToInteger(std::string in)
Gets an integer from a string.