Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef CondFormats_TrackerObjects_SiPixelPedestals_h
0002 #define CondFormats_TrackerObjects_SiPixelPedestals_h
0003 
0004 //----------------------------------------------------------------------------
0005 //! \class SiPixelPedestals
0006 //! \brief Event Setup object which holds DB information for all pixels.
0007 //!
0008 //! \description Event Setup object which holds DB information for all pixels.
0009 //! DB info for a single pixel is held in SiPixelDbItem, which is a bit-packed
0010 //! 32-bit word.
0011 //-----------------------------------------------------------------------------
0012 
0013 #include "CondFormats/Serialization/interface/Serializable.h"
0014 
0015 #include "CondFormats/SiPixelObjects/interface/SiPixelDbItem.h"
0016 
0017 #include <vector>
0018 #include <map>
0019 
0020 class SiPixelPedestals {
0021 public:
0022   //! Constructor, destructor
0023   SiPixelPedestals();
0024   ~SiPixelPedestals();
0025 
0026   typedef std::vector<SiPixelDbItem> SiPixelPedestalsVector;
0027   typedef std::vector<SiPixelDbItem>::const_iterator SiPixelPedestalsVectorIterator;
0028   //  SiPixelPedestalsVector  v_pedestals;
0029 
0030   typedef std::map<unsigned int, SiPixelPedestalsVector> SiPixelPedestalsMap;
0031   typedef std::map<unsigned int, SiPixelPedestalsVector>::const_iterator SiPixelPedestalsMapIterator;
0032 
0033   // TO DO: shouldn't the map be private???
0034 
0035   std::map<int, SiPixelPedestalsVector> m_pedestals;
0036 
0037   COND_SERIALIZABLE;
0038 };
0039 #endif