Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
TrkrHitSetContainer.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file TrkrHitSetContainer.h
1
#ifndef TRACKBASE_TRKRHITSETCONTAINER_H
2
#define TRACKBASE_TRKRHITSETCONTAINER_H
3
10
#include "
TrkrDefs.h
"
// for hitsetkey, TrkrId
11
12
#include <
phool/PHObject.h
>
13
14
#include <iostream>
// for cout, ostream
15
#include <map>
16
#include <utility>
// for pair
17
18
class
TrkrHitSet
;
19
23
class
TrkrHitSetContainer
:
public
PHObject
24
{
25
public
:
26
27
using
Map
= std::map<TrkrDefs::hitsetkey, TrkrHitSet *>;
28
using
Iterator
= Map::iterator;
29
using
ConstIterator
= Map::const_iterator;
30
using
Range
= std::pair<Iterator, Iterator>;
31
using
ConstRange
= std::pair<ConstIterator, ConstIterator>;
32
34
~TrkrHitSetContainer
()
override
=
default
;
35
37
void
Reset
()
override
;
38
40
virtual
ConstIterator
addHitSet
(
TrkrHitSet
*);
41
42
virtual
ConstIterator
addHitSetSpecifyKey
(
const
TrkrDefs::hitsetkey
,
TrkrHitSet
*);
43
45
virtual
void
removeHitSet
(
TrkrDefs::hitsetkey
)
46
{}
47
49
virtual
void
removeHitSet
(
TrkrHitSet
*)
50
{}
51
53
virtual
Iterator
findOrAddHitSet
(
TrkrDefs::hitsetkey
);
54
56
virtual
ConstRange
getHitSets
(
const
TrkrDefs::TrkrId
)
const
;
57
59
virtual
ConstRange
getHitSets
(
const
TrkrDefs::TrkrId
trackerid,
const
uint8_t
layer
)
const
;
60
62
virtual
ConstRange
getHitSets
()
const
;
63
65
virtual
TrkrHitSet
*
findHitSet
(
TrkrDefs::hitsetkey
)
66
{
return
nullptr
; }
67
68
virtual
unsigned
int
size
()
const
69
{
return
0; }
70
71
protected
:
73
TrkrHitSetContainer
() =
default
;
74
75
private
:
76
77
ClassDefOverride(
TrkrHitSetContainer
, 1)
78
};
79
80
#endif //TRACKBASE_TRKRHITSETCONTAINER_H
coresoftware
blob
master
offline
packages
trackbase
TrkrHitSetContainer.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:09
using
1.8.2 with
sPHENIX GitHub integration