#include <FastStripCPE.h>
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 |
StripClusterParameterEstimator::LocalValues | localParameters (const SiStripCluster &cl, const GeomDetUnit &det) const |
Private Attributes | |
std::map< std::pair< uint32_t, uint16_t >, std::pair < LocalPoint, LocalError > > | pos_err_map |
Definition at line 13 of file FastStripCPE.h.
FastStripCPE::FastStripCPE | ( | ) | [inline] |
Definition at line 16 of file FastStripCPE.h.
{;}
void FastStripCPE::clearParameters | ( | ) | const [inline, virtual] |
Reimplemented from ClusterParameterEstimator< SiStripCluster >.
Definition at line 29 of file FastStripCPE.h.
References pos_err_map.
{ pos_err_map.clear(); }
LocalVector FastStripCPE::driftDirection | ( | const StripGeomDetUnit * | det | ) | const [virtual] |
Implements StripClusterParameterEstimator.
Definition at line 25 of file FastStripCPE.cc.
References Exception.
{ throw cms::Exception("FastStripCPE") << "Should Not Be Called."; }
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.
{ //Filling the map. pos_err_map.insert(std::make_pair(std::make_pair(id, firstStrip), pos_err_info)); }
StripClusterParameterEstimator::LocalValues FastStripCPE::localParameters | ( | const SiStripCluster & | cl, |
const GeomDetUnit & | det | ||
) | const [inline, virtual] |
Implements ClusterParameterEstimator< SiStripCluster >.
Definition at line 20 of file FastStripCPE.h.
{ return localParameters(cl); };
StripClusterParameterEstimator::LocalValues FastStripCPE::localParameters | ( | const SiStripCluster & | cl | ) | const |
Definition at line 13 of file FastStripCPE.cc.
References Exception, SiStripCluster::firstStrip(), SiStripCluster::geographicalId(), pos_err_map, and query::result.
{ 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())); if (strip_link != pos_err_map.end()) { std::pair<LocalPoint,LocalError> pos_err_info = strip_link->second; LocalPoint result = pos_err_info.first; LocalError eresult = pos_err_info.second; return std::make_pair(result,eresult); } throw cms::Exception("FastStripCPE") << "Cluster not filled."; }
std::map<std::pair<uint32_t, uint16_t>,std::pair<LocalPoint, LocalError> > FastStripCPE::pos_err_map [mutable, private] |
Definition at line 36 of file FastStripCPE.h.
Referenced by clearParameters(), enterLocalParameters(), and localParameters().