|
| 1 | +// Copyright CERN and copyright holders of ALICE O2. This software is |
| 2 | +// distributed under the terms of the GNU General Public License v3 (GPL |
| 3 | +// Version 3), copied verbatim in the file "COPYING". |
| 4 | +// |
| 5 | +// See http://alice-o2.web.cern.ch/license for full licensing information. |
| 6 | +// |
| 7 | +// In applying this license CERN does not waive the privileges and immunities |
| 8 | +// granted to it by virtue of its status as an Intergovernmental Organization |
| 9 | +// or submit itself to any jurisdiction. |
| 10 | + |
| 11 | +/// \author S+Wenzel - May 2019 |
| 12 | + |
| 13 | +#ifndef ALICEO2_EVENTGEN_GUNPARAM_H_ |
| 14 | +#define ALICEO2_EVENTGEN_GUNPARAM_H_ |
| 15 | + |
| 16 | +#include "SimConfig/ConfigurableParam.h" |
| 17 | +#include "SimConfig/ConfigurableParamHelper.h" |
| 18 | + |
| 19 | +namespace o2 |
| 20 | +{ |
| 21 | +namespace eventgen |
| 22 | +{ |
| 23 | + |
| 24 | +/** |
| 25 | + ** A parameter class/struct holding values for |
| 26 | + ** the box/gun generator. Allows for quick runtime configurability |
| 27 | + ** of particle type, energy, direction, etc. |
| 28 | + **/ |
| 29 | +struct BoxGunParam : public o2::conf::ConfigurableParamHelper<BoxGunParam> { |
| 30 | + int pdg = 13; // which particle (default proton?); could make this an enum |
| 31 | + int number = 10; // how many particles |
| 32 | + double eta[2] = { -1, 1 }; // eta range |
| 33 | + double prange[2] = { 0.1, 5 }; // energy range min, max in GeV |
| 34 | + double phirange[2] = { 0., 360. }; // phi range |
| 35 | + bool debug = false; // whether to print out produced particles |
| 36 | + O2ParamDef(BoxGunParam, "BoxGun"); |
| 37 | +}; |
| 38 | + |
| 39 | +} // end namespace eventgen |
| 40 | +} // end namespace o2 |
| 41 | + |
| 42 | +#endif // ALICEO2_EVENTGEN_INTERACTIONDIAMONDPARAM_H_ |
0 commit comments