ATLAS Offline Software
Loading...
Searching...
No Matches
AdaptiveResidualSmoothing.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6// 29.07.2008, AUTHOR: OLIVER KORTNER
7// Modified: 20.03.2009 by O. Kortner, additional method ,,performSmoothing''
8// with better performance than the old method added;
9// softer chi^2 cuts in addResidualsFromSegment.
10//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
11
12#ifndef MuonCalib_AdaptiveResidualSmoothingH
13#define MuonCalib_AdaptiveResidualSmoothingH
14
15//:::::::::::::::::::::::::::::::::::::
16//:: CLASS AdaptiveResidualSmoothing ::
17//:::::::::::::::::::::::::::::::::::::
18
30
31//::::::::::::::::::
32//:: HEADER FILES ::
33//::::::::::::::::::
34
35// STL //
36#include <vector>
37
38// MuonCalib //
43
44namespace MuonCalib {
45
46 class IRtRelation;
47
49 public:
50 // Constructor //
53
54 // Methods //
55 void clear();
57 void addResidual(const double radius, const double residual);
59 bool addResidualsFromSegment(MuonCalibSegment& seg, bool curved, double road_width);
68 RtRelationLookUp performSmoothing(const IRtRelation& rt_rel, unsigned int nb_entries_per_bin, bool fix_t_min, bool fix_t_max);
76 RtRelationLookUp performSmoothing(const IRtRelation& rt_rel, const bool& fix_t_min, const bool& fix_t_max);
82
83 private:
84 std::vector<DataPoint> m_residual_point; // vector of residual points
85 StraightPatRec m_sfitter; // straight-line fitter
86 CurvedPatRec m_cfitter; // curved-line fitter
87 double t_from_r(const IRtRelation& rt_rel, const double r);
88 // get t(r) for the given r-t relationship,
89 // the method is auxiliary and not optimized;
90 // it will disappear when the t(r) will be
91 // available in the MuonCalib framework
92 };
93
94} // namespace MuonCalib
95
96#endif
bool addResidualsFromSegment(MuonCalibSegment &seg, bool curved, double road_width)
reconstruct the given segment and store the residuals; if curved is true a curved segment fit is perf...
void clear()
clear the memory of the class
void addResidual(const double radius, const double residual)
add the residual at the given radius
RtRelationLookUp performSmoothing(const IRtRelation &rt_rel, unsigned int nb_entries_per_bin, bool fix_t_min, bool fix_t_max)
use the stored residuals to improve the given r-t relationship to give smoother residuals; the user h...
double t_from_r(const IRtRelation &rt_rel, const double r)
generic interface for a rt-relation
Definition IRtRelation.h:19
A MuonCalibSegment is a reconstructed three dimensional track segment in the MuonSpectrometer.
Equidistant look up table for rt-relations with the time as key.
int r
Definition globals.cxx:22
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.