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
 
void enterLocalParameters (unsigned int id, std::pair< int, int > &row_col, std::pair< LocalPoint, LocalError > pos_err_info) const
 
 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 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 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 14 of file FastPixelCPE.h.

Constructor & Destructor Documentation

FastPixelCPE::FastPixelCPE ( )
inline

Definition at line 17 of file FastPixelCPE.h.

17 {;}

Member Function Documentation

void FastPixelCPE::clearParameters ( ) const
inlinevirtual

Reimplemented from ClusterParameterEstimator< SiPixelCluster >.

Definition at line 28 of file FastPixelCPE.h.

References pos_err_map.

28  {
29  pos_err_map.clear();
30  }
std::map< std::pair< unsigned int, std::pair< int, int > >, std::pair< LocalPoint, LocalError > > pos_err_map
Definition: FastPixelCPE.h:34
void FastPixelCPE::enterLocalParameters ( unsigned int  id,
std::pair< int, int > &  row_col,
std::pair< LocalPoint, LocalError pos_err_info 
) const

Definition at line 33 of file FastPixelCPE.cc.

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

The constructor.

Implements ClusterParameterEstimator< SiPixelCluster >.

Definition at line 21 of file FastPixelCPE.cc.

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

22 {
23 
24  std::map<std::pair<unsigned int, std::pair<int,int> >, std::pair<LocalPoint,LocalError> >::const_iterator pixel_link =
25  pos_err_map.find(std::make_pair(det.geographicalId().rawId(),std::make_pair(cluster.minPixelRow(),cluster.minPixelCol())));
26  if (pixel_link != pos_err_map.end()) {
27  std::pair<LocalPoint,LocalError> pos_err_info = pixel_link->second;
28  return std::make_pair(pos_err_info.first, pos_err_info.second);
29  }
30  throw cms::Exception("FastPixelCPE") << "Cluster not filled.";
31 }
std::map< std::pair< unsigned int, std::pair< int, int > >, std::pair< LocalPoint, LocalError > > pos_err_map
Definition: FastPixelCPE.h:34
uint32_t rawId() const
get the raw id
Definition: DetId.h:45
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 34 of file FastPixelCPE.h.

Referenced by clearParameters().