ATLAS Offline Software
CaruanaSTgcClusterBuilderTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef CaruanaSTgcClusterBuilderTool_h
6 #define CaruanaSTgcClusterBuilderTool_h
7 
10 #include "GaudiKernel/ServiceHandle.h"
16 
17 #include <vector>
18 #include <string>
19 #include <set>
20 
21 //
22 // Simple clusterization tool for STgc
23 //
24 namespace Muon
25 {
26 
27  class ISTgcClusterBuilderTool;
28 
30 
31  public:
32 
34  CaruanaSTgcClusterBuilderTool(const std::string&, const std::string&, const IInterface*);
35 
37  virtual ~CaruanaSTgcClusterBuilderTool()=default;
38 
40  virtual StatusCode initialize();
41 
42  StatusCode getClusters(const EventContext& ctx,
43  std::vector<Muon::sTgcPrepData>&& stripsVect,
44  std::vector<std::unique_ptr<Muon::sTgcPrepData>>& clustersVect)const;
45 
46  private:
47 
48  Gaudi::Property<double> m_chargeCut{this, "ChargeCut", 0.};
49  Gaudi::Property<unsigned int> m_maxHoleSize{this, "maxHoleSize", 0};
50  // The resolution parameters were obtained from tests with cosmic muons.
51  // These values are also used in the Digitization.
52  Gaudi::Property<double> m_positionStripResolution{this,"positionStripResolution", 0.0949};
53  Gaudi::Property<double> m_angularStripResolution{this, "angularStripResolution", 0.305};
54 
55  ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
56  SG::ReadCondHandleKey<MuonGM::MuonDetectorManager> m_DetectorManagerKey {this, "DetectorManagerKey", "MuonDetectorManager", "Key of input MuonDetectorManager condition data"};
57 
58  SG::ReadCondHandleKey<NswErrorCalibData> m_uncertCalibKey{this, "ErrorCalibKey", "NswUncertData",
59  "Key of the parametrized NSW uncertainties"};
60 
62  void dumpStrips( std::vector<Muon::sTgcPrepData>& stripsVect,
63  std::vector<Muon::sTgcPrepData*>& clustersVect )const;
64 
65  };
66 }
67 #endif
Muon::CaruanaSTgcClusterBuilderTool::CaruanaSTgcClusterBuilderTool
CaruanaSTgcClusterBuilderTool(const std::string &, const std::string &, const IInterface *)
Default constructor.
Definition: CaruanaSTgcClusterBuilderTool.cxx:14
Muon::CaruanaSTgcClusterBuilderTool::dumpStrips
void dumpStrips(std::vector< Muon::sTgcPrepData > &stripsVect, std::vector< Muon::sTgcPrepData * > &clustersVect) const
private functions
Definition: CaruanaSTgcClusterBuilderTool.cxx:166
Muon::CaruanaSTgcClusterBuilderTool::~CaruanaSTgcClusterBuilderTool
virtual ~CaruanaSTgcClusterBuilderTool()=default
Default destructor.
Muon
This class provides conversion from CSC RDO data to CSC Digits.
Definition: TrackSystemController.h:49
Muon::CaruanaSTgcClusterBuilderTool::m_chargeCut
Gaudi::Property< double > m_chargeCut
Definition: CaruanaSTgcClusterBuilderTool.h:48
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
NswErrorCalibData.h
Muon::ISTgcClusterBuilderTool
Definition: ISTgcClusterBuilderTool.h:19
Muon::CaruanaSTgcClusterBuilderTool::m_DetectorManagerKey
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager > m_DetectorManagerKey
Definition: CaruanaSTgcClusterBuilderTool.h:56
Muon::CaruanaSTgcClusterBuilderTool::initialize
virtual StatusCode initialize()
standard initialize method
Definition: CaruanaSTgcClusterBuilderTool.cxx:19
Muon::CaruanaSTgcClusterBuilderTool::m_angularStripResolution
Gaudi::Property< double > m_angularStripResolution
Definition: CaruanaSTgcClusterBuilderTool.h:53
Muon::CaruanaSTgcClusterBuilderTool::getClusters
StatusCode getClusters(const EventContext &ctx, std::vector< Muon::sTgcPrepData > &&stripsVect, std::vector< std::unique_ptr< Muon::sTgcPrepData >> &clustersVect) const
Definition: CaruanaSTgcClusterBuilderTool.cxx:30
ReadCondHandleKey.h
Muon::CaruanaSTgcClusterBuilderTool::m_positionStripResolution
Gaudi::Property< double > m_positionStripResolution
Definition: CaruanaSTgcClusterBuilderTool.h:52
MuonDetectorManager.h
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager >
Muon::CaruanaSTgcClusterBuilderTool::m_maxHoleSize
Gaudi::Property< unsigned int > m_maxHoleSize
Definition: CaruanaSTgcClusterBuilderTool.h:49
ISTgcClusterBuilderTool.h
Muon::CaruanaSTgcClusterBuilderTool::m_uncertCalibKey
SG::ReadCondHandleKey< NswErrorCalibData > m_uncertCalibKey
Definition: CaruanaSTgcClusterBuilderTool.h:58
AthAlgTool
Definition: AthAlgTool.h:26
IMuonIdHelperSvc.h
Muon::CaruanaSTgcClusterBuilderTool
Definition: CaruanaSTgcClusterBuilderTool.h:29
Muon::CaruanaSTgcClusterBuilderTool::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: CaruanaSTgcClusterBuilderTool.h:55
ServiceHandle< Muon::IMuonIdHelperSvc >