CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
FastStripCPE Class Reference

#include <FastStripCPE.h>

Inheritance diagram for FastStripCPE:
StripClusterParameterEstimator ClusterParameterEstimator< SiStripCluster >

Public Member Functions

void clearParameters () const
 
LocalVector driftDirection (const StripGeomDetUnit *det) const
 
void enterLocalParameters (uint32_t id, uint16_t firstStrip, std::pair< LocalPoint, LocalError > pos_err_info) const
 
 FastStripCPE ()
 
StripClusterParameterEstimator::LocalValues localParameters (const SiStripCluster &cl, const GeomDetUnit &det) const
 
StripClusterParameterEstimator::LocalValues localParameters (const SiStripCluster &cl) const
 
- Public Member Functions inherited from StripClusterParameterEstimator
virtual MeasurementValues measurementParameters (const SiStripCluster &, const GeomDetUnit &) const
 
virtual MeasurementValues measurementParameters (const SiStripCluster &cluster, const GeomDetUnit &gd, const LocalTrajectoryParameters &ltp) const
 
float templateProbability () const
 
void templateProbability (float stp)
 
int templateQbin () const
 
void templateQbin (int stqb)
 
- Public Member Functions inherited from ClusterParameterEstimator< SiStripCluster >
virtual void enterLocalParameters (unsigned int id, std::pair< int, int > &row_col, LocalValues pos_err_info) const
 
virtual void enterLocalParameters (uint32_t id, uint16_t firstStrip, LocalValues pos_err_info) const
 
virtual LocalValues localParameters (const SiStripCluster &cluster, const GeomDetUnit &gd, const LocalTrajectoryParameters &) const
 
virtual LocalValues localParameters (const SiStripCluster &cluster, const GeomDetUnit &gd, const TrajectoryStateOnSurface &tsos) const
 
virtual VLocalValues localParametersV (const SiStripCluster &cluster, const GeomDetUnit &gd) const
 
virtual VLocalValues localParametersV (const SiStripCluster &cluster, const GeomDetUnit &gd, const TrajectoryStateOnSurface &tsos) const
 
virtual ~ClusterParameterEstimator ()
 

Private Attributes

std::map< std::pair< uint32_t,
uint16_t >, std::pair
< LocalPoint, LocalError > > 
pos_err_map
 

Additional Inherited Members

- Public Types inherited from StripClusterParameterEstimator
typedef std::pair
< MeasurementPoint,
MeasurementError
MeasurementValues
 
- Public Types inherited from ClusterParameterEstimator< SiStripCluster >
typedef std::pair< LocalPoint,
LocalError
LocalValues
 
typedef std::vector< LocalValuesVLocalValues
 
- Public Attributes inherited from StripClusterParameterEstimator
float stripCPEtemplateProbability_
 
int stripCPEtemplateQbin_
 

Detailed Description

Definition at line 13 of file FastStripCPE.h.

Constructor & Destructor Documentation

FastStripCPE::FastStripCPE ( )
inline

Definition at line 16 of file FastStripCPE.h.

16 {;}

Member Function Documentation

void FastStripCPE::clearParameters ( ) const
inlinevirtual

Reimplemented from ClusterParameterEstimator< SiStripCluster >.

Definition at line 29 of file FastStripCPE.h.

References pos_err_map.

29  {
30  pos_err_map.clear();
31  }
std::map< std::pair< uint32_t, uint16_t >, std::pair< LocalPoint, LocalError > > pos_err_map
Definition: FastStripCPE.h:36
LocalVector FastStripCPE::driftDirection ( const StripGeomDetUnit det) const
virtual

Implements StripClusterParameterEstimator.

Definition at line 25 of file FastStripCPE.cc.

References edm::hlt::Exception.

25  {
26  throw cms::Exception("FastStripCPE") << "Should Not Be Called.";
27 }
void FastStripCPE::enterLocalParameters ( uint32_t  id,
uint16_t  firstStrip,
std::pair< LocalPoint, LocalError pos_err_info 
) const

Definition at line 8 of file FastStripCPE.cc.

References pos_err_map.

8  {
9  //Filling the map.
10  pos_err_map.insert(std::make_pair(std::make_pair(id, firstStrip), pos_err_info));
11 }
std::map< std::pair< uint32_t, uint16_t >, std::pair< LocalPoint, LocalError > > pos_err_map
Definition: FastStripCPE.h:36
StripClusterParameterEstimator::LocalValues FastStripCPE::localParameters ( const SiStripCluster cl,
const GeomDetUnit det 
) const
inlinevirtual

Implements ClusterParameterEstimator< SiStripCluster >.

Definition at line 20 of file FastStripCPE.h.

20  {
21  return localParameters(cl);
22  };
StripClusterParameterEstimator::LocalValues localParameters(const SiStripCluster &cl, const GeomDetUnit &det) const
Definition: FastStripCPE.h:20
StripClusterParameterEstimator::LocalValues FastStripCPE::localParameters ( const SiStripCluster cl) const

Definition at line 13 of file FastStripCPE.cc.

References edm::hlt::Exception, SiStripCluster::firstStrip(), SiStripCluster::geographicalId(), pos_err_map, and query::result.

13  {
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 }
uint16_t firstStrip() const
uint32_t geographicalId() const
tuple result
Definition: query.py:137
std::map< std::pair< uint32_t, uint16_t >, std::pair< LocalPoint, LocalError > > pos_err_map
Definition: FastStripCPE.h:36

Member Data Documentation

std::map<std::pair<uint32_t, uint16_t>,std::pair<LocalPoint, LocalError> > FastStripCPE::pos_err_map
mutableprivate

Definition at line 36 of file FastStripCPE.h.

Referenced by clearParameters(), enterLocalParameters(), and localParameters().