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
g4evalfn.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file g4evalfn.h
1
#ifndef G4EVALFN__H
2
#define G4EVALFN__H
3
4
#include "
TrkrClusLoc.h
"
5
6
class
TrkrClusterIsMatcher
;
7
class
EmbRecoMatchContainer
;
8
class
SvtxTrackMap
;
9
10
namespace
g4evalfn {
11
12
enum
DET
{
MVTX
=0,
INTT
=1,
TPC
=2,
TPOT
=3 };
//
13
14
int
trklayer_det
(
TrkrDefs::hitsetkey
);
// 0:MVTX 1:INTt 2:TPC 3:TPOT and beyond
15
int
trklayer_det
(
TrkrDefs::cluskey
);
16
int
trklayer_det
(
int
layer
);
17
18
TrkrClusLoc
clusloc_PHG4
(
TrkrClusterIsMatcher
*,
TrkrDefs::cluskey
);
19
TrkrClusLoc
clusloc_SVTX
(
TrkrClusterIsMatcher
*,
TrkrDefs::cluskey
);
20
21
inline
float
abs_dphi
(
float
aphi,
float
bphi) {
22
float
phi_delta = fabs(aphi-bphi);
23
while
(phi_delta > M_PI) phi_delta = fabs(phi_delta-2*M_PI);
24
return
phi_delta;
25
}
26
27
std::vector<int>
unmatchedSvtxTrkIds
(
EmbRecoMatchContainer
*,
SvtxTrackMap
*);
28
29
float
calc_match_statistic
(
TrkrClusterIsMatcher
* ismatcher,
TrkrDefs::cluskey
key_A,
TrkrDefs::cluskey
key_B);
30
}
31
32
#endif
coresoftware
blob
master
simulation
g4simulation
g4eval
g4evalfn.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:13
using
1.8.2 with
sPHENIX GitHub integration