/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Enumerations | Functions
DayaBay::Calibration::SourceType Namespace Reference

Enumerations

enum  SourceType_t { kUnknown = 0, kLED = 1, kAmC_Co60 = 2, kGe68 = 3 }

Functions

const char * AsString (SourceType_t site)
SourceType_t FromString (const char *str)

Enumeration Type Documentation

Enumerator:
kUnknown 
kLED 
kAmC_Co60 
kGe68 

Definition at line 23 of file Calibration.h.

                        {
        kUnknown      = 0, 
        kLED          = 1,
        kAmC_Co60     = 2,
        kGe68         = 3
      };

Function Documentation

const char * DayaBay::Calibration::SourceType::AsString ( SourceType_t  site)

Definition at line 32 of file Calibration.cc.

{

    if (id < 0 || id > kSourceNames) return sourceNames[0];
    return sourceNames[id];
}
SourceType::SourceType_t DayaBay::Calibration::SourceType::FromString ( const char *  str)

Definition at line 39 of file Calibration.cc.

{
    string s = str;

    for (int ind=1; sourceNames[ind]; ++ind) {
      if (s == sourceNames[ind]) return (SourceType::SourceType_t)(ind);
    }
    return kUnknown;
}
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:56:20 for Conventions by doxygen 1.7.4