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
RawHitSetContainer.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file RawHitSetContainer.h
1
#ifndef TRACKBASE_RAWHITSETCONTAINER_H
2
#define TRACKBASE_RAWHITSETCONTAINER_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
RawHitSet
;
19
23
class
RawHitSetContainer
:
public
PHObject
24
{
25
public
:
26
27
using
Map
= std::map<TrkrDefs::hitsetkey, RawHitSet *>;
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
~RawHitSetContainer
()
override
=
default
;
35
37
void
Reset
()
override
;
38
40
virtual
ConstIterator
addHitSet
(
RawHitSet
*);
41
42
virtual
ConstIterator
addHitSetSpecifyKey
(
const
TrkrDefs::hitsetkey
,
RawHitSet
*);
43
45
virtual
void
removeHitSet
(
TrkrDefs::hitsetkey
)
46
{}
47
49
virtual
void
removeHitSet
(
RawHitSet
*)
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
RawHitSet
*
findHitSet
(
TrkrDefs::hitsetkey
)
66
{
return
nullptr
; }
67
68
virtual
unsigned
int
size
()
const
69
{
return
0; }
70
71
protected
:
73
RawHitSetContainer
() =
default
;
74
75
private
:
76
77
ClassDefOverride(
RawHitSetContainer
, 1)
78
};
79
80
#endif //TRACKBASE_RAWHITSETCONTAINER_H
coresoftware
blob
master
offline
packages
trackbase
RawHitSetContainer.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:09
using
1.8.2 with
sPHENIX GitHub integration