PlaneCoverage Namespace Reference

Typedefs

typedef enum
PlaneCoverage::EPlaneCoverage 
PlaneCoverage_t

Enumerations

enum  EPlaneCoverage {
  kUnknown = -1, kNoActive = 0, kUninstrumented = kNoActive, kNearPartial = 1,
  kNearFull = 2, kComplete = 3, kTotal = 3, kVScN = 4,
  kVSCN = 5, kVSeS = 6, kVSES = 7, kVScS = 8,
  kVSCS = 9, kVSeN = 10, kVSEN = 11
}

Functions

const Char_t * AsString (PlaneCoverage_t view)
PlaneCoverage::PlaneCoverage_t StringToEnum (const Char_t *chars)

Typedef Documentation


Enumeration Type Documentation

Enumerator:
kUnknown 
kNoActive 
kUninstrumented 
kNearPartial 
kNearFull 
kComplete 
kTotal 
kVScN 
kVSCN 
kVSeS 
kVSES 
kVScS 
kVSCS 
kVSeN 
kVSEN 

Definition at line 24 of file PlaneCoverage.h.

00024                                {
00025       kUnknown        = -1,
00026       kNoActive       =  0,
00027       kUninstrumented =  kNoActive,
00028       kNearPartial    =  1, 
00029       kNearFull       =  2,
00030       kComplete       =  3,
00031       kTotal          =  3,
00032       // VetoShield coverages
00033       // in PlexPlaneId these get truncated in the bit field
00034       // but restored in GetPlaneCoverage()
00035       // "c" "e" has logical strip # opposite of mapper strip #
00036       // "C" "E"       "       "     same          "      "
00037       // N means F1 on North side, S means F1 on South side
00038       kVScN           =  4,
00039       kVSCN           =  5,
00040       kVSeS           =  6,
00041       kVSES           =  7,
00042       kVScS           =  8,
00043       kVSCS           =  9,
00044       kVSeN           = 10,
00045       kVSEN           = 11 
00046    } PlaneCoverage_t;


Function Documentation

const char * PlaneCoverage::AsString ( PlaneCoverage_t  view  ) 

Definition at line 8 of file PlaneCoverage.cxx.

References kNearFull, kNearPartial, kNoActive, kTotal, kVScN, kVSCN, kVSCS, kVScS, kVSeN, kVSEN, kVSeS, and kVSES.

Referenced by PlexStripEndId::AsString(), PlexScintMdlId::AsString(), UgliScintPlnNode::BuildStrips(), getModulesInPlnInfo(), TridModelStrip::Print(), and PlexSEIdAltL::Print().

00008                                                          {
00009   switch (view) {
00010   case kNoActive:      return "0active";   break;
00011   case kNearPartial:   return "partial";   break;
00012   case kNearFull:      return "full";      break;
00013   case kTotal:         return "total";     break;
00014   case kVScN:          return "cN";        break;        
00015   case kVSCN:          return "CN";        break;        
00016   case kVSeS:          return "eS";        break;        
00017   case kVSES:          return "ES";        break;        
00018   case kVScS:          return "cS";        break;        
00019   case kVSCS:          return "CS";        break;        
00020   case kVSeN:          return "eN";        break;        
00021   case kVSEN:          return "EN";        break;        
00022   default:             return "?unknown";  break;
00023   }
00024 }

PlaneCoverage::PlaneCoverage_t PlaneCoverage::StringToEnum ( const Char_t *  chars  ) 

Definition at line 28 of file PlaneCoverage.cxx.

References kNearFull, kNearPartial, kNoActive, kTotal, kUnknown, kVScN, kVSCN, kVSCS, kVScS, kVSeN, kVSEN, kVSeS, and kVSES.

Referenced by PlexVetoShieldMuxToMdl::Fill().

00029 {
00030 
00031   Char_t c0 = chars[0];
00032   switch (c0) {
00033   case '0': 
00034     return PlaneCoverage::kNoActive;
00035     break;
00036   case 'p':
00037   case 'P':
00038     return PlaneCoverage::kNearPartial;
00039     break;
00040   case 'f':
00041   case 'F':
00042     return PlaneCoverage::kNearFull;
00043     break;
00044   case 't':
00045   case 'T':
00046     return PlaneCoverage::kTotal;
00047     break;
00048   default:
00049     {
00050       // try harder ... veto shield takes two chars to decode
00051       // 
00052       Char_t coverc  = chars[0];
00053       Char_t f1sidec = chars[1];
00054       
00055       switch (f1sidec) {
00056       case 'N': {
00057         switch (coverc) {
00058         case 'c': return PlaneCoverage::kVScN;
00059         case 'C': return PlaneCoverage::kVSCN;
00060         case 'e': return PlaneCoverage::kVSeN;
00061         case 'E': return PlaneCoverage::kVSEN;
00062         default:  return PlaneCoverage::kUnknown;
00063         }
00064         break;
00065       } // ?N
00066       case 'S': {
00067         switch (coverc) {
00068         case 'c': return PlaneCoverage::kVScS;
00069         case 'C': return PlaneCoverage::kVSCS;
00070         case 'e': return PlaneCoverage::kVSeS;
00071         case 'E': return PlaneCoverage::kVSES;
00072         default:  return PlaneCoverage::kUnknown;
00073         }
00074         break;
00075       } // ?S 
00076       default:
00077         return PlaneCoverage::kUnknown;
00078         break;
00079       } // f1sidec 
00080 
00081       // nothing looks right
00082       return PlaneCoverage::kUnknown;
00083       break;
00084     }  // default case
00085   }
00086 }


Generated on 15 Jul 2018 for loon by  doxygen 1.6.1