Public Types | Static Public Member Functions | List of all members
ana::XSecSysts Class Reference

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-12-03/CAFAna/XSec/XSecSysts.h"

Public Types

enum  Syst_t {
  kNominal, kCalibNeg, kCalibPos, kCalibShape,
  kLightUpCalibDown, kLightDownCalibUp, kCherenkov
}
 

Static Public Member Functions

static Syst_t SystematicFromLabel (TString)
 
static TString LabelFromSystematic (Syst_t)
 
static std::vector< Syst_tGetAllSystematics ()
 

Detailed Description

Definition at line 7 of file XSecSysts.h.

Member Enumeration Documentation

Enumerator
kNominal 
kCalibNeg 
kCalibPos 
kCalibShape 
kLightUpCalibDown 
kLightDownCalibUp 
kCherenkov 

Definition at line 9 of file XSecSysts.h.

Member Function Documentation

std::vector< XSecSysts::Syst_t > ana::XSecSysts::GetAllSystematics ( )
static
TString ana::XSecSysts::LabelFromSystematic ( XSecSysts::Syst_t  syst)
static

Definition at line 25 of file XSecSysts.cxx.

References om::cout, allTimeWatchdog::endl, kCalibNeg, kCalibPos, kCalibShape, kCherenkov, kLightDownCalibUp, kLightUpCalibDown, and kNominal.

Referenced by demo_trivial_xsec_analysis(), ana::TrivialCrossSectionAnalysis::LoadFrom(), and ana::TrivialCrossSectionAnalysis::SaveTo().

26  {
27  switch(syst) {
28  case(kNominal) : return "kNominal";
29  case(kCalibNeg) : return "kCalibNeg";
30  case(kCalibPos) : return "kCalibPos";
31  case(kCalibShape) : return "kCalibShape";
32  case(kLightUpCalibDown) : return "kLightUpCalibDown";
33  case(kLightDownCalibUp) : return "kLightDownCalibUp";
34  case(kCherenkov) : return "kCherenkov";
35  default : {
36  std::cout << "Your Syst_t is not a member of XSecSysts. Consider deriving a new class." << std::endl;
37  abort();
38  }
39  }
40  }
OStream cout
Definition: OStream.cxx:6
XSecSysts::Syst_t ana::XSecSysts::SystematicFromLabel ( TString  label)
static

Definition at line 44 of file XSecSysts.cxx.

References om::cout, allTimeWatchdog::endl, kCalibNeg, kCalibPos, kCalibShape, kCherenkov, kLightDownCalibUp, kLightUpCalibDown, and kNominal.

45  {
46 
47  if(label == "kNominal") return kNominal;
48  else if(label == "kCalibNeg") return kCalibNeg;
49  else if(label == "kCalibPos") return kCalibPos;
50  else if(label == "kCalibShape") return kCalibShape;
51  else if(label == "kLightUpCalibDown") return kLightUpCalibDown;
52  else if(label == "kLightDownCalibUp") return kLightDownCalibUp;
53  else if(label == "kCherenkov") return kCherenkov;
54  else {
55  std::cout << "Your label is not a member of XSecSysts. Consider deriving a new class" << std::endl;
56  abort();
57  }
58  }
const char * label
OStream cout
Definition: OStream.cxx:6

The documentation for this class was generated from the following files: