CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_13_patch3/src/DataFormats/TrackerRecHit2D/interface/SiStripRecHit1D.h

Go to the documentation of this file.
00001 #ifndef SiStripRecHit1D_H
00002 #define SiStripRecHit1D_H
00003 
00004 
00005 
00006 #include "DataFormats/TrackerRecHit2D/interface/TrackerSingleRecHit.h"
00007 
00008 #include "DataFormats/TrackerRecHit2D/interface/SiStripRecHit2D.h"
00009 
00010 class SiStripRecHit1D GCC11_FINAL : public TrackerSingleRecHit { 
00011 public:
00012 
00013  
00014   SiStripRecHit1D(): sigmaPitch_(-1.){}
00015   
00016   
00017   typedef OmniClusterRef::ClusterStripRef         ClusterRef;
00018   typedef OmniClusterRef::ClusterRegionalRef ClusterRegionalRef;
00019 
00020 
00021   SiStripRecHit1D( const LocalPoint& p, const LocalError& e,
00022                    const DetId& id, 
00023                    OmniClusterRef const&  clus) : TrackerSingleRecHit(p,e,id,clus), sigmaPitch_(-1.){}
00024 
00025   SiStripRecHit1D( const LocalPoint& p, const LocalError& e,
00026                    const DetId& id, 
00027                    ClusterRef const&  clus) : TrackerSingleRecHit(p,e,id,clus), sigmaPitch_(-1.){}
00028 
00029   SiStripRecHit1D( const LocalPoint& p, const LocalError& e,
00030                    const DetId& id, 
00031                    ClusterRegionalRef const& clus) : TrackerSingleRecHit(p,e,id,clus), sigmaPitch_(-1.){}
00032   
00034   SiStripRecHit1D(const SiStripRecHit2D*);
00035 
00036   ClusterRef cluster()  const { return cluster_strip() ; }
00037   void setClusterRef(ClusterRef const & ref)  {setClusterStripRef(ref);}
00038 
00039 
00040   virtual SiStripRecHit1D * clone() const {return new SiStripRecHit1D( * this); }
00041   
00042 
00043   virtual int dimension() const {return 1;}
00044   virtual void getKfComponents( KfComponentsHolder & holder ) const {getKfComponents1D(holder);}
00045 
00046  
00047   double sigmaPitch() const { return sigmaPitch_;}
00048   void setSigmaPitch(double sigmap) const { sigmaPitch_=sigmap;}
00049 
00050 private:
00051  
00053   mutable double sigmaPitch_;  // transient.... 
00054 };
00055 
00056 #endif