Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef L1TMuonOverlapFwVersion_h
0002 #define L1TMuonOverlapFwVersion_h
0003 
0004 #include <memory>
0005 #include <iostream>
0006 #include <vector>
0007 #include <cmath>
0008 
0009 #include "CondFormats/Serialization/interface/Serializable.h"
0010 #include "CondFormats/L1TObjects/interface/LUT.h"
0011 
0012 ///////////////////////////////////////
0013 ///////////////////////////////////////
0014 class L1TMuonOverlapFwVersion {
0015 public:
0016   L1TMuonOverlapFwVersion() {
0017     algorithmVer_ = 0x110;
0018     layersVer_ = 0x6;
0019     patternsVer_ = 0x3;
0020     synthDate_ = "2018-9-18 21:26:2";
0021   }
0022   L1TMuonOverlapFwVersion(unsigned algoV, unsigned layersV, unsigned patternsV, std::string sDate) {
0023     algorithmVer_ = algoV;
0024     layersVer_ = layersV;
0025     patternsVer_ = patternsV;
0026     synthDate_ = sDate;
0027   }
0028   ~L1TMuonOverlapFwVersion() {}
0029 
0030   unsigned algoVersion() const { return algorithmVer_; }
0031   unsigned layersVersion() const { return layersVer_; }
0032   unsigned fwVersion() const { return layersVer_; }
0033   unsigned patternsVersion() const { return patternsVer_; }
0034   std::string synthDate() const { return synthDate_; }
0035   void setAlgoVersion(unsigned algoV) { algorithmVer_ = algoV; }
0036   void setLayersVersion(unsigned layersV) { layersVer_ = layersV; }
0037   void setFwVersion(unsigned layersV) { layersVer_ = layersV; }
0038   void setPatternsVersion(unsigned patternsV) { patternsVer_ = patternsV; }
0039   void setSynthDate(std::string sDate) { synthDate_ = sDate; }
0040 
0041   ///Firmware configuration parameters
0042   unsigned algorithmVer_;
0043   unsigned layersVer_;
0044   unsigned patternsVer_;
0045   std::string synthDate_;
0046 
0047   COND_SERIALIZABLE;
0048 };
0049 #endif