22 #include "boost/shared_ptr.hpp"
43 typedef boost::shared_ptr<L1RPCConeDefinition>
ReturnType;
77 m_towerBeg(iConfig.getParameter<int>(
"towerBeg")),
78 m_towerEnd(iConfig.getParameter<int>(
"towerEnd")),
79 m_rollBeg(iConfig.getParameter<int>(
"rollBeg")),
80 m_rollEnd(iConfig.getParameter<int>(
"rollEnd")),
81 m_hwPlaneBeg(iConfig.getParameter<int>(
"hwPlaneBeg")),
82 m_hwPlaneEnd(iConfig.getParameter<int>(
"hwPlaneEnd"))
90 std::stringstream
name;
91 name <<
"lpSizeTower" <<
t;
94 std::vector<int> newSizes =
95 iConfig.
getParameter<std::vector<int> >(name.str().c_str());
97 for (
unsigned int lp = 0; lp < newSizes.size();++lp){
129 std::stringstream
name;
130 name <<
"rollConnLP_" << roll <<
"_" << hwpl;
132 std::vector<int> hwPl2LPVec = iConfig.
getParameter<std::vector<int> >(name.str().c_str());
134 for (
unsigned int i = 0;
i < hwPl2LPVec.size();++
i){
136 if (hwPl2LPVec[
i]>=0)
142 lp.
m_LP=hwPl2LPVec[
i];
149 std::stringstream name1;
150 name1 <<
"rollConnT_" << roll <<
"_" << hwpl;
155 std::vector<int> hwPl2TowerVec = iConfig.
getParameter<std::vector<int> >(name1.str().c_str());
157 for (
unsigned int i = 0;
i < hwPl2TowerVec.size();++
i){
159 if (hwPl2TowerVec[
i]>=0)
192 using namespace edm::es;
195 pL1RPCConeDefinition->setFirstTower(
m_towerBeg);
196 pL1RPCConeDefinition->setLastTower(
m_towerEnd);
203 return pL1RPCConeDefinition ;
T getParameter(std::string const &) const
std::vector< TRingToTower > TRingToTowerVec
std::vector< TRingToLP > TRingToLPVec
std::vector< TLPSize > TLPSizeVec
~L1RPCConeDefinitionProducer()
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
L1RPCConeDefinition::TRingToLPVec m_ringToLPVec
L1RPCConeDefinition::TRingToTowerVec m_ringToTowerVec
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
L1RPCConeDefinitionProducer(const edm::ParameterSet &)
boost::shared_ptr< L1RPCConeDefinition > ReturnType
ReturnType produce(const L1RPCConeDefinitionRcd &)
L1RPCConeDefinition::TLPSizeVec m_LPSizeVec