File indexing completed on 2024-04-06 12:22:17
0001 #ifndef L1GtConfigProducers_L1GtParametersTrivialProducer_h
0002 #define L1GtConfigProducers_L1GtParametersTrivialProducer_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019 #include <memory>
0020 #include <vector>
0021
0022
0023
0024 #include "FWCore/Framework/interface/ESProducer.h"
0025
0026 #include "FWCore/Framework/interface/ModuleFactory.h"
0027
0028 #include "CondFormats/L1TObjects/interface/L1GtParameters.h"
0029 #include "CondFormats/DataRecord/interface/L1GtParametersRcd.h"
0030 #include <cstdint>
0031
0032
0033
0034
0035 class L1GtParametersTrivialProducer : public edm::ESProducer {
0036 public:
0037
0038 L1GtParametersTrivialProducer(const edm::ParameterSet&);
0039
0040
0041 ~L1GtParametersTrivialProducer() override;
0042
0043
0044
0045
0046 std::unique_ptr<L1GtParameters> produceGtParameters(const L1GtParametersRcd&);
0047
0048 private:
0049
0050 int m_totalBxInEvent;
0051
0052
0053 uint16_t m_daqActiveBoards;
0054
0055
0056 uint16_t m_evmActiveBoards;
0057
0058
0059 std::vector<int> m_daqNrBxBoard;
0060
0061
0062 std::vector<int> m_evmNrBxBoard;
0063
0064
0065 unsigned int m_bstLengthBytes;
0066 };
0067
0068 #endif