46 std::vector<edm::ParameterSet> psbSetup = parSet.
getParameter<std::vector<
52 std::vector<unsigned int> enableRecLvdsInt;
54 std::vector<bool> enableRecLvds;
57 std::vector<unsigned int> enableRecSerLinkInt;
59 std::vector<bool> enableRecSerLink;
62 for (std::vector<edm::ParameterSet>::const_iterator itPSet =
63 psbSetup.begin(); itPSet != psbSetup.end(); ++itPSet) {
69 itPSet->getParameter<
bool> (
"Ch0SendLvds"));
71 itPSet->getParameter<
bool> (
"Ch1SendLvds"));
73 enableRecLvdsInt = itPSet->getParameter<std::vector<unsigned int> > (
76 for (std::vector<unsigned int>::const_iterator cIt =
77 enableRecLvdsInt.begin(); cIt != enableRecLvdsInt.end(); ++cIt) {
79 enableRecLvds.push_back(val);
83 enableRecLvds.clear();
86 = itPSet->getParameter<std::vector<unsigned int> > (
89 for (std::vector<unsigned int>::const_iterator cIt =
90 enableRecSerLinkInt.begin(); cIt != enableRecSerLinkInt.end(); ++cIt) {
92 enableRecSerLink.push_back(val);
96 enableRecSerLink.clear();
119 auto pL1GtPsbSetup = std::make_unique<L1GtPsbSetup>();
123 return pL1GtPsbSetup;
T getParameter(std::string const &) const
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
~L1GtPsbSetupTrivialProducer() override
destructor
void setGtPsbEnableRecLvds(const std::vector< bool > &)
void setGtPsbCh0SendLvds(const bool &)
static const int PsbSerLinkNumberChannels
number of channels per board
std::unique_ptr< L1GtPsbSetup > producePsbSetup(const L1GtPsbSetupRcd &)
public methods
static const int PsbNumberLvdsGroups
number of LVDS groups per board
void setGtPsbEnableRecSerLink(const std::vector< bool > &)
L1GtPsbSetupTrivialProducer(const edm::ParameterSet &)
constructor
std::vector< L1GtPsbConfig > m_gtPsbSetup
L1 GT PSB boards and their setup.
void setGtPsbCh1SendLvds(const bool &)