CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/DataFormats/SiStripCommon/interface/ConstantsForGranularity.h

Go to the documentation of this file.
00001 // Last commit: $Id: ConstantsForGranularity.h,v 1.5 2009/02/10 21:45:54 lowette Exp $
00002 
00003 #ifndef DataFormats_SiStripCommon_ConstantsForGranularity_H
00004 #define DataFormats_SiStripCommon_ConstantsForGranularity_H
00005 
00006 #include "DataFormats/SiStripCommon/interface/Constants.h"
00007 #include <string>
00008 
00015 namespace sistrip { 
00016   
00017   // ---------- Constants ---------- 
00018   
00019   // misc granularity
00020   static const char unknownGranularity_[]   = "UnknownGranularity";
00021   static const char undefinedGranularity_[] = "UndefinedGranularity";
00022   
00023   // system granularity
00024   static const char tracker_[]   = "Tracker";
00025   static const char partition_[] = "Partition";
00026   static const char tib_[]       = "Tib";
00027   static const char tob_[]       = "Tob";
00028   static const char tec_[]       = "Tec";
00029 
00030   // sub-structure granularity
00031   static const char layer_[]  = "Layer";
00032   static const char rod_[]    = "Rod";
00033   static const char string_[] = "String";
00034   static const char disk_[]   = "Disk";
00035   static const char petal_[]  = "Petal";
00036   static const char ring_[]   = "Ring";
00037 
00038   // module granularity  
00039   static const char module_[]  = "Module";
00040   static const char lldChan_[] = "LldChannel";
00041   static const char apv_[]     = "Apv";
00042 
00043   // readout granularity
00044   static const char fedSystem_[]  = "FedSystem";
00045   static const char feDriver_[]   = "FrontEndDriver";
00046   static const char feUnit_[]     = "FrontEndUnit";
00047   static const char feChan_[]     = "FrontEndChannel";
00048   static const char fedApv_[]     = "FedApv";
00049   static const char fedChannel_[] = "FedChannel";
00050 
00051   // control granularity
00052   static const char fecSystem_[] = "FecSystem";
00053   static const char fecCrate_[]  = "FecCrate";
00054   static const char fecSlot_[]   = "FecSlot";
00055   static const char fecRing_[]   = "FecRing";
00056   static const char ccuAddr_[]   = "CcuAddr";
00057   static const char ccuChan_[]   = "CcuChan";
00058  
00059   // ---------- Enumerated type ---------- 
00060 
00061   enum Granularity { UNDEFINED_GRAN = sistrip::invalid_, 
00062                      UNKNOWN_GRAN   = sistrip::unknown_, 
00063                      
00064                      TRACKER   = 1, 
00065                      PARTITION = 2, 
00066                      TIB       = 3, 
00067                      TOB       = 4, 
00068                      TEC       = 5,
00069     
00070                      LAYER  =  6, 
00071                      ROD    =  7, 
00072                      STRING =  8, 
00073                      DISK   =  9, 
00074                      PETAL  = 10, 
00075                      RING   = 11,
00076 
00077                      MODULE   = 12, 
00078                      LLD_CHAN = 13, 
00079                      APV      = 14,
00080 
00081                      FED_SYSTEM  = 15, 
00082                      FE_DRIVER   = 16, 
00083                      FE_UNIT     = 17, 
00084                      FE_CHAN     = 18,
00085                      FED_APV     = 19,
00086                      FED_CHANNEL = 20,
00087 
00088                      FEC_SYSTEM = 21,
00089                      FEC_CRATE  = 22,
00090                      FEC_SLOT   = 23,
00091                      FEC_RING   = 24,
00092                      CCU_ADDR   = 25,
00093                      CCU_CHAN   = 26
00094 
00095   };
00096 
00097 }
00098   
00099 #endif // DataFormats_SiStripCommon_ConstantsForGranularity_H
00100 
00101