Extrapolation Namespace Reference

Typedefs

typedef enum
Extrapolation::EExtrapolation 
Extrapolation_t

Enumerations

enum  EExtrapolation {
  kNone = 0, kNorm = 1, kFN = 2, kMM = 3,
  kFDCC = 4, kNDFit = 5, kUnknown = 6
}

Functions

const Char_t * AsString (Extrapolation_t selection)
Extrapolation::Extrapolation_t StringToEnum (const Char_t *chars)

Typedef Documentation


Enumeration Type Documentation

Enumerator:
kNone 
kNorm 
kFN 
kMM 
kFDCC 
kNDFit 
kUnknown 

Definition at line 24 of file Extrapolation.h.

00024                               {
00025     kNone     = 0,
00026     kNorm     = 1,
00027     kFN       = 2,
00028     kMM       = 3,
00029     kFDCC     = 4, 
00030     kNDFit    = 5,
00031     kUnknown  = 6
00032   } Extrapolation_t;


Function Documentation

const Char_t * Extrapolation::AsString ( Extrapolation_t  selection  ) 

Definition at line 7 of file Extrapolation.cxx.

References kFDCC, kFN, kMM, kNDFit, kNone, kNorm, and kUnknown.

Referenced by NueExtrapolation::GetSpectrum().

00008 {
00009   switch (extrapolation) {
00010   case kNone:      return "None";      break;
00011   case kNorm:      return "Norm";      break;
00012   case kFN:        return "F/N";       break;
00013   case kMM:        return "Matrix";    break;
00014   case kFDCC:      return "FDCCFlux";  break;
00015   case kNDFit:     return "NDFit";     break;
00016   case kUnknown:   return "Unknown";   break;
00017   default:         return "?Unknown?"; break;
00018   }
00019 }

Extrapolation::Extrapolation_t Extrapolation::StringToEnum ( const Char_t *  chars  ) 

Definition at line 22 of file Extrapolation.cxx.

References kFDCC, kFN, kMM, kNDFit, kNone, kNorm, and kUnknown.

00023 {
00024   TString theString(chars);
00025   if(theString.Contains("None"))     return kNone;
00026   if(theString.Contains("Norm"))     return kNorm;
00027   if(theString.Contains("F/N"))      return kFN;
00028   if(theString.Contains("Matrix"))   return kMM;
00029   if(theString.Contains("FDCCFlux")) return kFDCC;
00030   if(theString.Contains("NDFit"))    return kNDFit;
00031   
00032   return kUnknown;
00033 }


Generated on 16 Apr 2018 for loon by  doxygen 1.6.1