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  ConstRecHitPointer const * data() const { return theRecHits;}
45 
46  unsigned int size() const { return theRecHits[3] ? 4 : (theRecHits[2] ? 3 : ( theRecHits[1] ? 2 : 0 ) ); }
47 
48  ConstRecHitPointer get(unsigned int i) const { return theRecHits[i]; }
49  ConstRecHitPointer operator[](unsigned int i) const { return theRecHits[i]; }
50 
51 
52 private:
54 };
55 
56 
57 #endif
int i
Definition: DBlmapReader.cc:9
SeedingHitSet(ConstRecHitPointer one, ConstRecHitPointer two, ConstRecHitPointer three, ConstRecHitPointer four)
Definition: SeedingHitSet.h:34
ConstRecHitPointer const * data() const
Definition: SeedingHitSet.h:44
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:49
static ConstRecHitPointer nullPtr()
Definition: SeedingHitSet.h:13
unsigned int size() const
Definition: SeedingHitSet.h:46