Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:02:27

0001 /****************************************************************************
0002  *
0003  * 
0004  * Authors: 
0005  *   F.Ferro ferro@ge.infn.it
0006  *
0007  ****************************************************************************/
0008 
0009 #ifndef CondFormats_PPSObjects_CTPPSPixelDAQMapping
0010 #define CondFormats_PPSObjects_CTPPSPixelDAQMapping
0011 
0012 #include "CondFormats/Serialization/interface/Serializable.h"
0013 #include "CondFormats/PPSObjects/interface/CTPPSPixelFramePosition.h"
0014 #include "CondFormats/PPSObjects/interface/CTPPSPixelIndices.h"
0015 
0016 #include <map>
0017 #include <set>
0018 
0019 //----------------------------------------------------------------------------------------------------
0020 
0021 /**
0022  *\brief Contains mappind data related to a ROC.
0023  */
0024 class CTPPSPixelROCInfo {
0025 public:
0026   /// the symbolic id
0027   uint32_t iD;
0028 
0029   unsigned int roc;
0030 
0031   friend std::ostream &operator<<(std::ostream &s, const CTPPSPixelROCInfo &fp);
0032 
0033   COND_SERIALIZABLE;
0034 };
0035 
0036 //----------------------------------------------------------------------------------------------------
0037 
0038 /**
0039  *\brief The mapping between FramePosition and ROCInfo.
0040  */
0041 class CTPPSPixelDAQMapping {
0042 public:
0043   std::map<CTPPSPixelFramePosition, CTPPSPixelROCInfo> ROCMapping;
0044 
0045   void insert(const CTPPSPixelFramePosition &fp, const CTPPSPixelROCInfo &vi);
0046 
0047   std::set<unsigned int> fedIds() const;
0048 
0049   COND_SERIALIZABLE;
0050 };
0051 
0052 #endif