CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FastStripCPE.h
Go to the documentation of this file.
1 #ifndef FastSimulation_TrackingRecHitProducer_FastStripCPE_H
2 #define FastSimulation_TrackingRecHitProducer_FastStripCPE_H
3 
9 
10 #include <ext/hash_map>
11 #include <map>
12 #include <memory>
13 
15 {
16  public:
18 
19  //Standard method used
20  //LocalValues is typedef for std::pair<LocalPoint,LocalError>
22  return localParameters(cl);
23  };
25 
26  //Put information into the map.
27  void enterLocalParameters(uint32_t id, uint16_t firstStrip, const std::pair<LocalPoint,LocalError>& pos_err_info);
28 
29  //Clear the map.
30  void clearParameters() const {
31  pos_err_map.clear();
32  }
33 
34  std::unique_ptr<ClusterParameterEstimator<SiStripCluster>> clone() const;
35 
37 
38  private:
39  mutable std::map<std::pair<uint32_t, uint16_t>,std::pair<LocalPoint, LocalError> > pos_err_map;
40 
41 };
42 
43 #endif
44 
45 
46 
47 
void enterLocalParameters(uint32_t id, uint16_t firstStrip, const std::pair< LocalPoint, LocalError > &pos_err_info)
Definition: FastStripCPE.cc:8
std::pair< LocalPoint, LocalError > LocalValues
StripClusterParameterEstimator::LocalValues localParameters(const SiStripCluster &cl, const GeomDetUnit &det) const
Definition: FastStripCPE.h:21
std::unique_ptr< ClusterParameterEstimator< SiStripCluster > > clone() const
Definition: FastStripCPE.cc:25
void clearParameters() const
Definition: FastStripCPE.h:30
LocalVector driftDirection(const StripGeomDetUnit *det) const
Definition: FastStripCPE.cc:29
std::map< std::pair< uint32_t, uint16_t >, std::pair< LocalPoint, LocalError > > pos_err_map
Definition: FastStripCPE.h:39