CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiTrackerGSRecHit2D.h
Go to the documentation of this file.
1 #ifndef SiTrackerGSRecHit2D_H
2 #define SiTrackerGSRecHit2D_H
3 
7 
8 // typedef edm::Ref<FastTrackerClusterCollection, FastTrackerCluster > ClusterRef;
9 // typedef edm::RefProd<FastTrackerClusterCollection> ClusterRefProd;
10 
12 
13 public:
14 
15 
16 
18  simhitId_(),
19  simtrackId_(),
20  eeId_(),
21  cluster_(),
24 
26 
29 
30 
32  GeomDet const & idet,
33  const int simhitId,
34  const int simtrackId,
35  const uint32_t eeId,
36  ClusterRef const& cluster,
37  const int pixelMultiplicityX,
38  const int pixelMultiplicityY);
39 
40  virtual SiTrackerGSRecHit2D * clone() const {SiTrackerGSRecHit2D * p = new SiTrackerGSRecHit2D( * this); p->load(); return p;}
41 
42  const int& simhitId() const { return simhitId_;}
43  const int& simtrackId() const { return simtrackId_;}
44  const uint32_t& eeId() const { return eeId_;}
45  const int& simMultX() const { return pixelMultiplicityAlpha_;}
46  const int& simMultY() const { return pixelMultiplicityBeta_;}
47 
48  ClusterRef const& cluster() const { return cluster_;}
49  void setClusterRef(const ClusterRef &ref) { cluster_ = ref; }
50 
51  virtual bool sharesInput( const TrackingRecHit* other, SharedInputType what) const {return false;}
52 
53  private:
54 
55  int simhitId_;
57  uint32_t eeId_;
61 
62 };
63 
64 // Comparison operators
65 inline bool operator<( const SiTrackerGSRecHit2D& one, const SiTrackerGSRecHit2D& other) {
66  if ( one.geographicalId() < other.geographicalId() ) {
67  return true;
68  } else {
69  return false;
70  }
71 }
72 
73 #endif
SharedInputType
definition of equality via shared input
const int & simhitId() const
virtual SiTrackerGSRecHit2D * clone() const
const int & simtrackId() const
edm::RefProd< FastTrackerClusterCollection > ClusterRefProd
bool operator<(const FedChannelConnection &, const FedChannelConnection &)
const int & simMultX() const
edm::Ref< FastTrackerClusterCollection, FastTrackerCluster > ClusterRef
const uint32_t & eeId() const
const int & simMultY() const
virtual bool sharesInput(const TrackingRecHit *other, SharedInputType what) const
ClusterRef const & cluster() const
void setClusterRef(const ClusterRef &ref)
DetId geographicalId() const