CMS 3D CMS Logo

Public Member Functions | Private Attributes

FastPixelCPE Class Reference

#include <FastPixelCPE.h>

Inheritance diagram for FastPixelCPE:
PixelClusterParameterEstimator ClusterParameterEstimator< SiPixelCluster >

List of all members.

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.

Private Attributes

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

Detailed Description

Definition at line 14 of file FastPixelCPE.h.


Constructor & Destructor Documentation

FastPixelCPE::FastPixelCPE ( ) [inline]

Definition at line 17 of file FastPixelCPE.h.

{;}

Member Function Documentation

void FastPixelCPE::clearParameters ( ) const [inline, virtual]

Reimplemented from ClusterParameterEstimator< SiPixelCluster >.

Definition at line 28 of file FastPixelCPE.h.

References pos_err_map.

                               { 
    pos_err_map.clear(); 
  }
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.

                                                                                                                                     {
  pos_err_map.insert(std::make_pair(std::make_pair(id,row_col), pos_err_info));
}
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 Exception, GeomDet::geographicalId(), SiPixelCluster::minPixelCol(), SiPixelCluster::minPixelRow(), and DetId::rawId().

{
  
  std::map<std::pair<unsigned int, std::pair<int,int> >, std::pair<LocalPoint,LocalError> >::const_iterator pixel_link = 
    pos_err_map.find(std::make_pair(det.geographicalId().rawId(),std::make_pair(cluster.minPixelRow(),cluster.minPixelCol())));
  if (pixel_link != pos_err_map.end()) {
    std::pair<LocalPoint,LocalError> pos_err_info = pixel_link->second;
    return std::make_pair(pos_err_info.first, pos_err_info.second);
  }
  throw cms::Exception("FastPixelCPE") << "Cluster not filled.";
}

Member Data Documentation

std::map<std::pair<unsigned int, std::pair<int,int> >, std::pair<LocalPoint, LocalError> > FastPixelCPE::pos_err_map [mutable, private]

Definition at line 34 of file FastPixelCPE.h.

Referenced by clearParameters().