Anp::Flux Namespace Reference

Enumerations

enum  Effect {
  kUnknown, kNone, kDetw, kFlux,
  kFluxDet, kFluxSigmaPos, kFluxSigmaNeg
}

Functions

const std::string AsString (Effect effect)
Effect GetEffect (const std::string &name)
bool IsDetector (Effect effect)

Enumeration Type Documentation

Enumerator:
kUnknown 
kNone 
kDetw 
kFlux 
kFluxDet 
kFluxSigmaPos 
kFluxSigmaNeg 

Definition at line 21 of file PhysicsNtuple/HEAD/FluxInfo.h.


Function Documentation

const string Anp::Flux::AsString ( Effect  effect  ) 

Definition at line 98 of file FluxInfo.cxx.

References kDetw, kFlux, kFluxDet, kFluxSigmaNeg, kFluxSigmaPos, and kNone.

00099 {
00100    switch (effect)
00101    {
00102    case kNone:         return "none";
00103    case kDetw:         return "detw";
00104    case kFlux:         return "flux";
00105    case kFluxDet:      return "fluxdet";
00106    case kFluxSigmaPos: return "flux_sigma_pos";
00107    case kFluxSigmaNeg: return "flux_sigma_neg";
00108    default:
00109       break;
00110    }
00111    
00112    return "unknown";
00113 }

Effect Anp::Flux::GetEffect ( const std::string &  name  ) 
bool Anp::Flux::IsDetector ( Effect  effect  ) 

Definition at line 129 of file FluxInfo.cxx.

References kDetw, and kFluxDet.

00130 {
00131    if(effect == kDetw || effect == kFluxDet)
00132    {
00133       return true;
00134    }
00135 
00136    return false;
00137 }


Generated on 19 Jan 2018 for loon by  doxygen 1.6.1