22 case kUnknown:
return "UnknownExposureUnits";
break;
23 case kPOTs:
return "POT";
break;
24 case kSeconds:
return "Seconds";
break;
25 default:
return "?UnknownExposureUnits?";
break;
32 int len = strlen(chars);
33 if (maxChar == 0 ) maxChar = len;
34 if (maxChar > len) maxChar = len;
37 char* lowchars =
new char [maxChar];
38 for (
int i=0; i<maxChar; ++i) lowchars[i] = tolower(chars[i]);
41 if ( 0 == strncmp(lowchars,
"pot",TMath::Min(maxChar,3))) {
43 }
else if ( 0 == strncmp(lowchars,
"sec",TMath::Min(maxChar,3))) {
const char * GetExposureUnits() const
what units are returned by GetTotalExposure?
static const char * AsString(genie::flux::Exposure_t etype)
THE MAIN GENIE PROJECT NAMESPACE
genie::flux::Exposure_t GetExposureType() const
static genie::flux::Exposure_t StringToEnum(const char *chars, int maxChar=0)
enum genie::flux::EExposure Exposure_t
genie::flux::Exposure_t fEType
virtual ~GFluxExposureI()
GFluxExposureI(genie::flux::Exposure_t etype)