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  ConstRecHitPointer const & three, ConstRecHitPointer const &four)
30  {
31  theRecHits[0]=one;
32  theRecHits[1]=two;
33  theRecHits[2]=three;
34  theRecHits[3]=four;
35  }
36 
38 
39 
40  unsigned int size() const { return theRecHits[3].get() ? 4 : (theRecHits[2].get() ? 3 : 2); }
41 
42  ConstRecHitPointer const & get(unsigned int i) const { return theRecHits[i]; }
43  ConstRecHitPointer const & operator[](unsigned int i) const { return theRecHits[i]; }
44 
45 
46 private:
48 };
49 
50 
51 #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:43
unsigned int size() const
Definition: SeedingHitSet.h:40
SeedingHitSet(ConstRecHitPointer const &one, ConstRecHitPointer const &two, ConstRecHitPointer const &three, ConstRecHitPointer const &four)
Definition: SeedingHitSet.h:28