ATLAS Offline Software
Loading...
Searching...
No Matches
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//
24namespace Muon
25{
26
28
30
31 public:
32
34 CaruanaSTgcClusterBuilderTool(const std::string&, const std::string&, const IInterface*);
35
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
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
SG::ReadCondHandleKey< NswErrorCalibData > m_uncertCalibKey
Gaudi::Property< unsigned int > m_maxHoleSize
CaruanaSTgcClusterBuilderTool(const std::string &, const std::string &, const IInterface *)
Default constructor.
virtual StatusCode initialize()
standard initialize method
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager > m_DetectorManagerKey
StatusCode getClusters(const EventContext &ctx, std::vector< Muon::sTgcPrepData > &&stripsVect, std::vector< std::unique_ptr< Muon::sTgcPrepData > > &clustersVect) const
virtual ~CaruanaSTgcClusterBuilderTool()=default
Default destructor.
void dumpStrips(std::vector< Muon::sTgcPrepData > &stripsVect, std::vector< Muon::sTgcPrepData * > &clustersVect) const
private functions
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.