Systematic Namespace Reference

Typedefs

typedef enum
Systematic::ESystematic 
Systematic_t

Enumerations

enum  ESystematic {
  kNorm = 0, kEMCalib = 1, kHadCalib = 2, kRelCalib = 3,
  kMA_QE = 4, kMA_RES = 5, kKNO = 6, kTrkPlane = 7,
  kPIDShift = 8, kSKZP = 9, kOscProb = 10, kShwDev = 11,
  kTauProd = 12, kPIDSkew = 13, kTrkLike = 14, kNCScale = 15,
  kCCShwE = 16, kUnknown = 17
}

Functions

const Char_t * AsString (Systematic_t syst)
Systematic::Systematic_t StringToEnum (const Char_t *chars)
Double_t GetDefaultValue (Systematic_t syst)

Typedef Documentation


Enumeration Type Documentation

Enumerator:
kNorm 
kEMCalib 
kHadCalib 
kRelCalib 
kMA_QE 
kMA_RES 
kKNO 
kTrkPlane 
kPIDShift 
kSKZP 
kOscProb 
kShwDev 
kTauProd 
kPIDSkew 
kTrkLike 
kNCScale 
kCCShwE 
kUnknown 

Definition at line 24 of file Systematic.h.

00024                            {
00025     kNorm      = 0,
00026     kEMCalib   = 1,
00027     kHadCalib  = 2,
00028     kRelCalib  = 3,
00029     kMA_QE     = 4,
00030     kMA_RES    = 5,
00031     kKNO       = 6,
00032     kTrkPlane  = 7,
00033     kPIDShift  = 8,
00034     kSKZP      = 9,
00035     kOscProb   = 10,
00036     kShwDev    = 11,
00037     kTauProd   = 12,
00038     kPIDSkew   = 13,
00039     kTrkLike   = 14,
00040     kNCScale   = 15,
00041     kCCShwE    = 16,
00042     kUnknown   = 17
00043   } Systematic_t;


Function Documentation

const Char_t * Systematic::AsString ( Systematic_t  syst  ) 

Definition at line 7 of file Systematic.cxx.

References kCCShwE, kEMCalib, kHadCalib, kKNO, kMA_QE, kMA_RES, kNCScale, kNorm, kOscProb, kPIDShift, kPIDSkew, kRelCalib, kShwDev, kSKZP, kTauProd, kTrkLike, kTrkPlane, and kUnknown.

Referenced by Comparator::DrawIntegral(), JBComparator::DrawIntegral(), Comparator::DrawPrediction(), JBComparator::DrawPrediction(), Comparator::DrawRatio(), JBComparator::DrawRatio(), Comparator::DrawSummary(), JBComparator::DrawSummary(), NueFNExtrapolation::GetCurrentSystematic(), JBComparator::GetError(), Comparator::GetFDSpectrumIntegral(), JBComparator::GetFDSpectrumIntegral(), JBComparator::GetPredictions(), NueSystematic::MakeBranches(), NueGui::NueGui(), and NueGui::StartComparator().

00008 {
00009    switch (syst) {
00010    case kNorm     : return "Norm";      break;
00011    case kEMCalib  : return "EMCalib";   break;
00012    case kHadCalib : return "HadCalib";  break;
00013    case kRelCalib : return "RelCalib";  break;
00014    case kMA_QE    : return "MA_QE";     break;
00015    case kMA_RES   : return "MA_RES";    break;
00016    case kKNO      : return "KNO";       break;
00017    case kTrkPlane : return "TrkPlane";  break;
00018    case kPIDShift : return "PIDShift";  break;
00019    case kSKZP     : return "SKZP";      break;
00020    case kOscProb  : return "OscProb";   break;
00021    case kShwDev   : return "ShwDev";    break;
00022    case kTauProd  : return "TauProd";   break;
00023    case kPIDSkew  : return "PIDSkew";   break;
00024    case kTrkLike  : return "TrkLike";   break;
00025    case kNCScale  : return "NCScale";   break;
00026    case kCCShwE   : return "CCShwEnergy"; break;
00027    case kUnknown  : return "Unknown";   break;
00028    default        : return "?Unknown?"; break;
00029    }
00030 }

Double_t Systematic::GetDefaultValue ( Systematic_t  syst  ) 

Definition at line 57 of file Systematic.cxx.

References kCCShwE, kEMCalib, kHadCalib, kKNO, kMA_QE, kMA_RES, kNCScale, kNorm, kOscProb, kPIDShift, kPIDSkew, kRelCalib, kShwDev, kSKZP, kTauProd, kTrkLike, kTrkPlane, and kUnknown.

Referenced by NueSystematic::GetSysValue(), NueExtrapolationJB::InitializeNeugen(), NueExtrapolationJB::MakeDataHistograms(), and NueExtrapolationJB::RunSystematicStudy().

00058 {
00059    switch (syst) {
00060    case kNorm     : return 1; break;
00061    case kEMCalib  : return 0; break;
00062    case kHadCalib : return 0; break;
00063    case kRelCalib : return 0; break;
00064    case kMA_QE    : return 1; break;
00065    case kMA_RES   : return 1; break;
00066    case kKNO      : return 1; break;
00067    case kTrkPlane : return 0; break;
00068    case kTrkLike  : return 0; break;
00069    case kPIDShift : return 0; break;
00070    case kSKZP     : return 0; break;
00071    case kOscProb  : return 1; break;
00072    case kShwDev   : return 0; break;
00073    case kTauProd  : return 0; break;
00074    case kPIDSkew  : return 0; break;
00075    case kNCScale  : return 1; break;
00076    case kCCShwE   : return 0; break;
00077    case kUnknown  : return 0; break;
00078    default        : return 0; break;
00079    }
00080 }

Systematic::Systematic_t Systematic::StringToEnum ( const Char_t *  chars  ) 

Definition at line 33 of file Systematic.cxx.

References kCCShwE, kEMCalib, kHadCalib, kKNO, kMA_QE, kMA_RES, kNCScale, kNorm, kOscProb, kPIDShift, kPIDSkew, kRelCalib, kShwDev, kSKZP, kTauProd, kTrkLike, kTrkPlane, and kUnknown.

00034 {
00035   TString theString(chars);
00036   if(theString.Contains("Norm"))      return kNorm;
00037   if(theString.Contains("EMCalib"))   return kEMCalib;
00038   if(theString.Contains("HadCalib"))  return kHadCalib;  
00039   if(theString.Contains("RelCalib"))  return kRelCalib;
00040   if(theString.Contains("MA_QE"))     return kMA_QE;
00041   if(theString.Contains("MA_RES"))    return kMA_RES;
00042   if(theString.Contains("KNO"))       return kKNO;
00043   if(theString.Contains("TrkPlane"))  return kTrkPlane;
00044   if(theString.Contains("TrkLike"))  return kTrkLike;
00045   if(theString.Contains("PIDShift"))  return kPIDShift;
00046   if(theString.Contains("SKZP"))      return kSKZP;
00047   if(theString.Contains("OscProb"))   return kOscProb;
00048   if(theString.Contains("ShwDev"))    return kShwDev;
00049   if(theString.Contains("TauProd"))   return kTauProd;
00050   if(theString.Contains("PIDSkew"))   return kPIDSkew;
00051   if(theString.Contains("CCShwEnergy")) return kCCShwE;
00052   if(theString.Contains("NCScale"))   return kNCScale;
00053   
00054   return kUnknown;
00055 }


Generated on 21 Jun 2018 for loon by  doxygen 1.6.1