ATLAS Offline Software
RpcClusterBuilderPRD.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef RpcClusterBuilderPRD_H
6 #define RpcClusterBuilderPRD_H
7 
9 #include "Identifier/Identifier.h"
10 #include "GaudiKernel/ServiceHandle.h"
11 
13 
16 
24 
25 class RpcIdHelper;
26 
28 
29 public:
30 
31  RpcClusterBuilderPRD (const std::string& name, ISvcLocator* pSvcLocator);
35 
38 
39 private:
40 
42 
43  void buildClusters(Identifier elementId, const MuonGM::MuonDetectorManager* MuonDetMgr);
44  int buildPatterns(const Muon::RpcPrepDataCollection* rpcCollection);
45  void push_back(Muon::RpcPrepData *& newCluster);
46 
47 
48  std::vector<Muon::RpcPrepDataCollection*> m_coll_vect;
50 
51  typedef std::map<int, Muon::RpcPrepData*> pattern;
52  std::map<Identifier,pattern> m_digits;
53  // StatusCode retrieve_rpcClusterContainer() const;
54  float m_timeSpread;
55 
56 protected:
57 
59 
61  "MuonDetectorManager",
62  "Key of input MuonDetectorManager condition data"};
63 
64  ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
65  SG::ReadHandleKey<Muon::RpcPrepDataContainer> m_colKeyIn {this, "InputCollectionName", "RPC_Measurements"};
66  SG::WriteHandleKey<Muon::RpcPrepDataContainer> m_colKey {this, "CollectionName", "rpcClusters"};
67 };
68 
69 #endif
RpcClusterBuilderPRD
Definition: RpcClusterBuilderPRD.h:27
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
Muon::MuonPrepDataContainer
Template for Muon PRD containers (which are basically collections of MuonPrepDataCollections).
Definition: MuonPrepDataContainer.h:42
DataModel_detail::const_iterator
Const iterator class for DataVector/DataList.
Definition: DVLIterator.h:82
RpcClusterBuilderPRD::m_DetectorManagerKey
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager > m_DetectorManagerKey
Definition: RpcClusterBuilderPRD.h:60
RpcClusterBuilderPRD::finalize
StatusCode finalize()
Definition: RpcClusterBuilderPRD.cxx:73
RpcClusterBuilderPRD::RpcClusterBuilderPRD
RpcClusterBuilderPRD(const std::string &name, ISvcLocator *pSvcLocator)
Definition: RpcClusterBuilderPRD.cxx:27
RpcDigitContainer.h
MuonPrepDataContainer.h
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
RpcIdHelper
Definition: RpcIdHelper.h:51
RpcClusterBuilderPRD::pattern
std::map< int, Muon::RpcPrepData * > pattern
Definition: RpcClusterBuilderPRD.h:51
AthAlgorithm.h
RpcDigit.h
RpcClusterBuilderPRD::initialize
StatusCode initialize()
Definition: RpcClusterBuilderPRD.cxx:36
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
RpcDigitCollection.h
Muon::RpcPrepData
Class to represent RPC measurements.
Definition: RpcPrepData.h:35
RpcClusterBuilderPRD::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: RpcClusterBuilderPRD.h:64
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
RpcClusterBuilderPRD::coll_iter
Muon::RpcPrepDataCollection::const_iterator coll_iter
Definition: RpcClusterBuilderPRD.h:37
IdentifiableContainerMT::const_iterator
Definition: IdentifiableContainerMT.h:82
RpcClusterBuilderPRD::m_colKey
SG::WriteHandleKey< Muon::RpcPrepDataContainer > m_colKey
Definition: RpcClusterBuilderPRD.h:66
Muon::MuonPrepDataCollection
Template to hold collections of MuonPrepRawData objects.
Definition: MuonPrepDataCollection.h:46
AthAlgorithm
Definition: AthAlgorithm.h:47
RpcClusterBuilderPRD::m_colKeyIn
SG::ReadHandleKey< Muon::RpcPrepDataContainer > m_colKeyIn
Definition: RpcClusterBuilderPRD.h:65
RpcClusterBuilderPRD::buildClusters
void buildClusters(Identifier elementId, const MuonGM::MuonDetectorManager *MuonDetMgr)
Definition: RpcClusterBuilderPRD.cxx:222
RpcClusterBuilderPRD::m_coll_vect
std::vector< Muon::RpcPrepDataCollection * > m_coll_vect
Definition: RpcClusterBuilderPRD.h:48
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
EventPrimitives.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
RpcClusterBuilderPRD::buildPatterns
int buildPatterns(const Muon::RpcPrepDataCollection *rpcCollection)
Definition: RpcClusterBuilderPRD.cxx:166
RpcClusterBuilderPRD::m_temp_coll
Muon::RpcPrepDataCollection * m_temp_coll
Definition: RpcClusterBuilderPRD.h:49
MuonDetectorManager.h
RpcClusterBuilderPRD::fill_rpcClusterContainer
StatusCode fill_rpcClusterContainer()
Definition: RpcClusterBuilderPRD.cxx:81
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager >
RpcClusterBuilderPRD::m_rpcClusterContainer
Muon::RpcPrepDataContainer * m_rpcClusterContainer
Definition: RpcClusterBuilderPRD.h:58
MuonGM::MuonDetectorManager
The MuonDetectorManager stores the transient representation of the Muon Spectrometer geometry and pro...
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonDetectorManager.h:49
RpcClusterBuilderPRD::push_back
void push_back(Muon::RpcPrepData *&newCluster)
Definition: RpcClusterBuilderPRD.cxx:412
RpcClusterBuilderPRD::execute
StatusCode execute()
Definition: RpcClusterBuilderPRD.cxx:53
RpcClusterBuilderPRD::m_timeSpread
float m_timeSpread
Definition: RpcClusterBuilderPRD.h:54
RpcClusterBuilderPRD::cont_iter
Muon::RpcPrepDataContainer::const_iterator cont_iter
Definition: RpcClusterBuilderPRD.h:36
RpcPrepData.h
IMuonIdHelperSvc.h
RpcClusterBuilderPRD::m_digits
std::map< Identifier, pattern > m_digits
Definition: RpcClusterBuilderPRD.h:52
ServiceHandle< Muon::IMuonIdHelperSvc >