11 using index = std::pair<int,int>;
18 const int layersTIB = 4;
19 const int ringsTID = 3;
20 const int layersTOB = 6;
21 const int ringsTEC = 7;
46 layerId = tTopo->
tidRing(
id) - 1;
49 layerId = tTopo->
tecRing(
id) - 1;
54 return std::make_pair(subId, layerId);
71 m_data.insert(std::make_pair( subDet, v ));
73 else if( v.size() == 1 ) {
75 m_data.insert(std::make_pair( subDet, parV ));
78 throw cms::Exception(
"Configuration") <<
"ERROR: number of parameters for subDet " << subDet <<
" are " << v.size() <<
". They must be either 1 or " << layers << std::endl;
std::pair< int, int > index
T getParameter(std::string const &) const
std::vector< LayerSetAndLayers > layers(const SeedingLayerSetsHits &sets)
unsigned int tibLayer(const DetId &id) const
unsigned int tidRing(const DetId &id) const
unsigned int tecRing(const DetId &id) const
ring id
std::vector< double > LayerParameters
static index getIndex(const TrackerTopology *tTopo, DetId id)
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
SiStripFakeAPVParameters()
void fillSubDetParameter(const std::vector< double > &v, const int subDet, const unsigned short layers)
SiStripFakeAPVParameters(const edm::ParameterSet &pset, const std::string ¶meterName)
Fills the parameters read from cfg and matching the name in the map.
std::map< int, LayerParameters > SubdetParameters
unsigned int tobLayer(const DetId &id) const