CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiStripRecHit1D.h
Go to the documentation of this file.
1 #ifndef SiStripRecHit1D_H
2 #define SiStripRecHit1D_H
3 
10 
11 #include "float.h"
12 
13 class SiStripRecHit1D : public RecHit1D{
14 public:
15 
17  sigmaPitch_(-1.){}
18 
20 
22  SiStripRecHit1D( const LocalPoint&, const LocalError&,
23  const DetId&,
24  ClusterRef const& cluster);
25 
27  SiStripRecHit1D( const LocalPoint&, const LocalError&,
28  const DetId&,
30 
33 
34  virtual SiStripRecHit1D * clone() const {return new SiStripRecHit1D( * this); }
35 
37 
38  ClusterRef const& cluster() const { return cluster_;}
39 
40  virtual void getKfComponents( KfComponentsHolder & holder ) const ;
41 
42  virtual LocalPoint localPosition() const;
43 
44  virtual LocalError localPositionError() const;
45 
46  bool hasPositionAndError() const ;
47 
48 
49 
50  void setClusterRef(ClusterRef const & ref) { cluster_ = ref; }
52 
53  virtual bool sharesInput( const TrackingRecHit* other, SharedInputType what) const;
54 
55  double sigmaPitch() const { return sigmaPitch_;}
56  void setSigmaPitch(double sigmap) const { sigmaPitch_=sigmap;}
57 
58 
59  virtual std::vector<const TrackingRecHit*> recHits() const;
60  virtual std::vector<TrackingRecHit*> recHits();
61 
62 
63  private:
64  void throwExceptionUninitialized(const char *where) const;
65 
68 
69  // DetSetVector ref
71 
72  // SiStripRefGetter ref.
74 
76  mutable double sigmaPitch_; // transient....
77 
78 };
79 
80 // Comparison operators
81 inline bool operator<( const SiStripRecHit1D& one, const SiStripRecHit1D& other) {
82  if ( one.geographicalId() < other.geographicalId() ) {
83  return true;
84  } else {
85  return false;
86  }
87 }
88 
89 #endif
SharedInputType
definition of equality via shared input
edm::Ref< edm::LazyGetter< SiStripCluster >, SiStripCluster, edm::FindValue< SiStripCluster > > ClusterRegionalRef
void setSigmaPitch(double sigmap) const
edm::Ref< edmNew::DetSetVector< SiStripCluster >, SiStripCluster > ClusterRef
ClusterRef cluster_
bool hasPositionAndError() const
virtual std::vector< const TrackingRecHit * > recHits() const
Access to component RecHits (if any)
virtual void getKfComponents(KfComponentsHolder &holder) const
virtual SiStripRecHit1D * clone() const
void setClusterRef(ClusterRef const &ref)
void throwExceptionUninitialized(const char *where) const
bool operator<(const FedChannelConnection &, const FedChannelConnection &)
virtual bool sharesInput(const TrackingRecHit *other, SharedInputType what) const
virtual LocalError localPositionError() const
Error on the local position.
virtual LocalPoint localPosition() const
Local position.
Definition: DetId.h:20
double sigmaPitch() const
ClusterRegionalRef const & cluster_regional() const
void setClusterRegionalRef(ClusterRegionalRef const &ref)
ClusterRef const & cluster() const
DetId geographicalId() const
double sigmaPitch_
cache for the matcher....
ClusterRegionalRef clusterRegional_