Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
RecoTracker
TkSeedingLayers
interface
SeedingHitSet.h
Go to the documentation of this file.
1
#ifndef TkSeedingLayers_SeedingHitSet_H
2
#define TkSeedingLayers_SeedingHitSet_H
3
4
#include "
TrackingTools/TransientTrackingRecHit/interface/TransientTrackingRecHit.h
"
5
6
class
SeedingHitSet
{
7
public
:
8
9
typedef
TransientTrackingRecHit::ConstRecHitPointer
ConstRecHitPointer
;
10
11
static
ConstRecHitPointer
nullPtr
() {
return
ConstRecHitPointer
();}
12
13
SeedingHitSet
(
ConstRecHitPointer
const
& one,
ConstRecHitPointer
const
& two)
14
// : theRecHits{{one,two,ConstRecHitPointer()}}
15
{
16
theRecHits
[0]=one;
17
theRecHits
[1]=two;
18
}
19
SeedingHitSet
(
ConstRecHitPointer
const
& one,
ConstRecHitPointer
const
& two,
20
ConstRecHitPointer
const
& three)
21
// : theRecHits{{one,two,three}},
22
{
23
theRecHits
[0]=one;
24
theRecHits
[1]=two;
25
theRecHits
[2]=three;
26
}
27
28
SeedingHitSet
(
ConstRecHitPointer
const
& one,
ConstRecHitPointer
const
& two,
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
37
~SeedingHitSet
(){}
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
:
47
ConstRecHitPointer
theRecHits
[4];
48
};
49
50
51
#endif
i
int i
Definition:
DBlmapReader.cc:9
ConstReferenceCountingPointer
Definition:
ReferenceCounted.h:69
SeedingHitSet::SeedingHitSet
SeedingHitSet(ConstRecHitPointer const &one, ConstRecHitPointer const &two, ConstRecHitPointer const &three)
Definition:
SeedingHitSet.h:19
TransientTrackingRecHit.h
SeedingHitSet
Definition:
SeedingHitSet.h:6
SeedingHitSet::nullPtr
static ConstRecHitPointer nullPtr()
Definition:
SeedingHitSet.h:11
SeedingHitSet::theRecHits
theRecHits[1]
Definition:
SeedingHitSet.h:17
SeedingHitSet::ConstRecHitPointer
TransientTrackingRecHit::ConstRecHitPointer ConstRecHitPointer
Definition:
SeedingHitSet.h:9
SeedingHitSet::operator[]
ConstRecHitPointer const & operator[](unsigned int i) const
Definition:
SeedingHitSet.h:43
SeedingHitSet::size
unsigned int size() const
Definition:
SeedingHitSet.h:40
SeedingHitSet::~SeedingHitSet
~SeedingHitSet()
Definition:
SeedingHitSet.h:37
SeedingHitSet::SeedingHitSet
SeedingHitSet(ConstRecHitPointer const &one, ConstRecHitPointer const &two, ConstRecHitPointer const &three, ConstRecHitPointer const &four)
Definition:
SeedingHitSet.h:28
Generated for CMSSW Reference Manual by
1.8.5