Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Selection Namespace Reference


Typedefs

typedef enum Selection::ESelection Selection_t

Enumerations

enum  ESelection {
  kNone = 0, kFid = 1, kPre = 2, kCuts = 3,
  kANN = 4, kSSPID = 5, kMCNN = 6, kBDT = 7,
  kKNue = 8, kMDA = 9, kUnknown = 10
}

Functions

const Char_t * AsString (Selection_t selection)
Selection::Selection_t StringToEnum (const Char_t *chars)


Typedef Documentation

typedef enum Selection::ESelection Selection::Selection_t
 


Enumeration Type Documentation

enum ESelection
 

Enumeration values:
kNone 
kFid 
kPre 
kCuts 
kANN 
kSSPID 
kMCNN 
kBDT 
kKNue 
kMDA 
kUnknown 

Definition at line 24 of file Selection.h.

Referenced by NueGui::NueGui(), and NueGroupFrame::ProcessMessage().

00024                           {
00025       kNone     = 0,
00026       kFid      = 1,
00027       kPre      = 2,
00028       kCuts     = 3,
00029       kANN      = 4,
00030       kSSPID    = 5, 
00031       kMCNN     = 6,
00032       kBDT      = 7,
00033       kKNue     = 8, 
00034       kMDA      = 9,
00035       kUnknown  = 10
00036   } Selection_t;


Function Documentation

const Char_t * Selection::AsString Selection_t  selection  ) 
 

Definition at line 7 of file Selection.cxx.

References kANN, kBDT, kCuts, kFid, kKNue, kMCNN, kMDA, kPre, and kSSPID.

Referenced by NueBackground::Print(), and NueGui::StartComparator().

00008 {
00009    switch (selection) {
00010    case kNone:      return "None";       break;
00011    case kFid:       return "Fid";        break;
00012    case kPre:       return "Presel";     break;
00013    case kCuts:      return "Cuts";       break;
00014    case kANN:       return "ANN";        break;
00015    case kSSPID:     return "SSPID";      break;
00016    case kMDA:       return "MDA";        break;
00017    case kBDT:       return "BDT";        break;
00018    case kKNue:      return "KNue";       break;
00019    case kMCNN:      return "MCNN";       break;
00020    case kUnknown:   return "Unknown";    break;
00021    default:         return "?Unknown?";  break;
00022    }
00023 }

Selection::Selection_t Selection::StringToEnum const Char_t *  chars  ) 
 

Definition at line 26 of file Selection.cxx.

00027 {
00028   TString theString(chars);
00029   if(theString.Contains("None"))  return kNone;
00030   if(theString.Contains("Fid"))   return kFid;
00031   if(theString.Contains("Presel"))  return kPre;  
00032   if(theString.Contains("Cuts"))  return kCuts;
00033   if(theString.Contains("ANN"))   return kANN;
00034   if(theString.Contains("SSPID")) return kSSPID;
00035   if(theString.Contains("MDA"))   return kMDA;
00036   if(theString.Contains("BDT"))   return kBDT;
00037   if(theString.Contains("KNue"))  return kKNue;
00038   if(theString.Contains("MCNN"))    return kMCNN;
00039   
00040   return kUnknown;
00041 }


Generated on Thu Nov 1 12:02:20 2007 for loon by  doxygen 1.3.9.1