ATLAS Offline Software
SagittaRadiusEstimate.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TRIGL2MUONSA_SAGITTARADIUSESTIMATE_H
6 #define TRIGL2MUONSA_SAGITTARADIUSESTIMATE_H
7 
9 
10 #include "GaudiKernel/ServiceHandle.h"
11 
13 
14 #include "RpcFitResult.h"
15 #include "TrackData.h"
16 
17 #include "AlignmentBarrelLUTSvc.h"
18 #include "AlignmentBarrelLUT.h"
19 
20 namespace TrigL2MuonSA {
21 
23 {
24  public:
25 
26  SagittaRadiusEstimate(const std::string& type,
27  const std::string& name,
28  const IInterface* parent);
29 
30  void setMCFlag(const BooleanProperty& use_mcLUT,
31  const AlignmentBarrelLUTSvc* alignmentBarrelLUTSvc);
32 
33  void setUseEndcapInner( BooleanProperty use_endcapInner ){ m_use_endcapInner = use_endcapInner; };
34 
35  public:
36 
38  TrigL2MuonSA::RpcFitResult& rpcFitResult,
39  TrigL2MuonSA::TrackPattern& trackPattern) const;
40 
41  private:
42 
43  BooleanProperty m_use_mcLUT{0};
44 
45  BooleanProperty m_use_endcapInner{0};
46 
47  const ToolHandle<AlignmentBarrelLUT>* m_alignmentBarrelLUT = nullptr;
48 
49  float f(float x, float c0, float c1, float c2, float c3) const;
50  float fp(float x, float c33, float c22, float c1) const;
51 };
52 
53 
54  inline float TrigL2MuonSA::SagittaRadiusEstimate::f(float x, float c0, float c1, float c2, float c3) const
55  {
56  return c0 + x * (c1 + x * (c2 + x * c3));
57  }
58 
59  inline float TrigL2MuonSA::SagittaRadiusEstimate::fp(float x, float c33, float c22, float c1) const
60  {
61  return c1 + x * (c22 + x * c33);
62  }
63 
64 } // namespace TrigL2MuonSA
65 
66 #endif // SAGITTARADIUSESTIMATE_H
TrigL2MuonSA::SagittaRadiusEstimate::m_alignmentBarrelLUT
const ToolHandle< AlignmentBarrelLUT > * m_alignmentBarrelLUT
Definition: SagittaRadiusEstimate.h:47
TrigL2MuonSA::SagittaRadiusEstimate::SagittaRadiusEstimate
SagittaRadiusEstimate(const std::string &type, const std::string &name, const IInterface *parent)
Definition: SagittaRadiusEstimate.cxx:17
TrigL2MuonSA::RpcFitResult
Definition: RpcFitResult.h:14
TrigL2MuonSA::SagittaRadiusEstimate
Definition: SagittaRadiusEstimate.h:23
extractSporadic.c1
c1
Definition: extractSporadic.py:134
TrigRoiDescriptor
nope - should be used for standalone also, perhaps need to protect the class def bits #ifndef XAOD_AN...
Definition: TrigRoiDescriptor.h:56
TrackData.h
x
#define x
AlignmentBarrelLUTSvc.h
TrigL2MuonSA::TrackPattern
Definition: TrackData.h:16
hotSpotInTAG.c0
c0
Definition: hotSpotInTAG.py:192
TrigL2MuonSA::AlignmentBarrelLUTSvc
Definition: AlignmentBarrelLUTSvc.h:18
python.DataFormatRates.c3
c3
Definition: DataFormatRates.py:127
TrigL2MuonSA::SagittaRadiusEstimate::setUseEndcapInner
void setUseEndcapInner(BooleanProperty use_endcapInner)
Definition: SagittaRadiusEstimate.h:33
TrigL2MuonSA::SagittaRadiusEstimate::setSagittaRadius
StatusCode setSagittaRadius(const TrigRoiDescriptor *p_roids, TrigL2MuonSA::RpcFitResult &rpcFitResult, TrigL2MuonSA::TrackPattern &trackPattern) const
Definition: SagittaRadiusEstimate.cxx:37
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
RpcFitResult.h
AlignmentBarrelLUT.h
TrigL2MuonSA::SagittaRadiusEstimate::f
float f(float x, float c0, float c1, float c2, float c3) const
Definition: SagittaRadiusEstimate.h:54
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
python.DataFormatRates.c2
c2
Definition: DataFormatRates.py:123
TrigL2MuonSA::SagittaRadiusEstimate::setMCFlag
void setMCFlag(const BooleanProperty &use_mcLUT, const AlignmentBarrelLUTSvc *alignmentBarrelLUTSvc)
Definition: SagittaRadiusEstimate.cxx:27
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
TrigL2MuonSA::SagittaRadiusEstimate::m_use_endcapInner
BooleanProperty m_use_endcapInner
Definition: SagittaRadiusEstimate.h:45
TrigRoiDescriptor.h
TrigL2MuonSA::SagittaRadiusEstimate::fp
float fp(float x, float c33, float c22, float c1) const
Definition: SagittaRadiusEstimate.h:59
AthAlgTool
Definition: AthAlgTool.h:26
TrigL2MuonSA::SagittaRadiusEstimate::m_use_mcLUT
BooleanProperty m_use_mcLUT
Definition: SagittaRadiusEstimate.h:43
TrigL2MuonSA
Definition: AlignmentBarrelLUT.h:13