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
FastPixelCPE Class Reference

#include <FastPixelCPE.h>

Inheritance diagram for FastPixelCPE:
PixelClusterParameterEstimator ClusterParameterEstimator< SiPixelCluster >

Public Member Functions

void clearParameters () const
 
std::unique_ptr
< ClusterParameterEstimator
< SiPixelCluster > > 
clone () const
 
void enterLocalParameters (unsigned int id, std::pair< int, int > &row_col, const std::pair< LocalPoint, LocalError > &pos_err_info)
 
 FastPixelCPE ()
 
PixelClusterParameterEstimator::LocalValues localParameters (const SiPixelCluster &cl, const GeomDetUnit &det) const
 The constructor. More...
 
- Public Member Functions inherited from PixelClusterParameterEstimator
unsigned int clusterProbComputationFlag () const
 
 PixelClusterParameterEstimator ()
 
virtual
SiPixelRecHitQuality::QualWordType 
rawQualityWord () const
 
- Public Member Functions inherited from ClusterParameterEstimator< SiPixelCluster >
virtual void clearParameters ()
 
virtual void enterLocalParameters (unsigned int id, std::pair< int, int > &row_col, LocalValues pos_err_info)
 
virtual void enterLocalParameters (uint32_t id, uint16_t firstStrip, LocalValues pos_err_info)
 
virtual LocalValues localParameters (const SiPixelCluster &cluster, const GeomDetUnit &gd, const LocalTrajectoryParameters &) const
 
virtual LocalValues localParameters (const SiPixelCluster &cluster, const GeomDetUnit &gd, const TrajectoryStateOnSurface &tsos) const
 
virtual VLocalValues localParametersV (const SiPixelCluster &cluster, const GeomDetUnit &gd) const
 
virtual VLocalValues localParametersV (const SiPixelCluster &cluster, const GeomDetUnit &gd, const TrajectoryStateOnSurface &tsos) const
 
virtual ~ClusterParameterEstimator ()
 

Private Attributes

std::map< std::pair< unsigned
int, std::pair< int, int >
>, std::pair< LocalPoint,
LocalError > > 
pos_err_map
 

Additional Inherited Members

- Public Types inherited from ClusterParameterEstimator< SiPixelCluster >
typedef std::pair< LocalPoint,
LocalError
LocalValues
 
typedef std::vector< LocalValuesVLocalValues
 
- Protected Attributes inherited from PixelClusterParameterEstimator
unsigned int clusterProbComputationFlag_
 

Detailed Description

Definition at line 13 of file FastPixelCPE.h.

Constructor & Destructor Documentation

FastPixelCPE::FastPixelCPE ( )
inline

Definition at line 16 of file FastPixelCPE.h.

16 {;}

Member Function Documentation

void FastPixelCPE::clearParameters ( ) const
inline

Definition at line 27 of file FastPixelCPE.h.

References pos_err_map.

27  {
28  pos_err_map.clear();
29  }
std::map< std::pair< unsigned int, std::pair< int, int > >, std::pair< LocalPoint, LocalError > > pos_err_map
Definition: FastPixelCPE.h:35
std::unique_ptr< ClusterParameterEstimator< SiPixelCluster > > FastPixelCPE::clone ( void  ) const
virtual

Reimplemented from ClusterParameterEstimator< SiPixelCluster >.

Definition at line 39 of file FastPixelCPE.cc.

39  {
40  return std::unique_ptr<ClusterParameterEstimator<SiPixelCluster>>(new ClusterParameterEstimator<SiPixelCluster>(*this));
41 }
void FastPixelCPE::enterLocalParameters ( unsigned int  id,
std::pair< int, int > &  row_col,
const std::pair< LocalPoint, LocalError > &  pos_err_info 
)

Definition at line 34 of file FastPixelCPE.cc.

34  {
35  pos_err_map.insert(std::make_pair(std::make_pair(id,row_col), pos_err_info));
36 }
std::map< std::pair< unsigned int, std::pair< int, int > >, std::pair< LocalPoint, LocalError > > pos_err_map
Definition: FastPixelCPE.h:35
PixelClusterParameterEstimator::LocalValues FastPixelCPE::localParameters ( const SiPixelCluster cl,
const GeomDetUnit det 
) const
virtual

The constructor.

Reimplemented from ClusterParameterEstimator< SiPixelCluster >.

Definition at line 22 of file FastPixelCPE.cc.

References edm::hlt::Exception, GeomDet::geographicalId(), SiPixelCluster::minPixelCol(), SiPixelCluster::minPixelRow(), and DetId::rawId().

23 {
24 
25  std::map<std::pair<unsigned int, std::pair<int,int> >, std::pair<LocalPoint,LocalError> >::const_iterator pixel_link =
26  pos_err_map.find(std::make_pair(det.geographicalId().rawId(),std::make_pair(cluster.minPixelRow(),cluster.minPixelCol())));
27  if (pixel_link != pos_err_map.end()) {
28  std::pair<LocalPoint,LocalError> pos_err_info = pixel_link->second;
29  return std::make_pair(pos_err_info.first, pos_err_info.second);
30  }
31  throw cms::Exception("FastPixelCPE") << "Cluster not filled.";
32 }
std::map< std::pair< unsigned int, std::pair< int, int > >, std::pair< LocalPoint, LocalError > > pos_err_map
Definition: FastPixelCPE.h:35
uint32_t rawId() const
get the raw id
Definition: DetId.h:43
DetId geographicalId() const
The label of this GeomDet.
Definition: GeomDet.h:72

Member Data Documentation

std::map<std::pair<unsigned int, std::pair<int,int> >, std::pair<LocalPoint, LocalError> > FastPixelCPE::pos_err_map
mutableprivate

Definition at line 35 of file FastPixelCPE.h.

Referenced by clearParameters().