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
PidInfo.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PidInfo.h
1
#ifndef PIDINFO_H__
2
#define PIDINFO_H__
3
4
#include <
phool/PHObject.h
>
5
#include <
phool/phool.h
>
6
#include <cmath>
// def of NAN
7
#include <vector>
8
#include <map>
9
10
#include <g4hough/SvtxTrackState.h>
11
12
class
PidInfo
:
public
PHObject
{
13
14
public
:
15
16
enum
PID_CANDIDATE
{
ELECTRON
=0,
CHARGEDPION
=1,
CHARGEDKAON
=2,
PROTON
=3};
17
18
virtual
~PidInfo
() {}
19
20
virtual
void
Reset
() {
PHOOL_VIRTUAL_WARNING
; }
21
virtual
int
isValid
()
const
{
PHOOL_VIRTUAL_WARNING
;
return
0; }
22
virtual
void
identify
(std::ostream&
os
=std::cout)
const
{
PHOOL_VIRTUAL_WARNING
; }
23
24
virtual
int
get_track_id
()
const
{
PHOOL_VIRTUAL_WARN
(
"get_track_id()"
);
return
0; }
25
26
virtual
SvtxTrackState
*
get_track_state
()
const
{
PHOOL_VIRTUAL_WARN
(
"get_track_state()"
);
return
0; }
27
28
virtual
float
get_likelihood
(
const
PID_CANDIDATE
candidate) {
PHOOL_VIRTUAL_WARN
(
"get_likelihood(const PID_CANDIDATE)"
);
return
0;};
29
30
virtual
void
set_track_id
(
const
int
id
) {
PHOOL_VIRTUAL_WARN
(
"set_track_id(const int id)"
);}
31
32
virtual
void
set_track_state
(
SvtxTrackState
*
state
) {
PHOOL_VIRTUAL_WARN
(
"set_track_state(const SvtxTrackState* state)"
);}
33
34
virtual
void
set_likelihood
(
const
PID_CANDIDATE
candidate,
const
float
candidate_prob) {
PHOOL_VIRTUAL_WARN
(
"set_likelihood(const PID_CANDIDATE, const float)"
);}
35
36
37
protected
:
38
PidInfo
(
int
id
) {}
// make sure nobody calls ctor of base class
39
40
ClassDef(
PidInfo
,1)
41
42
};
43
44
#endif
/*PIDINFO_H__ */
analysis
blob
master
ParticleID
RICHAnalysis
PidInfo.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:54
using
1.8.2 with
sPHENIX GitHub integration