You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// 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
+
12
+
#ifndef ALICEO2_TSALLIS_H
13
+
#defineALICEO2_TSALLIS_H
14
+
15
+
namespaceo2
16
+
{
17
+
18
+
namespacemath_utils
19
+
{
20
+
21
+
structTsallis {
22
+
/// Tsallis/Hagedorn function describing charged pt spectra (m s = 62.4 GeV to 13 TeV) as in https://iopscience.iop.org/article/10.1088/2399-6528/aab00f/pdf
/// Random downsampling trigger function using Tsallis/Hagedorn spectra fit (sqrt(s) = 62.4 GeV to 13 TeV) as in https://iopscience.iop.org/article/10.1088/2399-6528/aab00f/pdf
35
+
/// \return flat q/pt trigger
36
+
/// \param pt pat of particle
37
+
/// \param factorPt defines the sampling
38
+
/// \param sqrts centre of mass energy
39
+
/// \param weight weight which is internally calculated
40
+
/// \param rnd random value between (0->1) used to check for sampling
41
+
/// \param mass particles mass (use pion if not known)
/// \return returns integer index for given streamer flag
165
165
staticintgetIndex(const StreamFlags streamFlag);
166
166
167
-
/// Random downsampling trigger function using Tsalis/Hagedorn spectra fit (sqrt(s) = 62.4 GeV to 13 TeV) as in https://iopscience.iop.org/article/10.1088/2399-6528/aab00f/pdf
168
-
/// \return flat q/pt trigger
169
-
/// \param pt pat of particle
170
-
/// \param factorPt defines the sampling
171
-
/// \param sqrts centre of mass energy
172
-
/// \param weight weight which is internally calculated
173
-
/// \param rnd random value between (0->1) used to check for sampling
174
-
/// \param mass particles mass (use pion if not known)
staticfloatgetRandom(float min = 0, float max = 1);
179
169
180
170
private:
181
171
using StreamersPerFlag = tbb::concurrent_unordered_map<size_t, std::unique_ptr<o2::utils::TreeStreamRedirector>>;
182
172
StreamersPerFlag mTreeStreamer; ///< streamer which is used for the debugging
183
-
184
-
/// Tsalis/Hagedorn function describing charged pt spectra (m s = 62.4 GeV to 13 TeV) as in https://iopscience.iop.org/article/10.1088/2399-6528/aab00f/pdf
0 commit comments