-
Notifications
You must be signed in to change notification settings - Fork 494
Expand file tree
/
Copy pathTPCReso.h
More file actions
41 lines (34 loc) · 1.14 KB
/
TPCReso.h
File metadata and controls
41 lines (34 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Copyright CERN and copyright holders of ALICE O2. This software is
// distributed under the terms of the GNU General Public License v3 (GPL
// Version 3), copied verbatim in the file "COPYING".
//
// See http://alice-o2.web.cern.ch/license for full licensing information.
//
// In applying this license CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
///
/// \file TPCReso.h
/// \author Nicolo' Jacazio
/// \since 07/08/2020
/// \brief Implementation for the TPC PID response of the BB resolution
///
#ifndef O2_ANALYSIS_PID_TPCRESO_H_
#define O2_ANALYSIS_PID_TPCRESO_H_
#include "PIDBase/ParamBase.h"
namespace o2::pid::tpc
{
class TPCReso : public Parametrization
{
public:
TPCReso() : Parametrization("TPCReso", 2){};
~TPCReso() override = default;
float operator()(const float* x) const override
{
// relative dEdx resolution rel sigma = fRes0*sqrt(1+fResN2/npoint)
return x[0] * mParameters[0] * (x[1] > 0 ? sqrt(1. + mParameters[1] / x[1]) : 1.f);
}
ClassDef(TPCReso, 1);
};
} // namespace o2::pid::tpc
#endif