Background Namespace Reference

Typedefs

typedef enum
Background::EBackground 
Background_t

Enumerations

enum  EBackground {
  kNueCC = 0, kNC = 1, kNuMuCC = 2, kBNueCC = 3,
  kNuTauCC = 4, kPiBNueCC = 5, kKaBNueCC = 6, kSelCC = 7,
  kNuMuNC = 8, kBNueNC = 9, kUnknown = 10
}

Functions

const Char_t * AsString (Background_t background)
Background::Background_t StringToEnum (const Char_t *chars)
Background::Background_t TranslateFromMC (Int_t iaction, Int_t inu, Int_t inunoosc, Int_t parentid=0)
Background::Background_t TranslateFromNueClass (int nueClass)

Typedef Documentation


Enumeration Type Documentation

Enumerator:
kNueCC 
kNC 
kNuMuCC 
kBNueCC 
kNuTauCC 
kPiBNueCC 
kKaBNueCC 
kSelCC 
kNuMuNC 
kBNueNC 
kUnknown 

Definition at line 24 of file Background.h.

00024                            {
00025     kNueCC    = 0,
00026     kNC       = 1,
00027     kNuMuCC   = 2,
00028     kBNueCC   = 3, 
00029     kNuTauCC  = 4,
00030     kPiBNueCC = 5,
00031     kKaBNueCC = 6,
00032     kSelCC    = 7,
00033     kNuMuNC   = 8,
00034     kBNueNC   = 9,
00035     kUnknown  = 10
00036   } Background_t;


Function Documentation

const Char_t * Background::AsString ( Background_t  background  ) 

Definition at line 8 of file Background.cxx.

References kBNueCC, kBNueNC, kKaBNueCC, kNC, kNueCC, kNuMuCC, kNuMuNC, kNuTauCC, kPiBNueCC, kSelCC, and kUnknown.

Referenced by ErrorCalc::CalculateAppearanceExtrapError_SingleBin(), NuePrediction::Draw(), Comparator::DrawIntegral(), JBComparator::DrawIntegral(), Comparator::DrawPrediction(), JBComparator::DrawPrediction(), Comparator::DrawRatio(), JBComparator::DrawRatio(), Comparator::DrawSummary(), Comparator::ExtractDataHists(), JBComparator::ExtractDataHists(), Comparator::GetFDSpectrumIntegral(), JBComparator::GetFDSpectrumIntegral(), NueExtrapolationJB::GetPrediction(), JBComparator::GetPredictions(), NueFNExtrapolation::GetRatio(), NueExtrapolation::GetSpectrum(), ErrorCalc_Joint::Initialize(), ErrorCalc::Initialize(), SysFileGen::InitializeHistograms(), SysFileGen2D::InitializeHistograms(), NueExtrapolationJB::InitializePredictionHistograms(), NueGui::NueGui(), Extrapolate2D::ReadExtrap(), ErrorCalc::ReadSysFiles_Appearance(), ErrorCalc::ReadSysFiles_Appearance_AllRuns(), ErrorCalc_Joint::ReadSysFiles_Appearance_AllRuns(), ErrorCalc::ReadSysFiles_FNExtrap(), ErrorCalc_Joint::ReadSysFiles_FNExtrap_AllRuns(), ErrorCalc::ReadSysFiles_FNExtrap_AllRuns(), Extrapolate2D::SetupPredHists(), and Extrapolate2D_Simple::SetupPredHists().

00009 {
00010    switch (background) {
00011    case kNueCC:     return "NueCC";      break;
00012    case kNC:        return "NC";         break;
00013    case kNuMuCC:    return "NuMuCC";     break;
00014    case kBNueCC:    return "BNueCC";     break;
00015    case kNuTauCC:   return "NuTauCC";    break;
00016    case kPiBNueCC:  return "PiBNueCC";   break;
00017    case kKaBNueCC:  return "KaBNueCC";   break;    
00018    case kSelCC:     return "SelCC";      break; 
00019    case kNuMuNC:    return "NuMuNC";     break;
00020    case kBNueNC:    return "BNueNC";     break;
00021    case kUnknown:   return "Unknown";    break;
00022    default:         return "?Unknown?";  break;
00023    }
00024 }

Background::Background_t Background::StringToEnum ( const Char_t *  chars  ) 

Definition at line 27 of file Background.cxx.

References kBNueCC, kBNueNC, kKaBNueCC, kNC, kNueCC, kNuMuCC, kNuMuNC, kNuTauCC, kPiBNueCC, kSelCC, and kUnknown.

00028 {
00029   TString theString(chars);
00030   if(theString.Contains("NueCC"))    return kNueCC;
00031   if(theString.Contains("NC"))       return kNC;
00032   if(theString.Contains("NuMuCC"))   return kNuMuCC;
00033   if(theString.Contains("BNueCC"))   return kBNueCC;
00034   if(theString.Contains("NuTauCC"))  return kNuTauCC;
00035   if(theString.Contains("PiBNueCC")) return kPiBNueCC;
00036   if(theString.Contains("KaBNueCC")) return kKaBNueCC;
00037   if(theString.Contains("SelCC"))    return kSelCC;
00038   if(theString.Contains("NuMuNC"))   return kNuMuNC;
00039   if(theString.Contains("BNueNC"))   return kBNueNC;
00040   
00041   return kUnknown;
00042 }

Background::Background_t Background::TranslateFromMC ( Int_t  iaction,
Int_t  inu,
Int_t  inunoosc,
Int_t  parentid = 0 
)

Definition at line 44 of file Background.cxx.

References kBNueCC, kBNueNC, kKaBNueCC, kNC, kNueCC, kNuMuCC, kNuMuNC, kNuTauCC, kPiBNueCC, and kUnknown.

Referenced by NueExtrapolationJB::CreateOscHist(), NueSystematic::DoShwDevCalc(), NueStandard::GetPredWeights(), NueStandard::GetPredWeights_DO_NOT_USE(), NueMatrixHelper::MakeANANUEPlots(), and NueFNHelper::MakeHelpers().

00046 {
00047   if(iaction==0) return Background::kNC;
00048   if(iaction==0 && TMath::Abs(inu)==14 && TMath::Abs(inunoosc)==14){
00049      return Background::kNuMuNC;
00050   }
00051   if(iaction==0 && TMath::Abs(inu)==12 && TMath::Abs(inunoosc)==12){
00052      return Background::kBNueNC;
00053   }
00054   if(iaction==1) {
00055     if(TMath::Abs(inu)==12) {
00056       if(TMath::Abs(inunoosc)==12) {
00057         if(parentid==0) return Background::kBNueCC;
00058         else if(TMath::Abs(parentid)==211) return Background::kPiBNueCC;
00059         else if(TMath::Abs(parentid)==130 || 
00060                 TMath::Abs(parentid)==321 ||
00061                 TMath::Abs(parentid)==310) return Background::kKaBNueCC;
00062       }
00063       else if(TMath::Abs(inunoosc)==14) {
00064         return Background::kNueCC;
00065       }
00066     }
00067     else if(TMath::Abs(inu)==14) return Background::kNuMuCC;
00068     else if(TMath::Abs(inu)==16) return Background::kNuTauCC;
00069   }
00070   return Background::kUnknown;
00071 }

Background::Background_t Background::TranslateFromNueClass ( int  nueClass  ) 

Generated on 18 Jan 2018 for loon by  doxygen 1.6.1