EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
TrkrHitSet.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file TrkrHitSet.h
1
#ifndef TRACKBASE_TRKRHITSET_H
2
#define TRACKBASE_TRKRHITSET_H
3
10
#include "
TrkrDefs.h
"
11
12
#include <
phool/PHObject.h
>
13
14
#include <iostream>
15
#include <map>
16
#include <utility>
// for pair
17
19
class
TrkrHit
;
20
29
class
TrkrHitSet
:
public
PHObject
30
{
31
public
:
32
// iterator typedef
33
using
Map
= std::map<TrkrDefs::hitkey, TrkrHit*>;
34
using
ConstIterator
= Map::const_iterator;
35
using
ConstRange
= std::pair<ConstIterator, ConstIterator>;
36
38
void
identify
(std::ostream&
/*os*/
= std::cout)
const override
39
{
40
}
41
42
void
Reset
()
override
43
{
44
}
45
50
virtual
void
setHitSetKey
(
const
TrkrDefs::hitsetkey
)
51
{
52
}
53
58
virtual
TrkrDefs::hitsetkey
getHitSetKey
()
const
59
{
60
return
TrkrDefs::HITSETKEYMAX;
61
}
62
71
virtual
ConstIterator
addHitSpecificKey
(
const
TrkrDefs::hitkey
,
TrkrHit
*);
72
77
virtual
void
removeHit
(
TrkrDefs::hitkey
)
78
{
79
}
80
88
virtual
TrkrHit
*
getHit
(
const
TrkrDefs::hitkey
)
const
89
{
90
return
nullptr
;
91
}
92
97
virtual
ConstRange
getHits
()
const
;
98
103
// Get number of hits
104
virtual
unsigned
int
size
()
const
105
{
106
return
0;
107
}
108
109
protected
:
110
112
TrkrHitSet
() =
default
;
113
114
private
:
115
ClassDefOverride
(
TrkrHitSet
, 1);
116
};
117
118
#endif //TRACKBASE_TRKRHITSET_H
fun4all_coresoftware
blob
master
offline
packages
trackbase
TrkrHitSet.h
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:46
using
1.8.2 with
EIC GitHub integration