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  void setEeId(uint32_t eeId){eeId_ = eeId;}
52 
53  virtual bool sharesInput( const TrackingRecHit* other, SharedInputType what) const {return false;}
54 
55  private:
56 
57  int simhitId_;
59  uint32_t eeId_;
63 
64 };
65 
66 // Comparison operators
67 inline bool operator<( const SiTrackerGSRecHit2D& one, const SiTrackerGSRecHit2D& other) {
68  if ( one.geographicalId() < other.geographicalId() ) {
69  return true;
70  } else {
71  return false;
72  }
73 }
74 
75 #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 &)
void setEeId(uint32_t eeId)
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