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;
An metadata class to store basic detector information.
std::string fElectronicsClock
The electronics clock (sampling) in raw configuration format (hexadecimal)
Double_t fElectronicsSamplingTime
The electronics sampling time in us.
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.