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 
14 
15  SeedingHitSet(ConstRecHitPointer const & one, ConstRecHitPointer const & two)
16  // : theRecHits{{one,two,ConstRecHitPointer()}}
17  {
18  theRecHits[0]=one;
19  theRecHits[1]=two;
20  }
22  ConstRecHitPointer const & three)
23  // : theRecHits{{one,two,three}},
24  {
25  theRecHits[0]=one;
26  theRecHits[1]=two;
27  theRecHits[2]=three;
28  }
29 
31  ConstRecHitPointer const & three, ConstRecHitPointer const &four)
32  {
33  theRecHits[0]=one;
34  theRecHits[1]=two;
35  theRecHits[2]=three;
36  theRecHits[3]=four;
37  }
38 
40 
41  unsigned int size() const { return theRecHits[3].get() ? 4 : (theRecHits[2].get() ? 3 : ( theRecHits[1].get() ? 2 : 0 ) ); }
42 
43  ConstRecHitPointer const & get(unsigned int i) const { return theRecHits[i]; }
44  ConstRecHitPointer const & operator[](unsigned int i) const { return theRecHits[i]; }
45 
46 
47 private:
49 };
50 
51 
52 #endif
int i
Definition: DBlmapReader.cc:9
SeedingHitSet(ConstRecHitPointer const &one, ConstRecHitPointer const &two, ConstRecHitPointer const &three)
Definition: SeedingHitSet.h:21
static ConstRecHitPointer nullPtr()
Definition: SeedingHitSet.h:11
TransientTrackingRecHit::ConstRecHitPointer ConstRecHitPointer
Definition: SeedingHitSet.h:9
ConstRecHitPointer const & operator[](unsigned int i) const
Definition: SeedingHitSet.h:44
unsigned int size() const
Definition: SeedingHitSet.h:41
SeedingHitSet(ConstRecHitPointer const &one, ConstRecHitPointer const &two, ConstRecHitPointer const &three, ConstRecHitPointer const &four)
Definition: SeedingHitSet.h:30