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
PHG4ParticleSvtxMap_v1.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PHG4ParticleSvtxMap_v1.h
1
#ifndef TRACKBASEHISTORIC_PHG4PARTICLESVTXMAP_V1_H
2
#define TRACKBASEHISTORIC_PHG4PARTICLESVTXMAP_V1_H
3
4
#include "
PHG4ParticleSvtxMap.h
"
5
6
#include <iostream>
7
8
class
PHG4ParticleSvtxMap_v1
:
public
PHG4ParticleSvtxMap
9
{
10
public
:
11
PHG4ParticleSvtxMap_v1
();
12
PHG4ParticleSvtxMap_v1
(
const
PHG4ParticleSvtxMap_v1
& map);
13
PHG4ParticleSvtxMap_v1
&
operator=
(
const
PHG4ParticleSvtxMap_v1
& map);
14
~PHG4ParticleSvtxMap_v1
()
override
;
15
16
void
identify
(std::ostream&
os
= std::cout)
const override
;
17
int
isValid
()
const override
{
return
1; }
18
PHObject
*
CloneMe
()
const override
{
return
new
PHG4ParticleSvtxMap_v1
(*
this
); }
19
// cppcheck-suppress virtualCallInConstructor
20
void
Reset
()
override
{
clear
();
m_processed
=
false
; }
21
bool
empty
()
const override
{
return
m_map
.empty(); }
22
std::size_t
size
()
const override
{
return
m_map
.size(); }
23
std::size_t
count
(
const
int
key)
const override
{
return
m_map
.count(key); }
24
void
clear
()
override
{
m_map
.clear(); }
25
26
bool
processed
()
const override
{
return
m_processed
; }
27
void
setProcessed
(
const
bool
process
)
override
{
m_processed
=
process
; }
28
29
const
WeightedRecoTrackMap
&
get
(
const
int
key)
const
override
;
30
WeightedRecoTrackMap
&
get
(
const
int
key)
override
31
{
32
return
m_map
[key];
33
}
34
WeightedRecoTrackMap
insert
(
const
int
key,
const
WeightedRecoTrackMap
map)
override
;
35
std::size_t
erase
(
const
int
key)
override
36
{
37
return
m_map
.erase(key);
38
}
39
40
ConstIter
begin
()
const override
{
return
m_map
.begin(); }
41
ConstIter
find
(
const
int
key)
const override
42
{
43
return
m_map
.find(key);
44
}
45
ConstIter
end
()
const override
{
return
m_map
.end(); }
46
47
Iter
begin
()
override
{
return
m_map
.begin(); }
48
Iter
find
(
const
int
key)
override
{
return
m_map
.find(key); }
49
Iter
end
()
override
{
return
m_map
.end(); }
50
51
private
:
52
PHG4ParticleSvtxMap::Map
m_map
;
53
bool
m_processed
=
false
;
54
55
ClassDefOverride
(
PHG4ParticleSvtxMap_v1
, 1);
56
};
57
58
#endif
coresoftware
blob
master
offline
packages
trackbase_historic
PHG4ParticleSvtxMap_v1.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:09
using
1.8.2 with
sPHENIX GitHub integration