20 #include "boost/shared_ptr.hpp"
47 std::vector<edm::ParameterSet> psbSetup = parSet.
getParameter<std::vector<
53 std::vector<unsigned int> enableRecLvdsInt;
55 std::vector<bool> enableRecLvds;
58 std::vector<unsigned int> enableRecSerLinkInt;
60 std::vector<bool> enableRecSerLink;
63 for (std::vector<edm::ParameterSet>::const_iterator itPSet =
64 psbSetup.begin(); itPSet != psbSetup.end(); ++itPSet) {
70 itPSet->getParameter<
bool> (
"Ch0SendLvds"));
72 itPSet->getParameter<
bool> (
"Ch1SendLvds"));
74 enableRecLvdsInt = itPSet->getParameter<std::vector<unsigned int> > (
77 for (std::vector<unsigned int>::const_iterator cIt =
78 enableRecLvdsInt.begin(); cIt != enableRecLvdsInt.end(); ++cIt) {
80 enableRecLvds.push_back(val);
84 enableRecLvds.clear();
87 = itPSet->getParameter<std::vector<unsigned int> > (
90 for (std::vector<unsigned int>::const_iterator cIt =
91 enableRecSerLinkInt.begin(); cIt != enableRecSerLinkInt.end(); ++cIt) {
93 enableRecSerLink.push_back(val);
97 enableRecSerLink.clear();
121 using namespace edm::es;
123 boost::shared_ptr<L1GtPsbSetup> pL1GtPsbSetup = boost::shared_ptr<
128 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