ATLAS Offline Software
SimpleSTgcClusterBuilderTool.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 SimpleSTgcClusterBuilderTool_h
6 #define SimpleSTgcClusterBuilderTool_h
7 
10 #include "GaudiKernel/ServiceHandle.h"
12 
15 
16 #include <vector>
17 #include <string>
18 
19 //
20 // Simple clusterization tool for STgc
21 //
22 namespace Muon
23 {
24 
25  class ISTgcClusterBuilderTool;
26 
28 
29  public:
30 
32  SimpleSTgcClusterBuilderTool(const std::string&, const std::string&, const IInterface*);
33 
35  virtual ~SimpleSTgcClusterBuilderTool()=default;
36 
38  virtual StatusCode initialize() override;
39 
40  StatusCode getClusters(const EventContext& ctx,
41  std::vector<Muon::sTgcPrepData>&& stripsVect,
42  std::vector<std::unique_ptr<Muon::sTgcPrepData>>& clustersVect) const override;
43 
44  private:
45 
46  Gaudi::Property<double> m_chargeCut{this, "ChargeCut", 0.};
47  Gaudi::Property<unsigned int> m_maxHoleSize{this, "maxHoleSize", 0};
48 
49  ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
50 
51  SG::ReadCondHandleKey<NswErrorCalibData> m_uncertCalibKey{this, "ErrorCalibKey", "NswUncertData",
52  "Key of the parametrized NSW uncertainties"};
53 
55  void dumpStrips( std::vector<Muon::sTgcPrepData>& stripsVect,
56  std::vector<Muon::sTgcPrepData*>& clustersVect )const;
57  };
58 }
59 #endif
60 
Muon::SimpleSTgcClusterBuilderTool::m_chargeCut
Gaudi::Property< double > m_chargeCut
Definition: SimpleSTgcClusterBuilderTool.h:46
Muon
This class provides conversion from CSC RDO data to CSC Digits.
Definition: TrackSystemController.h:49
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::SimpleSTgcClusterBuilderTool
Definition: SimpleSTgcClusterBuilderTool.h:27
Muon::SimpleSTgcClusterBuilderTool::dumpStrips
void dumpStrips(std::vector< Muon::sTgcPrepData > &stripsVect, std::vector< Muon::sTgcPrepData * > &clustersVect) const
private functions
Definition: SimpleSTgcClusterBuilderTool.cxx:127
Muon::SimpleSTgcClusterBuilderTool::SimpleSTgcClusterBuilderTool
SimpleSTgcClusterBuilderTool(const std::string &, const std::string &, const IInterface *)
Default constructor.
Definition: SimpleSTgcClusterBuilderTool.cxx:15
ReadCondHandleKey.h
Muon::SimpleSTgcClusterBuilderTool::~SimpleSTgcClusterBuilderTool
virtual ~SimpleSTgcClusterBuilderTool()=default
Default destructor.
Muon::SimpleSTgcClusterBuilderTool::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: SimpleSTgcClusterBuilderTool.h:49
Muon::SimpleSTgcClusterBuilderTool::initialize
virtual StatusCode initialize() override
standard initialize method
Definition: SimpleSTgcClusterBuilderTool.cxx:20
SG::ReadCondHandleKey< NswErrorCalibData >
Muon::SimpleSTgcClusterBuilderTool::getClusters
StatusCode getClusters(const EventContext &ctx, std::vector< Muon::sTgcPrepData > &&stripsVect, std::vector< std::unique_ptr< Muon::sTgcPrepData >> &clustersVect) const override
Definition: SimpleSTgcClusterBuilderTool.cxx:29
ISTgcClusterBuilderTool.h
AthAlgTool
Definition: AthAlgTool.h:26
Muon::SimpleSTgcClusterBuilderTool::m_maxHoleSize
Gaudi::Property< unsigned int > m_maxHoleSize
Definition: SimpleSTgcClusterBuilderTool.h:47
IMuonIdHelperSvc.h
Muon::SimpleSTgcClusterBuilderTool::m_uncertCalibKey
SG::ReadCondHandleKey< NswErrorCalibData > m_uncertCalibKey
Definition: SimpleSTgcClusterBuilderTool.h:51
ServiceHandle< Muon::IMuonIdHelperSvc >