ATLAS Offline Software
CscDataPreparator.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_CSCDATAPREPARATOR_H
6 #define TRIGL2MUONSA_CSCDATAPREPARATOR_H
7 
9 #include "GaudiKernel/ServiceHandle.h"
10 #include "GaudiKernel/ToolHandle.h"
11 
12 #include "CscData.h"
13 #include "MuonRoad.h"
16 
17 // --------------------------------------------------------------------------------
18 // --------------------------------------------------------------------------------
19 
20 namespace TrigL2MuonSA {
21 
23  {
24  public:
25 
26  CscDataPreparator(const std::string& type,
27  const std::string& name,
28  const IInterface* parent);
29 
30  virtual StatusCode initialize() override;
31 
32  public:
33 
35  TrigL2MuonSA::CscHits& cscHits) const;
36 
37  void setRoIBasedDataAccess(bool use_RoIBasedDataAccess) {m_use_RoIBasedDataAccess = use_RoIBasedDataAccess;};
38 
39  private:
40 
41  double calc_residual(double aw,
42  double bw,
43  double x,
44  double y) const;
45 
46  double calc_residual_phi(double aw, double bw, double phiw, double hitphi, double hitz) const;
47 
48  private:
49 
50  ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
51 
52  //If we don't do the decoding in the algorithm, we need to read in the cluster container
53  SG::ReadHandleKey<Muon::CscPrepDataContainer> m_cscPrepContainerKey{ this, "CSCPrepDataContainer", "CSC_Clusters", "Name of the CSCContainer to read in"};
54 
56  };
57 
58 } // namespace TrigL2MuonSA
59 
60 #endif
MuonRoad.h
TrigL2MuonSA::CscDataPreparator::calc_residual_phi
double calc_residual_phi(double aw, double bw, double phiw, double hitphi, double hitz) const
Definition: CscDataPreparator.cxx:152
TrigL2MuonSA::CscDataPreparator::CscDataPreparator
CscDataPreparator(const std::string &type, const std::string &name, const IInterface *parent)
Definition: CscDataPreparator.cxx:18
TrigL2MuonSA::CscDataPreparator
Definition: CscDataPreparator.h:23
MuonPrepDataContainer.h
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
TrigL2MuonSA::CscHits
std::vector< CscHitData > CscHits
Definition: CscData.h:40
x
#define x
TrigL2MuonSA::CscDataPreparator::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: CscDataPreparator.h:50
TrigL2MuonSA::MuonRoad
Definition: MuonRoad.h:20
CscData.h
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
TrigL2MuonSA::CscDataPreparator::m_use_RoIBasedDataAccess
bool m_use_RoIBasedDataAccess
Definition: CscDataPreparator.h:55
TrigL2MuonSA::CscDataPreparator::setRoIBasedDataAccess
void setRoIBasedDataAccess(bool use_RoIBasedDataAccess)
Definition: CscDataPreparator.h:37
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
TrigL2MuonSA::CscDataPreparator::calc_residual
double calc_residual(double aw, double bw, double x, double y) const
Definition: CscDataPreparator.cxx:140
y
#define y
TrigL2MuonSA::CscDataPreparator::initialize
virtual StatusCode initialize() override
Definition: CscDataPreparator.cxx:28
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
AthAlgTool
Definition: AthAlgTool.h:26
TrigL2MuonSA::CscDataPreparator::m_cscPrepContainerKey
SG::ReadHandleKey< Muon::CscPrepDataContainer > m_cscPrepContainerKey
Definition: CscDataPreparator.h:53
IMuonIdHelperSvc.h
TrigL2MuonSA
Definition: AlignmentBarrelLUT.h:13
ServiceHandle< Muon::IMuonIdHelperSvc >
TrigL2MuonSA::CscDataPreparator::prepareData
StatusCode prepareData(TrigL2MuonSA::MuonRoad &muonRoad, TrigL2MuonSA::CscHits &cscHits) const
Definition: CscDataPreparator.cxx:41