Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:05:13

0001 
0002 #ifndef DataFormats_SiStripCommon_ConstantsForGranularity_H
0003 #define DataFormats_SiStripCommon_ConstantsForGranularity_H
0004 
0005 #include "DataFormats/SiStripCommon/interface/Constants.h"
0006 #include <string>
0007 
0008 /** 
0009     @file ConstantsForGranularity.h
0010 
0011     @brief Constants and enumerated type for sistrip::Granularity
0012 */
0013 
0014 namespace sistrip {
0015 
0016   // ---------- Constants ----------
0017 
0018   // misc granularity
0019   static const char unknownGranularity_[] = "UnknownGranularity";
0020   static const char undefinedGranularity_[] = "UndefinedGranularity";
0021 
0022   // system granularity
0023   static const char tracker_[] = "Tracker";
0024   static const char partition_[] = "Partition";
0025   static const char tib_[] = "Tib";
0026   static const char tob_[] = "Tob";
0027   static const char tec_[] = "Tec";
0028 
0029   // sub-structure granularity
0030   static const char layer_[] = "Layer";
0031   static const char rod_[] = "Rod";
0032   static const char string_[] = "String";
0033   static const char disk_[] = "Disk";
0034   static const char petal_[] = "Petal";
0035   static const char ring_[] = "Ring";
0036 
0037   // module granularity
0038   static const char module_[] = "Module";
0039   static const char lldChan_[] = "LldChannel";
0040   static const char apv_[] = "Apv";
0041 
0042   // readout granularity
0043   static const char fedSystem_[] = "FedSystem";
0044   static const char feDriver_[] = "FrontEndDriver";
0045   static const char feUnit_[] = "FrontEndUnit";
0046   static const char feChan_[] = "FrontEndChannel";
0047   static const char fedApv_[] = "FedApv";
0048   static const char fedChannel_[] = "FedChannel";
0049 
0050   // control granularity
0051   static const char fecSystem_[] = "FecSystem";
0052   static const char fecCrate_[] = "FecCrate";
0053   static const char fecSlot_[] = "FecSlot";
0054   static const char fecRing_[] = "FecRing";
0055   static const char ccuAddr_[] = "CcuAddr";
0056   static const char ccuChan_[] = "CcuChan";
0057 
0058   // ---------- Enumerated type ----------
0059 
0060   enum Granularity {
0061     UNDEFINED_GRAN = sistrip::invalid_,
0062     UNKNOWN_GRAN = sistrip::unknown_,
0063 
0064     TRACKER = 1,
0065     PARTITION = 2,
0066     TIB = 3,
0067     TOB = 4,
0068     TEC = 5,
0069 
0070     LAYER = 6,
0071     ROD = 7,
0072     STRING = 8,
0073     DISK = 9,
0074     PETAL = 10,
0075     RING = 11,
0076 
0077     MODULE = 12,
0078     LLD_CHAN = 13,
0079     APV = 14,
0080 
0081     FED_SYSTEM = 15,
0082     FE_DRIVER = 16,
0083     FE_UNIT = 17,
0084     FE_CHAN = 18,
0085     FED_APV = 19,
0086     FED_CHANNEL = 20,
0087 
0088     FEC_SYSTEM = 21,
0089     FEC_CRATE = 22,
0090     FEC_SLOT = 23,
0091     FEC_RING = 24,
0092     CCU_ADDR = 25,
0093     CCU_CHAN = 26
0094 
0095   };
0096 
0097 }  // namespace sistrip
0098 
0099 #endif  // DataFormats_SiStripCommon_ConstantsForGranularity_H