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
TrackSeedTrackMapConverter.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file TrackSeedTrackMapConverter.h
1
2
#ifndef TRACKSEEDTRACKMAPCONVERTER_H
3
#define TRACKSEEDTRACKMAPCONVERTER_H
4
5
#include <
fun4all/SubsysReco.h
>
6
7
#include <memory>
8
#include <string>
9
10
class
PHCompositeNode
;
11
class
SvtxTrackMap
;
12
class
SvtxTrack_v4
;
13
class
TrackSeed
;
14
class
TrackSeedContainer
;
15
class
ActsGeometry
;
16
class
TrkrClusterContainer
;
17
18
class
TrackSeedTrackMapConverter
:
public
SubsysReco
19
{
20
public
:
21
TrackSeedTrackMapConverter
(
const
std::string
&
name
=
"TrackSeedTrackMapConverter"
);
22
23
virtual
~TrackSeedTrackMapConverter
();
24
25
int
InitRun
(
PHCompositeNode
*topNode)
override
;
26
int
process_event
(
PHCompositeNode
*topNode)
override
;
27
int
End
(
PHCompositeNode
*topNode)
override
;
28
29
void
setFieldMap
(
const
std::string
&
name
) {
m_fieldMap
=
name
; }
30
void
setTrackMapName
(
const
std::string
&
name
) {
m_trackMapName
=
name
; }
31
void
setTrackSeedName
(
const
std::string
&
name
) {
m_trackSeedName
=
name
; }
32
void
cosmics
() {
m_cosmics
=
true
; }
33
34
private
:
35
int
getNodes
(
PHCompositeNode
*topNode);
36
37
void
addKeys
(std::unique_ptr<SvtxTrack_v4> &track,
TrackSeed
*
seed
);
38
void
addKeys
(
TrackSeed
*seedToAddTo,
TrackSeed
*seedToAdd);
39
std::pair<int, float>
getCosmicCharge
(
TrackSeed
*
seed
,
float
vertexradius)
const
;
40
41
std::string
m_trackMapName
=
"SvtxTrackMap"
;
42
std::string
m_trackSeedName
=
"TpcTrackSeedContainer"
;
43
44
bool
m_cosmics
=
false
;
45
SvtxTrackMap
*
m_trackMap
=
nullptr
;
46
TrackSeedContainer
*
m_seedContainer
=
nullptr
;
47
TrackSeedContainer
*
m_tpcContainer
=
nullptr
;
48
TrackSeedContainer
*
m_siContainer
=
nullptr
;
49
std::string
m_fieldMap
=
""
;
50
TrkrClusterContainer
*
m_clusters
=
nullptr
;
51
ActsGeometry
*
m_tGeometry
=
nullptr
;
52
};
53
54
#endif // TRACKSEEDTRACKMAPCONVERTER_H
coresoftware
blob
master
offline
packages
TrackingDiagnostics
TrackSeedTrackMapConverter.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:10
using
1.8.2 with
sPHENIX GitHub integration