Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:58:18

0001 
0002 #ifndef CalibFormats_SiStripObjects_NumberOfDevices_H
0003 #define CalibFormats_SiStripObjects_NumberOfDevices_H
0004 
0005 #include <ostream>
0006 #include <sstream>
0007 #include <cstdint>
0008 
0009 /**
0010     @class NumberOfDevices
0011     @author R.Bainbridge
0012     @brief Simple container class for counting devices.
0013 */
0014 class NumberOfDevices {
0015 public:
0016   NumberOfDevices() { clear(); }
0017 
0018   void clear();
0019   void print(std::stringstream &) const;
0020 
0021 public:                                               // ----- Public member data -----
0022   uint32_t nFecCrates_, nFecSlots_, nFecRings_;       // FECs and rings
0023   uint32_t nCcuAddrs_, nCcuChans_, nApvs_, nDcuIds_;  // CCUs and modules
0024   uint32_t nApvPairs0_, nApvPairsX_;                  // Number of APVs per module (0,unknown)
0025   uint32_t nApvPairs1_, nApvPairs2_,
0026       nApvPairs3_;                           // Number of APVs per module (1->3)
0027   uint32_t nDetIds_, nApvPairs_;             // Geometry
0028   uint32_t nFedCrates_, nFedSlots_;          // FED
0029   uint32_t nFedIds_, nFedChans_;             // FED
0030   uint32_t nDcus_, nMuxes_, nPlls_, nLlds_;  // Ancilliary devices
0031 };
0032 
0033 /** Debug info for NumberOfDevices class. */
0034 std::ostream &operator<<(std::ostream &, const NumberOfDevices &);
0035 
0036 #endif  // CalibTracker_SiStripObjects_NumberOfDevices_H