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
GenHadron.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file GenHadron.h
1
#ifndef GENHADRON_H
2
#define GENHADRON_H
3
4
#include <stdio.h>
5
#include <iostream>
6
#include <cmath>
7
8
#include <TObject.h>
9
#include <TVector3.h>
10
#include <TRandom3.h>
11
12
using namespace
std;
13
14
class
GenHadron
:
public
TObject
15
{
16
public
:
17
GenHadron
();
18
GenHadron
(
float
,
float
,
float
,
float
);
// simple construct
19
~
GenHadron
();
20
21
float
Pt
();
22
float
Eta
();
23
float
Phi();
24
float
E
();
25
26
void
SetMatchedToRecotkl();
27
bool
IsMatchedToRecotkl();
28
29
private
:
30
float
_pt
;
31
float
_eta
;
32
float
_phi
;
33
float
_en
;
34
bool
_ismatched
;
35
};
36
37
GenHadron::GenHadron
()
38
{
39
_pt
= 0;
40
_eta
= 0;
41
_phi = 0;
42
_en = 0;
43
_ismatched =
false
;
44
}
45
46
GenHadron::GenHadron
(
float
pt
,
float
eta
,
float
phi
,
float
E
)
47
{
48
_pt
=
pt
;
49
_eta
=
eta
;
50
_phi =
phi
;
51
_en =
E
;
52
_ismatched =
false
;
53
}
54
55
GenHadron::~GenHadron
() {}
56
57
float
GenHadron::Pt
() {
return
(
_pt
); }
58
59
float
GenHadron::Eta
() {
return
(
_eta
); }
60
61
float
GenHadron::Phi
() {
return
(_phi); }
62
63
float
GenHadron::E
() {
return
(_en); }
64
65
void
GenHadron::SetMatchedToRecotkl
() { _ismatched =
true
; }
66
67
bool
GenHadron::IsMatchedToRecotkl
() {
return
_ismatched; }
68
69
#endif
analysis
blob
master
dNdEta_Run2023
analysis_INTT
src
GenHadron.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:48
using
1.8.2 with
sPHENIX GitHub integration