22 #include "boost/shared_ptr.hpp"
49 std::vector<edm::ParameterSet> psbSetup = parSet.
getParameter<std::vector<
55 std::vector<unsigned int> enableRecLvdsInt;
57 std::vector<bool> enableRecLvds;
60 std::vector<unsigned int> enableRecSerLinkInt;
62 std::vector<bool> enableRecSerLink;
65 for (std::vector<edm::ParameterSet>::const_iterator itPSet =
66 psbSetup.begin(); itPSet != psbSetup.end(); ++itPSet) {
72 itPSet->getParameter<
bool> (
"Ch0SendLvds"));
74 itPSet->getParameter<
bool> (
"Ch1SendLvds"));
76 enableRecLvdsInt = itPSet->getParameter<std::vector<unsigned int> > (
79 for (std::vector<unsigned int>::const_iterator cIt =
80 enableRecLvdsInt.begin(); cIt != enableRecLvdsInt.end(); ++cIt) {
82 enableRecLvds.push_back(val);
86 enableRecLvds.clear();
89 = itPSet->getParameter<std::vector<unsigned int> > (
92 for (std::vector<unsigned int>::const_iterator cIt =
93 enableRecSerLinkInt.begin(); cIt != enableRecSerLinkInt.end(); ++cIt) {
95 enableRecSerLink.push_back(val);
99 enableRecSerLink.clear();
123 using namespace edm::es;
125 boost::shared_ptr<L1GtPsbSetup> pL1GtPsbSetup = boost::shared_ptr<
130 return pL1GtPsbSetup;
T getParameter(std::string const &) const
void setGtPsbEnableRecLvds(const std::vector< bool > &)
void setGtPsbCh0SendLvds(const bool &)
static const int PsbSerLinkNumberChannels
number of channels per board
void setGtPsbSetup(const std::vector< L1GtPsbConfig > &)
static const int PsbNumberLvdsGroups
number of LVDS groups per board
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
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 &)
~L1GtPsbSetupTrivialProducer()
destructor
boost::shared_ptr< L1GtPsbSetup > producePsbSetup(const L1GtPsbSetupRcd &)
public methods