ATLAS Offline Software
CscPrepDataRetriever.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef JIVEXML_CSCPREPDATARETRIEVER_H
6 #define JIVEXML_CSCPREPDATARETRIEVER_H
7 
10 #include "GaudiKernel/ServiceHandle.h"
11 #include "GaudiKernel/ToolHandle.h"
12 
15 
16 #include <string>
17 
18 namespace JiveXML {
19 
20  class CscPrepDataRetriever : virtual public IDataRetriever, public AthAlgTool {
21 
22  public:
24  CscPrepDataRetriever(const std::string& type, const std::string& name, const IInterface* parent);
25 
27  virtual StatusCode retrieve(ToolHandle<IFormatTool> &FormatTool);
28 
30  virtual std::string dataTypeName() const { return "CSCD"; };
31 
33  virtual StatusCode initialize();
34 
35  private:
37  SG::ReadHandleKey<Muon::CscPrepDataContainer> m_sgKey{this, "StoreGateKey", "CSC_Clusters", "Name of the CscPrepDataContainer"};
38 
39  ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
40 
41  };
42 
43 }
44 #endif
JiveXML::CscPrepDataRetriever::CscPrepDataRetriever
CscPrepDataRetriever(const std::string &type, const std::string &name, const IInterface *parent)
Standard Constructor.
Definition: CscPrepDataRetriever.cxx:14
JiveXML::CscPrepDataRetriever::initialize
virtual StatusCode initialize()
Default AthAlgTool methods.
Definition: CscPrepDataRetriever.cxx:24
JiveXML::CscPrepDataRetriever::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: CscPrepDataRetriever.h:39
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
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
JiveXML::IDataRetriever
Interface for all DataRetriever classes, that extract event data from StoreGate and pass them on to a...
Definition: IDataRetriever.h:25
JiveXML
This header is shared inbetween the C-style server thread and the C++ Athena ServerSvc.
Definition: BadLArRetriever.cxx:21
CscPrepDataContainer.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
JiveXML::CscPrepDataRetriever::m_sgKey
SG::ReadHandleKey< Muon::CscPrepDataContainer > m_sgKey
The storegate key for the CSC collection.
Definition: CscPrepDataRetriever.h:37
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
JiveXML::CscPrepDataRetriever
Definition: CscPrepDataRetriever.h:20
JiveXML::CscPrepDataRetriever::dataTypeName
virtual std::string dataTypeName() const
Return the name of the data type.
Definition: CscPrepDataRetriever.h:30
AthAlgTool
Definition: AthAlgTool.h:26
JiveXML::CscPrepDataRetriever::retrieve
virtual StatusCode retrieve(ToolHandle< IFormatTool > &FormatTool)
Retrieve all the data.
Definition: CscPrepDataRetriever.cxx:35
IMuonIdHelperSvc.h
IDataRetriever.h
ServiceHandle< Muon::IMuonIdHelperSvc >