Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-08-08 03:11:25

0001 #ifndef FEDRawData_FEDNumbering_h
0002 #define FEDRawData_FEDNumbering_h
0003 
0004 /** \class FEDNumbering
0005  *
0006  *  This class holds the fed numbering scheme for the CMS geometry.
0007  *  No two feds should have the same id. Each subdetector has a reserved range.
0008  *  Gaps between ranges give flexibility to the numbering.
0009  *
0010  *  $Log
0011  *
0012  *  \author G. Bruno - CERN, EP Division
0013  */
0014 
0015 #include <array>
0016 
0017 class FEDNumbering {
0018 public:
0019   static constexpr int lastFEDId() { return MAXFEDID; }
0020 
0021   static bool inRange(int);
0022   static bool inRangeNoGT(int);
0023 
0024   enum {
0025     NOT_A_FEDID = -1,
0026     MAXFEDID = 4096,  // must be larger than largest used FED id
0027     MINSiPixelFEDID = 0,
0028     MAXSiPixelFEDID = 40,  // increase from 39 for the pilot blade fed
0029     MINSiStripFEDID = 50,
0030     MAXSiStripFEDID = 489,
0031     MINPreShowerFEDID = 520,
0032     MAXPreShowerFEDID = 575,
0033     MINTotemT2FEDID = 577,
0034     MAXTotemT2FEDID = 577,
0035     MINTotemRPHorizontalFEDID = 578,
0036     MAXTotemRPHorizontalFEDID = 581,
0037     MINCTPPSDiamondFEDID = 582,
0038     MAXCTPPSDiamondFEDID = 583,
0039     MINTotemRPVerticalFEDID = 584,
0040     MAXTotemRPVerticalFEDID = 585,
0041     MINTotemRPTimingVerticalFEDID = 586,
0042     MAXTotemRPTimingVerticalFEDID = 587,
0043     MINECALFEDID = 600,
0044     MAXECALFEDID = 670,
0045     MINCASTORFEDID = 690,
0046     MAXCASTORFEDID = 693,
0047     MINHCALFEDID = 700,
0048     MAXHCALFEDID = 731,
0049     MINLUMISCALERSFEDID = 735,
0050     MAXLUMISCALERSFEDID = 735,
0051     MINCSCFEDID = 750,
0052     MAXCSCFEDID = 757,
0053     MINCSCTFFEDID = 760,
0054     MAXCSCTFFEDID = 760,
0055     MINDTFEDID = 770,
0056     MAXDTFEDID = 779,
0057     MINDTTFFEDID = 780,
0058     MAXDTTFFEDID = 780,
0059     MINRPCFEDID = 790,
0060     MAXRPCFEDID = 795,
0061     MINTriggerGTPFEDID = 812,
0062     MAXTriggerGTPFEDID = 813,
0063     MINTriggerEGTPFEDID = 814,
0064     MAXTriggerEGTPFEDID = 814,
0065     MINTriggerGCTFEDID = 745,
0066     MAXTriggerGCTFEDID = 749,
0067     MINTriggerLTCFEDID = 816,
0068     MAXTriggerLTCFEDID = 824,
0069     MINTriggerLTCmtccFEDID = 815,
0070     MAXTriggerLTCmtccFEDID = 815,
0071     MINTriggerLTCTriggerFEDID = 816,
0072     MAXTriggerLTCTriggerFEDID = 816,
0073     MINTriggerLTCHCALFEDID = 817,
0074     MAXTriggerLTCHCALFEDID = 817,
0075     MINTriggerLTCSiStripFEDID = 818,
0076     MAXTriggerLTCSiStripFEDID = 818,
0077     MINTriggerLTCECALFEDID = 819,
0078     MAXTriggerLTCECALFEDID = 819,
0079     MINTriggerLTCTotemCastorFEDID = 820,
0080     MAXTriggerLTCTotemCastorFEDID = 820,
0081     MINTriggerLTCRPCFEDID = 821,
0082     MAXTriggerLTCRPCFEDID = 821,
0083     MINTriggerLTCCSCFEDID = 822,
0084     MAXTriggerLTCCSCFEDID = 822,
0085     MINTriggerLTCDTFEDID = 823,
0086     MAXTriggerLTCDTFEDID = 823,
0087     MINTriggerLTCSiPixelFEDID = 824,
0088     MAXTriggerLTCSiPixelFEDID = 824,
0089     MINCSCDDUFEDID = 830,
0090     MAXCSCDDUFEDID = 869,
0091     MINCSCContingencyFEDID = 880,
0092     MAXCSCContingencyFEDID = 887,
0093     MINCSCTFSPFEDID = 890,
0094     MAXCSCTFSPFEDID = 901,
0095     MINDAQeFEDFEDID = 902,
0096     MAXDAQeFEDFEDID = 931,
0097     MINMetaDataSoftFEDID = 1022,
0098     MAXMetaDataSoftFEDID = 1022,
0099     MINDAQmFEDFEDID = 1023,
0100     MAXDAQmFEDFEDID = 1023,
0101     MINTCDSuTCAFEDID = 1024,
0102     MAXTCDSuTCAFEDID = 1099,
0103     MINHCALuTCAFEDID = 1100,
0104     MAXHCALuTCAFEDID = 1199,
0105     MINSiPixeluTCAFEDID = 1200,
0106     MAXSiPixeluTCAFEDID = 1349,
0107     MINRCTFEDID = 1350,
0108     MAXRCTFEDID = 1359,
0109     MINCalTrigUp = 1360,
0110     MAXCalTrigUp = 1367,
0111     MINDTUROSFEDID = 1369,
0112     MAXDTUROSFEDID = 1371,
0113     MINTriggerUpgradeFEDID = 1372,
0114     MAXTriggerUpgradeFEDID = 1409,
0115     MINSiPixel2nduTCAFEDID = 1500,
0116     MAXSiPixel2nduTCAFEDID = 1649,
0117     MINSiPixelTestFEDID = 1450,
0118     MAXSiPixelTestFEDID = 1461,
0119     MINSiPixelAMC13FEDID = 1410,
0120     MAXSiPixelAMC13FEDID = 1449,
0121     MINCTPPSPixelsFEDID = 1462,
0122     MAXCTPPSPixelsFEDID = 1466,
0123     MINGEMFEDID = 1467,
0124     MINGE0FEDID = 1473,
0125     MINGE21FEDID = 1469,
0126     MAXGEMFEDID = 1478,
0127     MINDAQvFEDFEDID = 2815,
0128     MAXDAQvFEDFEDID = 4095
0129   };
0130 };
0131 
0132 #endif  // FEDNumbering_H