Project
Loading...
Searching...
No Matches
MathiesonOriginal.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
16
17#ifndef O2_MCH_MATHIESONORIGINAL_H_
18#define O2_MCH_MATHIESONORIGINAL_H_
19
20namespace o2
21{
22namespace mch
23{
24
27{
28 public:
29 MathiesonOriginal() = default;
30 ~MathiesonOriginal() = default;
31
36
38 void setPitch(float pitch) { mInversePitch = (pitch > 0.) ? 1. / pitch : 0.; }
39
40 void setSqrtKx3AndDeriveKx2Kx4(float sqrtKx3);
41 void setSqrtKy3AndDeriveKy2Ky4(float sqrtKy3);
42
43 float integrate(float xMin, float yMin, float xMax, float yMax) const;
44
45 private:
46 float mSqrtKx3 = 0.;
47 float mKx2 = 0.;
48 float mKx4 = 0.;
49 float mSqrtKy3 = 0.;
50 float mKy2 = 0.;
51 float mKy4 = 0.;
52 float mInversePitch = 0.;
53};
54
55} // namespace mch
56} // namespace o2
57
58#endif // O2_MCH_MATHIESONORIGINAL_H_
float & yMax
Original Mathieson function.
MathiesonOriginal(const MathiesonOriginal &cl)=default
MathiesonOriginal(MathiesonOriginal &&)=default
void setSqrtKy3AndDeriveKy2Ky4(float sqrtKy3)
void setSqrtKx3AndDeriveKx2Kx4(float sqrtKx3)
MathiesonOriginal & operator=(MathiesonOriginal &&)=default
float integrate(float xMin, float yMin, float xMax, float yMax) const
void setPitch(float pitch)
set the inverse of the anode-cathode pitch
MathiesonOriginal & operator=(const MathiesonOriginal &cl)=default
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...