forked from AliceO2Group/AliceO2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPropagator.h
More file actions
82 lines (66 loc) · 2.62 KB
/
Copy pathPropagator.h
File metadata and controls
82 lines (66 loc) · 2.62 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
// 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 Propagator
/// \brief Singleton class for track propagation routines
/// \author ruben.shahoyan@cern.ch
#ifndef ALICEO2_BASE_PROPAGATOR_
#define ALICEO2_BASE_PROPAGATOR_
#include <string>
#include "CommonConstants/PhysicsConstants.h"
#include "ReconstructionDataFormats/Track.h"
#include "ReconstructionDataFormats/TrackLTIntegral.h"
#include "MathUtils/Cartesian3D.h"
namespace o2
{
namespace parameters
{
class GRPObject;
}
namespace field
{
class MagFieldFast;
}
namespace base
{
class Propagator
{
public:
static Propagator* Instance()
{
static Propagator instance;
return &instance;
}
bool PropagateToXBxByBz(o2::track::TrackParCov& track, float x, float mass = o2::constants::physics::MassPionCharged,
float maxSnp = 0.85, float maxStep = 2.0, int matCorr = 1,
o2::track::TrackLTIntegral* tofInfo = nullptr, int signCorr = 0);
bool propagateToX(o2::track::TrackParCov& track, float x, float bZ, float mass = o2::constants::physics::MassPionCharged,
float maxSnp = 0.85, float maxStep = 2.0, int matCorr = 1,
o2::track::TrackLTIntegral* tofInfo = nullptr, int signCorr = 0);
bool propagateToDCA(const Point3D<float>& vtx, o2::track::TrackParCov& track, float bZ,
float mass = o2::constants::physics::MassPionCharged, float maxStep = 2.0, int matCorr = 1,
o2::track::TrackLTIntegral* tofInfo = nullptr, int signCorr = 0, float maxD = 999.f);
Propagator(Propagator const&) = delete;
Propagator(Propagator&&) = delete;
Propagator& operator=(Propagator const&) = delete;
Propagator& operator=(Propagator&&) = delete;
// Bz at the origin
float getNominalBz() const { return mBz; }
static int initFieldFromGRP(const o2::parameters::GRPObject* grp);
static int initFieldFromGRP(const std::string grpFileName, std::string grpName = "GRP");
private:
Propagator();
~Propagator() = default;
const o2::field::MagFieldFast* mField = nullptr; ///< External fast field (barrel only for the moment)
float mBz = 0; // nominal field
ClassDef(Propagator, 0);
};
}
}
#endif