CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FastStripCPE.cc
Go to the documentation of this file.
3 #include <algorithm>
4 #include<cmath>
5 #include<map>
6 
7 
8 void FastStripCPE::enterLocalParameters(uint32_t id, uint16_t firstStrip, std::pair<LocalPoint, LocalError> pos_err_info ) const {
9  //Filling the map.
10  pos_err_map.insert(std::make_pair(std::make_pair(id, firstStrip), pos_err_info));
11 }
12 
14  std::map<std::pair<uint32_t,uint16_t>,std::pair<LocalPoint,LocalError> >::const_iterator strip_link = pos_err_map.find(std::make_pair(cl.geographicalId(),cl.firstStrip()));
15  if (strip_link != pos_err_map.end()) {
16  std::pair<LocalPoint,LocalError> pos_err_info = strip_link->second;
17  LocalPoint result = pos_err_info.first;
18  LocalError eresult = pos_err_info.second;
19  return std::make_pair(result,eresult);
20  }
21  throw cms::Exception("FastStripCPE") << "Cluster not filled.";
22 }
23 
24 
26  throw cms::Exception("FastStripCPE") << "Should Not Be Called.";
27 }
uint16_t firstStrip() const
std::pair< LocalPoint, LocalError > LocalValues
uint32_t geographicalId() const
StripClusterParameterEstimator::LocalValues localParameters(const SiStripCluster &cl, const GeomDetUnit &det) const
Definition: FastStripCPE.h:20
tuple result
Definition: query.py:137
float cl
Definition: Combine.cc:71
void enterLocalParameters(uint32_t id, uint16_t firstStrip, std::pair< LocalPoint, LocalError > pos_err_info) const
Definition: FastStripCPE.cc:8
LocalVector driftDirection(const StripGeomDetUnit *det) const
Definition: FastStripCPE.cc:25
std::map< std::pair< uint32_t, uint16_t >, std::pair< LocalPoint, LocalError > > pos_err_map
Definition: FastStripCPE.h:36