Project
Loading...
Searching...
No Matches
Smoother.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
20#include "ITStracking/ROframe.h"
21
22namespace o2
23{
24namespace its
25{
26
27template <unsigned int D>
29{
30 public:
31 Smoother(TrackITSExt& track, size_t layer, const ROframe& event, float bZ, o2::base::PropagatorF::MatCorrType corr);
33
34 bool isValidInit() const
35 {
36 return mInitStatus;
37 }
38 bool testCluster(const int clusterId, const ROframe& event);
40 float getChi2() const { return mBestChi2; }
41 float getLastChi2() const { return mLastChi2; }
42
43 private:
44 float computeSmoothedPredictedChi2(const o2::track::TrackParCov& outwTrack,
45 const o2::track::TrackParCov& inwTrack,
46 const std::array<float, 2>& cls,
47 const std::array<float, 3>& clCov);
48 bool smoothTrack();
49
50 private:
51 size_t mLayerToSmooth; // Layer to compute smoothing optimization
52 float mBz; // Magnetic field along Z
53 bool mInitStatus; // State after the initialization
54 o2::base::PropagatorF::MatCorrType mCorr; // Type of correction to use
55 TrackITSExt mInwardsTrack; // outwards track: from innermost cluster to outermost
56 TrackITSExt mOutwardsTrack; // inwards track: from outermost cluster to innermost
57 float mBestChi2; // Best value of local smoothed chi2
58 float mLastChi2 = 1e8; // Latest computed chi2
59};
60} // namespace its
61} // namespace o2
Base track model for the Barrel, params only, w/o covariance.
Definition of the ITS track.
float getChi2() const
Definition Smoother.h:40
bool testCluster(const int clusterId, const ROframe &event)
Definition Smoother.cxx:177
float getLastChi2() const
Definition Smoother.h:41
bool isValidInit() const
Definition Smoother.h:34
struct _cl_event * event
Definition glcorearb.h:2982
GLenum GLuint GLint GLint layer
Definition glcorearb.h:1310
TrackParCovF TrackParCov
Definition Track.h:33
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...