CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_2_9_HLT1_bphpatch4/src/FastSimulation/TrackingRecHitProducer/interface/FastPixelCPE.h

Go to the documentation of this file.
00001 #ifndef FastSimulation_TrackingRecHitProducer_FastPixelCPE_H
00002 #define FastSimulation_TrackingRecHitProducer_FastPixelCPE_H
00003 
00004 //Header files
00005 #include "RecoLocalTracker/ClusterParameterEstimator/interface/PixelClusterParameterEstimator.h"
00006 #include "FastSimDataFormats/External/interface/FastTrackerCluster.h"
00007 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00008 
00009 #include <map>
00010 
00011 #if 0
00012 #endif
00013 
00014 class FastPixelCPE : public PixelClusterParameterEstimator
00015 {
00016  public:
00017   FastPixelCPE(){;}
00018   
00019   //Standard method used
00020   //LocalValues is typedef for std::pair<LocalPoint,LocalError> 
00021   PixelClusterParameterEstimator::LocalValues localParameters( const SiPixelCluster & cl,
00022                                                                const GeomDetUnit    & det) const;
00023         
00024   //Put information into the map.
00025   void enterLocalParameters(unsigned int id, std::pair<int,int> &row_col, std::pair<LocalPoint,LocalError> pos_err_info) const; 
00026   
00027   //Clear the map.
00028   void clearParameters() const { 
00029     pos_err_map.clear(); 
00030   }
00031   
00032  private:
00033   //Map used to store clusters distinctly.
00034   mutable std::map<std::pair<unsigned int, std::pair<int,int> >, std::pair<LocalPoint, LocalError> > pos_err_map;
00035 };
00036 
00037 #endif
00038 
00039 
00040 
00041