Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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 "
DataFormats/TrackerRecHit2D/interface/BaseTrackerRecHit.h
"
5
6
class
SeedingHitSet
{
7
public
:
8
using
RecHit
=
BaseTrackerRecHit
;
9
using
RecHitPointer
=
BaseTrackerRecHit
*;
10
using
ConstRecHitPointer
=
BaseTrackerRecHit
const
*;
11
12
static
ConstRecHitPointer
nullPtr
() {
return
nullptr
; }
13
14
SeedingHitSet
() {
theRecHits
[0] =
theRecHits
[1] =
theRecHits
[2] =
theRecHits
[3] =
nullptr
; }
15
16
SeedingHitSet
(
ConstRecHitPointer
one
,
ConstRecHitPointer
two
)
17
// : theRecHits{{one,two,ConstRecHitPointer()}}
18
{
19
theRecHits
[0] =
one
;
20
theRecHits
[1] =
two
;
21
theRecHits
[2] =
theRecHits
[3] =
nullptr
;
22
}
23
SeedingHitSet
(
ConstRecHitPointer
one
,
ConstRecHitPointer
two
,
ConstRecHitPointer
three)
24
// : theRecHits{{one,two,three}},
25
{
26
theRecHits
[0] =
one
;
27
theRecHits
[1] =
two
;
28
theRecHits
[2] = three;
29
theRecHits
[3] =
nullptr
;
30
}
31
32
SeedingHitSet
(
ConstRecHitPointer
one
,
ConstRecHitPointer
two
,
ConstRecHitPointer
three,
ConstRecHitPointer
four) {
33
theRecHits
[0] =
one
;
34
theRecHits
[1] =
two
;
35
theRecHits
[2] = three;
36
theRecHits
[3] = four;
37
}
38
39
ConstRecHitPointer
const
*
data
()
const
{
return
theRecHits
; }
40
41
unsigned
int
size
()
const
{
return
theRecHits
[3] ? 4 : (
theRecHits
[2] ? 3 : (
theRecHits
[1] ? 2 : 0)); }
42
43
ConstRecHitPointer
get
(
unsigned
int
i
)
const
{
return
theRecHits
[
i
]; }
44
ConstRecHitPointer
operator[]
(
unsigned
int
i
)
const
{
return
theRecHits
[
i
]; }
45
46
private
:
47
ConstRecHitPointer
theRecHits
[4];
48
};
49
50
#endif
mps_fire.i
i
Definition:
mps_fire.py:428
SeedingHitSet::SeedingHitSet
SeedingHitSet(ConstRecHitPointer one, ConstRecHitPointer two, ConstRecHitPointer three, ConstRecHitPointer four)
Definition:
SeedingHitSet.h:32
SeedingHitSet::data
ConstRecHitPointer const * data() const
Definition:
SeedingHitSet.h:39
ConstRecHitPointer
TransientTrackingRecHit::ConstRecHitPointer ConstRecHitPointer
Definition:
MillePedeAlignmentAlgorithm.cc:70
SeedingHitSet::ConstRecHitPointer
BaseTrackerRecHit const * ConstRecHitPointer
Definition:
SeedingHitSet.h:10
SeedingHitSet::operator[]
ConstRecHitPointer operator[](unsigned int i) const
Definition:
SeedingHitSet.h:44
SeedingHitSet
Definition:
SeedingHitSet.h:6
SeedingHitSet::nullPtr
static ConstRecHitPointer nullPtr()
Definition:
SeedingHitSet.h:12
SeedingHitSet::SeedingHitSet
SeedingHitSet()
Definition:
SeedingHitSet.h:14
SeedingHitSet::theRecHits
theRecHits[1]
Definition:
SeedingHitSet.h:20
SiPixelPI::one
Definition:
SiPixelPayloadInspectorHelper.h:39
BaseTrackerRecHit.h
BaseTrackerRecHit
Definition:
BaseTrackerRecHit.h:15
SiPixelPI::two
Definition:
SiPixelPayloadInspectorHelper.h:39
SeedingHitSet::size
unsigned int size() const
Definition:
SeedingHitSet.h:41
Generated for CMSSW Reference Manual by
1.8.5