CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SeedingHitSet.h
Go to the documentation of this file.
1 #ifndef TkSeedingLayers_SeedingHitSet_H
2 #define TkSeedingLayers_SeedingHitSet_H
3 
5 
6 class SeedingHitSet {
7 public:
8 
10 
12 
13  SeedingHitSet(ConstRecHitPointer const & one, ConstRecHitPointer const & two)
14  // : theRecHits{{one,two,ConstRecHitPointer()}}
15  {
16  theRecHits[0]=one;
17  theRecHits[1]=two;
18  }
20  ConstRecHitPointer const & three)
21  // : theRecHits{{one,two,three}},
22  {
23  theRecHits[0]=one;
24  theRecHits[1]=two;
25  theRecHits[2]=three;
26  }
27 
29 
30 
31  unsigned int size() const { return theRecHits[2].get() ? 3 : 2; }
32 
33  ConstRecHitPointer const & get(unsigned int i) const { return theRecHits[i]; }
34  ConstRecHitPointer const & operator[](unsigned int i) const { return theRecHits[i]; }
35 
36 
37 private:
39 };
40 
41 
42 #endif
int i
Definition: DBlmapReader.cc:9
SeedingHitSet(ConstRecHitPointer const &one, ConstRecHitPointer const &two, ConstRecHitPointer const &three)
Definition: SeedingHitSet.h:19
static ConstRecHitPointer nullPtr()
Definition: SeedingHitSet.h:11
TransientTrackingRecHit::ConstRecHitPointer ConstRecHitPointer
Definition: SeedingHitSet.h:9
ConstRecHitPointer const & operator[](unsigned int i) const
Definition: SeedingHitSet.h:34
unsigned int size() const
Definition: SeedingHitSet.h:31