Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 /****************************************************************************
0002  *
0003  * Author: F.Ferro ferro@ge.infn.it
0004  *
0005  ****************************************************************************/
0006 
0007 #ifndef CondFormats_PPSObjects_CTPPSPixelAnalysisMask
0008 #define CondFormats_PPSObjects_CTPPSPixelAnalysisMask
0009 
0010 #include <set>
0011 #include <map>
0012 
0013 #include "CondFormats/Serialization/interface/Serializable.h"
0014 #include "CondFormats/PPSObjects/interface/CTPPSPixelIndices.h"
0015 
0016 /**
0017  *\brief Contains data on masked channels of a ROC
0018  */
0019 class CTPPSPixelROCAnalysisMask {
0020 public:
0021   CTPPSPixelROCAnalysisMask() : fullMask(false) {}
0022 
0023   /// whether all channels of the ROC shall be masked
0024   bool fullMask;
0025 
0026   /// list of channels to be masked
0027   std::set<std::pair<unsigned char, unsigned char> > maskedPixels;
0028 
0029   COND_SERIALIZABLE;
0030 };
0031 
0032 /**
0033  *\brief Channel-mask mapping.
0034  **/
0035 class CTPPSPixelAnalysisMask {
0036 public:
0037   std::map<uint32_t, CTPPSPixelROCAnalysisMask> analysisMask;
0038 
0039   void insert(const uint32_t &sid, const CTPPSPixelROCAnalysisMask &am);
0040 
0041   COND_SERIALIZABLE;
0042 };
0043 
0044 #endif