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
PHSartreParticleTrigger.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PHSartreParticleTrigger.h
1
#ifndef PHSARTRE_PHSARTREPARTICLETRIGGER_H
2
#define PHSARTRE_PHSARTREPARTICLETRIGGER_H
3
4
#include "
PHSartreGenTrigger.h
"
5
6
#include <string>
7
#include <vector>
// for vector
8
9
class
Event
;
10
11
class
PHSartreParticleTrigger
:
public
PHSartreGenTrigger
12
{
13
public
:
14
PHSartreParticleTrigger
(
const
std::string
&
name
=
"PHSartreParticleTrigger"
);
15
virtual
~PHSartreParticleTrigger
();
16
17
bool
Apply
(
Event
*
event
);
18
19
void
AddParticles
(
const
std::string
&
particles
);
20
void
AddParticles
(
int
particle
);
21
void
AddParticles
(std::vector<int> particles);
22
23
void
SetPtHigh
(
double
pt
);
24
void
SetPtLow
(
double
pt);
25
void
SetPtHighLow
(
double
ptHigh,
double
ptLow);
26
27
void
SetPHigh
(
double
p
);
28
void
SetPLow
(
double
p);
29
void
SetPHighLow
(
double
pHigh,
double
pLow);
30
31
void
SetEtaHigh
(
double
eta
);
32
void
SetEtaLow
(
double
eta);
33
void
SetEtaHighLow
(
double
etaHigh,
double
etaLow);
34
35
void
SetAbsEtaHigh
(
double
eta);
36
void
SetAbsEtaLow
(
double
eta);
37
void
SetAbsEtaHighLow
(
double
etaHigh,
double
etaLow);
38
39
void
SetPzHigh
(
double
pz);
40
void
SetPzLow
(
double
pz);
41
void
SetPzHighLow
(
double
pzHigh,
double
pzLow);
42
43
void
PrintConfig
();
44
45
private
:
46
std::vector<int>
_theParticles
;
47
48
double
_theEtaHigh
,
_theEtaLow
;
49
double
_thePtHigh
,
_thePtLow
;
50
double
_thePHigh
,
_thePLow
;
51
double
_thePzHigh
,
_thePzLow
;
52
53
bool
_doEtaHighCut
,
_doEtaLowCut
,
_doBothEtaCut
;
54
bool
_doAbsEtaHighCut
,
_doAbsEtaLowCut
,
_doBothAbsEtaCut
;
55
bool
_doPtHighCut
,
_doPtLowCut
,
_doBothPtCut
;
56
bool
_doPHighCut
,
_doPLowCut
,
_doBothPCut
;
57
bool
_doPzHighCut
,
_doPzLowCut
,
_doBothPzCut
;
58
};
59
60
#endif
coresoftware
blob
master
generators
PHSartre
PHSartreParticleTrigger.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:04
using
1.8.2 with
sPHENIX GitHub integration