ClusterType Namespace Reference

Typedefs

typedef enum
ClusterType::EClusterType 
ClusterType_t

Enumerations

enum  EClusterType {
  kEMLike = 0, kHadLike = 1, kXTalk = 2, kTrkLike = 3,
  kHalo = 4, kUnknown = 5
}

Functions

const char * AsString (ClusterType_t view)
ClusterType::ClusterType_t CharToEnum (Char_t c)

Typedef Documentation


Enumeration Type Documentation

Enumerator:
kEMLike 
kHadLike 
kXTalk 
kTrkLike 
kHalo 
kUnknown 

Definition at line 22 of file ClusterType.h.

00022                              {
00023       // cluster id
00024       kEMLike         = 0,
00025       kHadLike        = 1,
00026       kXTalk          = 2, 
00027       kTrkLike        = 3,
00028       kHalo           = 4,
00029       kUnknown        = 5
00030    } ClusterType_t;


Function Documentation

const char * ClusterType::AsString ( ClusterType_t  view  ) 

Definition at line 7 of file ClusterType.cxx.

References kEMLike, kHadLike, kHalo, kTrkLike, kUnknown, and kXTalk.

Referenced by MadScanDisplay::Display(), MadEvDisplay::Display(), and NueDisplayModule::FillClusterGraphs().

00007                                                      {
00008   switch (view) {
00009   case kUnknown:         return "?";           break;
00010   case kEMLike:          return "EM-like";     break;
00011   case kHadLike:         return "Had-like";    break;
00012   case kXTalk:           return "XTalk";       break;
00013   case kTrkLike:         return "Track-like";  break;
00014   case kHalo:            return "Halo";        break;
00015   default:               return "?";       break;
00016   }
00017   return "?";
00018 }

ClusterType::ClusterType_t ClusterType::CharToEnum ( Char_t  c  ) 

Definition at line 21 of file ClusterType.cxx.

References kEMLike, kHadLike, kHalo, kTrkLike, kUnknown, and kXTalk.

Referenced by UgliLoanPool::Config(), PlexPixelSpotToStripEnd::Fill(), PlexPinDiodeToLed::Fill(), PlexStripEndToLed::Fill(), PlexRawChannelReadoutType::Fill(), PlexRawChannelToPinDiode::Fill(), DbuRunSummary::Fill(), DbuDaqFileSummary::Fill(), PlexPixelToRawChannel::Fill(), and DbuSubRunSummary::Fill().

00022 {
00023   switch (c) {
00024 
00025   case 'E':  return ClusterType::kEMLike;
00026   case 'H':  return ClusterType::kHadLike;
00027   case 'X':  return ClusterType::kXTalk;
00028   case 'T':  return ClusterType::kTrkLike;
00029   case 'O':  return ClusterType::kHalo;
00030 
00031   default:   return ClusterType::kUnknown;
00032 
00033   }
00034 }


Generated on 18 Oct 2018 for loon by  doxygen 1.6.1