CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/RecoLocalTracker/ClusterParameterEstimator/interface/PixelClusterParameterEstimator.h

Go to the documentation of this file.
00001 #ifndef RecoLocalTracker_PixelCluster_Parameter_Estimator_H
00002 #define RecoLocalTracker_PixelCluster_Parameter_Estimator_H
00003 
00004 #include "DataFormats/SiPixelCluster/interface/SiPixelCluster.h"
00005 #include "RecoLocalTracker/ClusterParameterEstimator/interface/ClusterParameterEstimator.h"
00006 #include "DataFormats/TrackerRecHit2D/interface/SiPixelRecHitQuality.h"
00007 
00008 
00009 class PixelClusterParameterEstimator : public  ClusterParameterEstimator<SiPixelCluster> {
00010   public:
00011 
00012   PixelClusterParameterEstimator() : clusterProbComputationFlag_(0){}
00013 
00014   //--- Flag to control how SiPixelRecHits compute clusterProbability().
00015   //--- Note this is set via the configuration file, and it's simply passed
00016   //--- to each TSiPixelRecHit.
00017   inline unsigned int clusterProbComputationFlag() const 
00018     { 
00019       return clusterProbComputationFlag_ ; 
00020     }
00021   
00022   
00023   //-----------------------------------------------------------------------------
00028   //-----------------------------------------------------------------------------
00029   virtual SiPixelRecHitQuality::QualWordType rawQualityWord() const {
00030      return SiPixelRecHitQuality::QualWordType();
00031   }
00032 
00033   protected:
00034  //--- A flag that could be used to change the behavior of
00035   //--- clusterProbability() in TSiPixelRecHit (the *transient* one).
00036   //--- The problem is that the transient hits are made after the CPE runs
00037   //--- and they don't get the access to the PSet, so we pass it via the
00038   //--- CPE itself...
00039   //
00040   unsigned int clusterProbComputationFlag_;
00041 
00042 };
00043 
00044 #endif