BeamSys Namespace Reference

Typedefs

typedef enum BeamSys::EBeamSys BeamSys_t

Enumerations

enum  EBeamSys {
  kFirst = 0, kHorn1Offset = 1, kBaffleScraping = 2, kPOT = 3,
  kHornIMiscal = 4, kHornIDist = 5, kBeamWidth = 6, kHadProdBefore = 7,
  kHadProdAfter = 8, kTotalBefore = 10, kTotalAfter = 11, kTotalFocusing = 12,
  kTargetZ = 13, kMaterialError = 14, kBeamPosition = 15, kHorn1Tilt = 16,
  kEndOfList
}

Functions

BeamSys_t StringToEnum (std::string eff)
std::string AsString (BeamSys_t en)

Typedef Documentation


Enumeration Type Documentation

Enumerator:
kFirst 
kHorn1Offset 
kBaffleScraping 
kPOT 
kHornIMiscal 
kHornIDist 
kBeamWidth 
kHadProdBefore 
kHadProdAfter 
kTotalBefore 
kTotalAfter 
kTotalFocusing 
kTargetZ 
kMaterialError 
kBeamPosition 
kHorn1Tilt 
kEndOfList 

Definition at line 7 of file BeamSys.h.

00008   {
00009       kFirst          = 0  ,
00010       kHorn1Offset    = 1  ,
00011       kBaffleScraping = 2  ,
00012       kPOT            = 3  ,
00013       kHornIMiscal    = 4  ,
00014       kHornIDist      = 5  ,
00015       kBeamWidth      = 6  ,
00016       kHadProdBefore  = 7  ,
00017       kHadProdAfter   = 8  ,
00018       kTotalBefore    = 10 ,
00019       kTotalAfter     = 11 ,
00020       kTotalFocusing  = 12 ,
00021       kTargetZ        = 13 ,
00022       kMaterialError  = 14 ,
00023       kBeamPosition   = 15 ,
00024       kHorn1Tilt      = 16 ,
00025       kEndOfList
00026   } BeamSys_t;


Function Documentation

std::string BeamSys::AsString ( BeamSys_t  en  ) 

Definition at line 25 of file BeamSys.cxx.

References kBaffleScraping, kBeamPosition, kBeamWidth, kHadProdAfter, kHadProdBefore, kHorn1Offset, kHorn1Tilt, kHornIDist, kHornIMiscal, kMaterialError, kPOT, kTargetZ, kTotalAfter, kTotalBefore, and kTotalFocusing.

Referenced by Zbeam::MakeHistogram().

00026 {
00027   switch (effect)
00028     {
00029     case kHorn1Offset    : return "Horn1Offset";    break;
00030     case kBaffleScraping : return "BaffleScraping"; break;
00031     case kPOT            : return "POT";            break;
00032     case kHornIMiscal    : return "HornIMiscal";    break;
00033     case kHornIDist      : return "HornIDist";      break;
00034     case kBeamWidth      : return "BeamWidth";      break;
00035     case kHadProdBefore  : return "HadProdBefore";  break;
00036     case kHadProdAfter   : return "HadProdAfter";   break;
00037     case kTotalBefore    : return "TotalBefore";    break;
00038     case kTotalAfter     : return "TotalAfter";     break;
00039     case kTotalFocusing  : return "TotalFocusing";  break;
00040     case kTargetZ        : return "TargetZ";        break;
00041     case kMaterialError  : return "MaterialError";  break;
00042     case kBeamPosition   : return "BeamPosition";   break;
00043     case kHorn1Tilt      : return "Horn1Tilt";      break;
00044     default              : return "Unknown";        break;
00045     }
00046 }

BeamSys::BeamSys_t BeamSys::StringToEnum ( std::string  eff  ) 

Definition at line 4 of file BeamSys.cxx.

References kBaffleScraping, kBeamPosition, kBeamWidth, kEndOfList, kHadProdAfter, kHadProdBefore, kHorn1Offset, kHorn1Tilt, kHornIDist, kHornIMiscal, kMaterialError, kPOT, kTargetZ, kTotalAfter, kTotalBefore, and kTotalFocusing.

00005 {
00006   if      (effect == "Horn1Offset")    return kHorn1Offset;
00007   else if (effect == "BaffleScraping") return kBaffleScraping;
00008   else if (effect == "POT")            return kPOT;
00009   else if (effect == "HornIMiscal")    return kHornIMiscal;
00010   else if (effect == "HornIDist")      return kHornIDist;
00011   else if (effect == "BeamWidth")      return kBeamWidth;
00012   else if (effect == "HadProdBefore")  return kHadProdBefore;
00013   else if (effect == "HadProdAfter")   return kHadProdAfter;
00014   else if (effect == "TotalBefore")    return kTotalBefore;
00015   else if (effect == "TotalAfter")     return kTotalAfter;
00016   else if (effect == "TotalFocusing")  return kTotalFocusing;
00017   else if (effect == "TargetZ")        return kTargetZ;
00018   else if (effect == "MaterialError")  return kMaterialError;
00019   else if (effect == "BeamPosition")   return kBeamPosition;
00020   else if (effect == "Horn1Tilt")      return kHorn1Tilt;
00021   else return kEndOfList;
00022 }


Generated on 21 Jun 2018 for loon by  doxygen 1.6.1