ATLAS Offline Software
CalibCscStripFitter.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef CalibCscStripFitter_H
6 #define CalibCscStripFitter_H
7 
8 // David Adams
9 // April 2007
10 //
11 // Strip fitter using the parabolic fit fron the CSC calibration tool.
12 
13 #include <string>
14 #include <vector>
15 
19 #include "GaudiKernel/ServiceHandle.h"
20 #include "GaudiKernel/ToolHandle.h"
22 
23 class CalibCscStripFitter : virtual public ICscStripFitter, public AthAlgTool {
24 public: // Ctors and dtor.
25  enum NoiseOption { rms = 0, sigma, f001 };
26 
27  CalibCscStripFitter(const std::string&, const std::string&, const IInterface*);
28 
29  ~CalibCscStripFitter() = default;
30 
31 public: // AlgTool methods
33 
34 public: // Interface methods
35  // Tell compiler not to hide other fit methods.
37 
38  // Fit a list of sample charges using the calibration tool.
39  // If that fit fails, the peak channel is used.
40  // Result fit(const ChargeList& charges, double samplingTime, IdentifierHash& stripHashId ) const;
41  // Result fit(const ChargeList& charges, double samplingTime, Identifier& stripId ) const;
42  Result fit(const ChargeList& ChargeList, double samplingTime, bool samplingPhase, Identifier& sid) const;
43 
44 private: // data
45  // Job options.
46  // double m_qerr; // Charge error for a successful fit.
47  double m_terr; // Time error for a succcessful fit.
48  // double m_qerr_fail; // Charge error for a failed fit.
49  double m_terr_fail; // Time error for a failed fit.
50  double m_qerrprop; // Charge calibration error
51  bool m_doCorrection; // Correction for para to bipolar
52  double m_chargeErrorScaler; // Charge error scaler
53 
54  std::string m_noiseOptionStr;
56 
58  this,
59  "MuonIdHelperSvc",
60  "Muon::MuonIdHelperSvc/MuonIdHelperSvc",
61  };
62 
63  ToolHandle<ICscCalibTool> m_cscCalibTool{
64  this,
65  "cscCalibTool",
66  "CscCalibTool/CscCalibTool",
67  };
68 };
69 
70 #endif
CalibCscStripFitter::m_cscCalibTool
ToolHandle< ICscCalibTool > m_cscCalibTool
Definition: CalibCscStripFitter.h:63
CalibCscStripFitter::m_terr_fail
double m_terr_fail
Definition: CalibCscStripFitter.h:49
CalibCscStripFitter::m_qerrprop
double m_qerrprop
Definition: CalibCscStripFitter.h:50
ICscStripFitter::fit
virtual Result fit(const ChargeList &ChargeList, double samplingTime, bool samplingPhase, Identifier &sid) const
Definition: ICscStripFitter.cxx:16
ICscCalibTool.h
CalibCscStripFitter::sigma
@ sigma
Definition: CalibCscStripFitter.h:25
CalibCscStripFitter::NoiseOption
NoiseOption
Definition: CalibCscStripFitter.h:25
CalibCscStripFitter::m_chargeErrorScaler
double m_chargeErrorScaler
Definition: CalibCscStripFitter.h:52
CalibCscStripFitter::m_doCorrection
bool m_doCorrection
Definition: CalibCscStripFitter.h:51
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ICscStripFitter
Definition: ICscStripFitter.h:19
AthAlgTool.h
CalibCscStripFitter::m_terr
double m_terr
Definition: CalibCscStripFitter.h:47
ICscStripFitter::Result
Definition: ICscStripFitter.h:25
ICscStripFitter::ChargeList
std::vector< float > ChargeList
Definition: ICscStripFitter.h:55
CalibCscStripFitter::rms
@ rms
Definition: CalibCscStripFitter.h:25
CalibCscStripFitter::m_noiseOption
NoiseOption m_noiseOption
Definition: CalibCscStripFitter.h:55
CalibCscStripFitter::initialize
StatusCode initialize()
Definition: CalibCscStripFitter.cxx:31
CalibCscStripFitter::m_noiseOptionStr
std::string m_noiseOptionStr
Definition: CalibCscStripFitter.h:54
CalibCscStripFitter::f001
@ f001
Definition: CalibCscStripFitter.h:25
CalibCscStripFitter::~CalibCscStripFitter
~CalibCscStripFitter()=default
ICscStripFitter.h
CalibCscStripFitter
Definition: CalibCscStripFitter.h:23
CalibCscStripFitter::fit
Result fit(const ChargeList &ChargeList, double samplingTime, bool samplingPhase, Identifier &sid) const
Definition: CalibCscStripFitter.cxx:65
AthAlgTool
Definition: AthAlgTool.h:26
CalibCscStripFitter::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: CalibCscStripFitter.h:57
IMuonIdHelperSvc.h
ServiceHandle< Muon::IMuonIdHelperSvc >
CalibCscStripFitter::CalibCscStripFitter
CalibCscStripFitter(const std::string &, const std::string &, const IInterface *)
Definition: CalibCscStripFitter.cxx:18
Identifier
Definition: IdentifierFieldParser.cxx:14