Project
Loading...
Searching...
No Matches
BoxGunParam.h
Go to the documentation of this file.
1
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3
// All rights not expressly granted are reserved.
4
//
5
// This software is distributed under the terms of the GNU General Public
6
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7
//
8
// In applying this license CERN does not waive the privileges and immunities
9
// granted to it by virtue of its status as an Intergovernmental Organization
10
// or submit itself to any jurisdiction.
11
13
14
#ifndef ALICEO2_EVENTGEN_GUNPARAM_H_
15
#define ALICEO2_EVENTGEN_GUNPARAM_H_
16
17
#include "
CommonUtils/ConfigurableParam.h
"
18
#include "
CommonUtils/ConfigurableParamHelper.h
"
19
20
namespace
o2
21
{
22
namespace
eventgen
23
{
24
30
struct
BoxGunParam
:
public
o2::conf::ConfigurableParamHelper
<BoxGunParam> {
31
int
pdg
= 211;
// which particle (default pion); could make this an enum
32
int
number
= 10;
// how many particles
33
double
eta
[2] = {-1, 1};
// eta range
34
double
prange
[2] = {0.1, 5};
// energy range min, max in GeV
35
double
phirange
[2] = {0., 360.};
// phi range
36
bool
debug
=
false
;
// whether to print out produced particles
37
O2ParamDef
(
BoxGunParam
,
"BoxGun"
);
38
};
39
40
struct
BoxGenConfig
{
41
int
pdg
= 211;
// which particle (default pion); could make this an enum
42
int
number
= 10;
// how many particles
43
double
eta
[2] = {-1, 1};
// eta range
44
double
prange
[2] = {0.1, 5};
// energy range min, max in GeV
45
double
phirange
[2] = {0., 360.};
// phi range
46
};
47
48
}
// end namespace eventgen
49
}
// end namespace o2
50
51
#endif
// ALICEO2_EVENTGEN_INTERACTIONDIAMONDPARAM_H_
ConfigurableParamHelper.h
ConfigurableParam.h
o2::conf::ConfigurableParamHelper
Definition
ConfigurableParamHelper.h:78
o2
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Definition
BitstreamReader.h:24
o2::eventgen::BoxGenConfig
Definition
BoxGunParam.h:40
o2::eventgen::BoxGenConfig::eta
double eta[2]
Definition
BoxGunParam.h:43
o2::eventgen::BoxGenConfig::prange
double prange[2]
Definition
BoxGunParam.h:44
o2::eventgen::BoxGenConfig::pdg
int pdg
Definition
BoxGunParam.h:41
o2::eventgen::BoxGenConfig::phirange
double phirange[2]
Definition
BoxGunParam.h:45
o2::eventgen::BoxGenConfig::number
int number
Definition
BoxGunParam.h:42
o2::eventgen::BoxGunParam
Definition
BoxGunParam.h:30
o2::eventgen::BoxGunParam::number
int number
Definition
BoxGunParam.h:32
o2::eventgen::BoxGunParam::debug
bool debug
Definition
BoxGunParam.h:36
o2::eventgen::BoxGunParam::pdg
int pdg
Definition
BoxGunParam.h:31
o2::eventgen::BoxGunParam::eta
double eta[2]
Definition
BoxGunParam.h:33
o2::eventgen::BoxGunParam::O2ParamDef
O2ParamDef(BoxGunParam, "BoxGun")
o2::eventgen::BoxGunParam::phirange
double phirange[2]
Definition
BoxGunParam.h:35
o2::eventgen::BoxGunParam::prange
double prange[2]
Definition
BoxGunParam.h:34
Generators
include
Generators
BoxGunParam.h
Generated on Tue Feb 25 2025 23:16:43 for Project by
1.9.8