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