L1TMuonOverlapFwVersion

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
#ifndef L1TMuonOverlapFwVersion_h
#define L1TMuonOverlapFwVersion_h

#include <memory>
#include <iostream>
#include <vector>
#include <cmath>

#include "CondFormats/Serialization/interface/Serializable.h"
#include "CondFormats/L1TObjects/interface/LUT.h"

///////////////////////////////////////
///////////////////////////////////////
class L1TMuonOverlapFwVersion {
public:
  L1TMuonOverlapFwVersion() {
    algorithmVer_ = 0x110;
    layersVer_ = 0x6;
    patternsVer_ = 0x3;
    synthDate_ = "2018-9-18 21:26:2";
  }
  L1TMuonOverlapFwVersion(unsigned algoV, unsigned layersV, unsigned patternsV, std::string sDate) {
    algorithmVer_ = algoV;
    layersVer_ = layersV;
    patternsVer_ = patternsV;
    synthDate_ = sDate;
  }
  ~L1TMuonOverlapFwVersion() {}

  unsigned algoVersion() const { return algorithmVer_; }
  unsigned layersVersion() const { return layersVer_; }
  unsigned fwVersion() const { return layersVer_; }
  unsigned patternsVersion() const { return patternsVer_; }
  std::string synthDate() const { return synthDate_; }
  void setAlgoVersion(unsigned algoV) { algorithmVer_ = algoV; }
  void setLayersVersion(unsigned layersV) { layersVer_ = layersV; }
  void setFwVersion(unsigned layersV) { layersVer_ = layersV; }
  void setPatternsVersion(unsigned patternsV) { patternsVer_ = patternsV; }
  void setSynthDate(std::string sDate) { synthDate_ = sDate; }

  ///Firmware configuration parameters
  unsigned algorithmVer_;
  unsigned layersVer_;
  unsigned patternsVer_;
  std::string synthDate_;

  COND_SERIALIZABLE;
};
#endif