PlaneView Namespace Reference

Typedefs

typedef enum PlaneView::EPlaneView PlaneView_t

Enumerations

enum  EPlaneView {
  kX = 0, kY = 1, kU = 2, kV = 3,
  kA = 4, kB = 5, kUnknown = 7, kVSTopFlat = 8,
  kVSTopEastSlant = 9, kVSTopWestSlant = 10, kVSWallOnEdge = 11, kVSWallEastSlant = 12,
  kVSWallWestSlant = 13, kVSUnknown = 15
}

Functions

const Char_t * AsString (PlaneView_t view)
PlaneView::PlaneView_t CharToEnum (Char_t c)

Typedef Documentation


Enumeration Type Documentation

Enumerator:
kX 
kY 
kU 
kV 
kA 
kB 
kUnknown 
kVSTopFlat 
kVSTopEastSlant 
kVSTopWestSlant 
kVSWallOnEdge 
kVSWallEastSlant 
kVSWallWestSlant 
kVSUnknown 

Definition at line 24 of file PlaneView.h.

00024                            {
00025       // standard orientations
00026       kX               = 0,
00027       kY               = 1, 
00028       kU               = 2,
00029       kV               = 3,
00030       // special CalDet orientations for planes on floor
00031       kA               = 4,  // strips run perp to beam
00032       kB               = 5,  // strips run in beam direction
00033       // flag bad values
00034       kUnknown         = 7,
00035       // VetoShield orientations
00036       // in PlexPlaneId these get truncated in the bit field
00037       // but restored in GetPlaneView()
00038       kVSTopFlat       = 8,
00039       kVSTopEastSlant  = 9,
00040       kVSTopWestSlant  = 10,
00041       kVSWallOnEdge    = 11,
00042       kVSWallEastSlant = 12,
00043       kVSWallWestSlant = 13,
00044       kVSUnknown       = 15
00045    } PlaneView_t;


Function Documentation

const char * PlaneView::AsString ( PlaneView_t  view  ) 

Definition at line 8 of file PlaneView.cxx.

References kA, kB, kU, kUnknown, kV, kVSTopEastSlant, kVSTopFlat, kVSTopWestSlant, kVSUnknown, kVSWallEastSlant, kVSWallOnEdge, kVSWallWestSlant, kX, and kY.

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

00009 {
00010   switch (view) {
00011   case kUnknown:         return "?";       break;
00012   case kX:               return "X";       break;
00013   case kY:               return "Y";       break;
00014   case kU:               return "U";       break;
00015   case kV:               return "V";       break;
00016   case kA:               return "A";       break;
00017   case kB:               return "B";       break;
00018   case kVSTopFlat:       return "-";       break;
00019   case kVSTopEastSlant:  return "\\";      break;
00020   case kVSTopWestSlant:  return "/";       break;
00021   case kVSWallOnEdge:    return "|";       break;
00022   case kVSWallEastSlant: return "e";       break;
00023   case kVSWallWestSlant: return "w";       break;
00024   case kVSUnknown:       return "%";       break;
00025   default:               return "?";       break;
00026   }
00027 }

PlaneView::PlaneView_t PlaneView::CharToEnum ( Char_t  c  ) 

Definition at line 31 of file PlaneView.cxx.

References kA, kB, kU, kUnknown, kV, kVSTopEastSlant, kVSTopFlat, kVSTopWestSlant, kVSUnknown, kVSWallEastSlant, kVSWallOnEdge, kVSWallWestSlant, kX, and kY.

Referenced by PlexVetoShieldMuxToMdl::Fill().

00032 {
00033   switch (c) {
00034 
00035   case 'X':  return PlaneView::kX;
00036   case 'Y':  return PlaneView::kY;
00037   case 'U':  return PlaneView::kU;
00038   case 'V':  return PlaneView::kV;
00039   case 'A':  return PlaneView::kA;
00040   case 'B':  return PlaneView::kB;
00041 
00042   case '-':  return PlaneView::kVSTopFlat;
00043   case 'E':  return PlaneView::kVSTopEastSlant;
00044   case '\\': return PlaneView::kVSTopEastSlant;
00045   case 'W':  return PlaneView::kVSTopWestSlant;
00046   case '/':  return PlaneView::kVSTopWestSlant;
00047   case '|':  return PlaneView::kVSWallOnEdge;
00048   case 'e':  return PlaneView::kVSWallEastSlant;
00049   case 'w':  return PlaneView::kVSWallWestSlant;
00050 
00051   case '%':  return PlaneView::kVSUnknown;
00052   default:   return PlaneView::kUnknown;
00053 
00054   }
00055 }


Generated on 14 Dec 2017 for loon by  doxygen 1.6.1