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, kDataQual = 1, kFid = 2, kPre = 3,
  kCuts = 4, kANN6 = 5, kANN30 = 6, kSSPID = 7,
  kMCNN = 8, kBDT = 9, kKNue = 10, kMDA = 11,
  kCC = 12, kUnknown = 13
}

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 
kDataQual 
kFid 
kPre 
kCuts 
kANN6 
kANN30 
kSSPID 
kMCNN 
kBDT 
kKNue 
kMDA 
kCC 
kUnknown 

Definition at line 24 of file Selection.h.

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

00024                           {
00025       kNone     = 0,
00026       kDataQual = 1,
00027       kFid      = 2,
00028       kPre      = 3,
00029       kCuts     = 4,
00030       kANN6     = 5,
00031       kANN30    = 6,
00032       kSSPID    = 7, 
00033       kMCNN     = 8,
00034       kBDT      = 9,
00035       kKNue     = 10, 
00036       kMDA      = 11,
00037       kCC       = 12,
00038       kUnknown  = 13
00039   } Selection_t;


Function Documentation

const Char_t * Selection::AsString Selection_t  selection  ) 
 

Definition at line 7 of file Selection.cxx.

References kANN30, kANN6, kBDT, kCC, kCuts, kDataQual, 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 kDataQual:  return "DataQual";   break;
00012    case kFid:       return "Fid";        break;
00013    case kPre:       return "Presel";     break;
00014    case kCuts:      return "Cuts";       break;
00015    case kANN6:      return "ANN6";       break;
00016    case kANN30:     return "ANN30";      break;
00017    case kSSPID:     return "SSPID";      break;
00018    case kMDA:       return "MDA";        break;
00019    case kBDT:       return "BDT";        break;
00020    case kKNue:      return "KNue";       break;
00021    case kMCNN:      return "MCNN";       break;
00022    case kCC:        return "CC";         break;
00023    case kUnknown:   return "Unknown";    break;
00024    default:         return "?Unknown?";  break;
00025    }
00026 }

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

Definition at line 29 of file Selection.cxx.

Referenced by NueSystematic::DoShwDevCalc(), and NueModule::PassesBlindingCuts().

00030 {
00031   TString theString(chars);
00032   if(theString.Contains("None"))  return kNone;
00033   if(theString.Contains("DataQual")) return kDataQual;
00034   if(theString.Contains("Fid"))   return kFid;
00035   if(theString.Contains("Presel"))  return kPre;  
00036   if(theString.Contains("Cuts"))  return kCuts;
00037   if(theString.Contains("ANN6"))   return kANN6;
00038   if(theString.Contains("ANN30"))   return kANN30;
00039   if(theString.Contains("SSPID")) return kSSPID;
00040   if(theString.Contains("MDA"))   return kMDA;
00041   if(theString.Contains("BDT"))   return kBDT;
00042   if(theString.Contains("KNue"))  return kKNue;
00043   if(theString.Contains("MCNN"))  return kMCNN;
00044   if(theString.Contains("CC"))    return kCC;
00045 
00046   
00047   return kUnknown;
00048 }


Generated on Fri Mar 28 16:16:25 2008 for loon by  doxygen 1.3.9.1