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
(){}
29
30
31
unsigned
int
size
()
const
{
return
theRecHits
[2].get() ? 3 : 2; }
32
33
ConstRecHitPointer
const
&
get
(
unsigned
int
i
)
const
{
return
theRecHits
[
i
]; }
34
ConstRecHitPointer
const
&
operator[]
(
unsigned
int
i
)
const
{
return
theRecHits
[
i
]; }
35
36
37
private
:
38
ConstRecHitPointer
theRecHits
[3];
39
};
40
41
42
#endif
i
int i
Definition:
DBlmapReader.cc:9
ConstReferenceCountingPointer
Definition:
ReferenceCounted.h:69
SeedingHitSet::theRecHits
theRecHits[0]
Definition:
SeedingHitSet.h:16
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::ConstRecHitPointer
TransientTrackingRecHit::ConstRecHitPointer ConstRecHitPointer
Definition:
SeedingHitSet.h:9
SeedingHitSet::operator[]
ConstRecHitPointer const & operator[](unsigned int i) const
Definition:
SeedingHitSet.h:34
SeedingHitSet::size
unsigned int size() const
Definition:
SeedingHitSet.h:31
SeedingHitSet::~SeedingHitSet
~SeedingHitSet()
Definition:
SeedingHitSet.h:28
Generated for CMSSW Reference Manual by
1.8.5