Project
Loading...
Searching...
No Matches
TPCLoopersParam.h
Go to the documentation of this file.
1// Copyright 2024-2025 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_TPCLOOPERSPARAM_H_
15#define ALICEO2_EVENTGEN_TPCLOOPERSPARAM_H_
16
19
20namespace o2
21{
22namespace eventgen
23{
24
30struct GenTPCLoopersParam : public o2::conf::ConfigurableParamHelper<GenTPCLoopersParam> {
31 bool loopersVeto = false; // if true, no loopers are generated
32 // Current files are set to custom user CCDB paths, TO BE CHANGED
33 std::string model_pairs = "ccdb://Users/m/mgiacalo/WGAN_ExtGenPair"; // ONNX model for e+e- pair production
34 std::string model_compton = "ccdb://Users/m/mgiacalo/WGAN_ExtGenCompton"; // ONNX model for Compton scattering
35 std::string poisson = "${O2_ROOT}/share/Generators/TPCLoopers/poisson_params.csv"; // file with Poissonian parameters
36 std::string gauss = "${O2_ROOT}/share/Generators/TPCLoopers/gaussian_params.csv"; // file with Gaussian parameters
37 std::string scaler_pair = "${O2_ROOT}/share/Generators/TPCLoopers/ScalerPairParams.json"; // file with scaler parameters for e+e- pair production
38 std::string scaler_compton = "${O2_ROOT}/share/Generators/TPCLoopers/ScalerComptonParams.json"; // file with scaler parameters for Compton scattering
39 std::string nclxrate = "ccdb://Users/m/mgiacalo/ClustersTrackRatio"; // file with clusters/rate information per orbit
40 std::string colsys = "PbPb"; // collision system (PbPb or pp)
41 int intrate = -1; // Automatic IR from collision context if -1, else user-defined interaction rate in Hz
42 bool flat_gas = true; // if true, the gas density is considered flat in the TPC volume
43 unsigned int nFlatGasLoopers = 500; // number of loopers to be generated per event in case of flat gas [currently unused, kept for possible future debug developments]
44 float fraction_pairs = 0.08; // fraction of loopers [currently unused, kept for possible future debug developments]
45 float multiplier[2] = {1., 1.}; // multiplier for pairs and compton loopers for Poissonian and Gaussian sampling
46 unsigned int fixedNLoopers[2] = {1, 1}; // fixed number of loopers coming from pairs and compton electrons - valid if flat gas is false and both Poisson and Gaussian params files are empty
47 float adjust_flatgas = 0.f; // adjustment for the number of flat gas loopers per orbit (in percentage, e.g. -0.1 = -10%) [-1, inf)]
48 O2ParamDef(GenTPCLoopersParam, "GenTPCLoopers");
49};
50
51} // end namespace eventgen
52} // end namespace o2
53
54#endif // ALICEO2_EVENTGEN_TPCLOOPERSPARAM_H_
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
O2ParamDef(GenTPCLoopersParam, "GenTPCLoopers")