Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:51:18

0001 #ifndef CondFormats_L1TObjects_L1RPCHsbConfig_h
0002 #define CondFormats_L1TObjects_L1RPCHsbConfig_h
0003 // -*- C++ -*-
0004 //
0005 // Package:     RPCObjects
0006 // Class  :     L1RPCHsbConfig
0007 //
0008 /**\class L1RPCHsbConfig L1RPCHsbConfig.h CondFormats/L1TObjects/interface/L1RPCHsbConfig.h
0009 
0010  Description: Contains configuration of HSB inputs
0011 
0012  Usage:
0013     <usage>
0014 
0015 */
0016 
0017 // forward declarations
0018 #include "CondFormats/Serialization/interface/Serializable.h"
0019 
0020 #include <set>
0021 #include <vector>
0022 #include <sstream>
0023 
0024 #include <iostream>
0025 
0026 class L1RPCHsbConfig {
0027 public:
0028   L1RPCHsbConfig();
0029   virtual ~L1RPCHsbConfig();
0030 
0031   void setHsbMask(int hsb, const std::vector<int>& mask);
0032   int getHsbMask(int hsb, int input) const;
0033   int getMaskSize() const { return sizeof(m_hsb0) / sizeof(m_hsb0[0]); };
0034 
0035 private:
0036   int m_hsb0[8];
0037   int m_hsb1[8];
0038 
0039   COND_SERIALIZABLE;
0040 };
0041 
0042 #endif