ATLAS Offline Software
PixelClusterRetriever.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef JIVEXML_PIXELCLUSTERRETRIEVER_H
6 #define JIVEXML_PIXELCLUSTERRETRIEVER_H
7 
10 #include "IInDetGeoModelTool.h"
15 #include "StoreGate/DataHandle.h"
16 
17 namespace JiveXML
18 {
19 
20 
41  class PixelClusterRetriever : virtual public IDataRetriever,
42  public AthAlgTool {
43 
44  public:
45 
47  PixelClusterRetriever(const std::string& type,const std::string& name,const IInterface* parent);
48 
50  virtual StatusCode retrieve(ToolHandle<IFormatTool> &FormatTool);
51 
53  virtual std::string dataTypeName() const { return "PixCluster"; }
54 
56  virtual StatusCode initialize();
57 
58  private:
59 
61  const ToolHandle<IInDetGeoModelTool> m_geo
62  {this, "GeoModelTool","JiveXML::InDetGeoModelTool/InDetGeoModelTool",""};
63 
65  SG::ReadHandleKey<InDet::SiClusterContainer> m_PixelClusterCollName{this, "PixelClusterCollKey", "PixelClusters", "Key of SiClusterContainer for Pixel"};
66 
68  bool m_usePixelTruthMap = false;
69  SG::ReadHandleKey<PRD_MultiTruthCollection> m_PixelTruthMapName{this, "PixelClusterMapKey", "PRD_MultiTruthPixel", "Key of PRD_MultiTruthCollection for Pixel"};
70 
71  SG::ReadCondHandleKey<InDetDD::SiDetectorElementCollection> m_pixelDetEleCollKey{this, "PixelDetEleCollKey", "PixelDetectorElementCollection", "Key of SiDetectorElementCollection for Pixel"};
72  };
73 }
74 #endif
JiveXML::PixelClusterRetriever::dataTypeName
virtual std::string dataTypeName() const
Return the name of the data type.
Definition: PixelClusterRetriever.h:53
JiveXML::PixelClusterRetriever::m_geo
const ToolHandle< IInDetGeoModelTool > m_geo
A tool handle to the geo model tool.
Definition: PixelClusterRetriever.h:62
JiveXML::PixelClusterRetriever::m_usePixelTruthMap
bool m_usePixelTruthMap
The StoreGate key for the PRD MultiTruthMap with the track associations.
Definition: PixelClusterRetriever.h:68
SG::ReadHandleKey< InDet::SiClusterContainer >
DataHandle.h
JiveXML::PixelClusterRetriever::m_PixelTruthMapName
SG::ReadHandleKey< PRD_MultiTruthCollection > m_PixelTruthMapName
Definition: PixelClusterRetriever.h:69
JiveXML::PixelClusterRetriever
Retrieves all InDet::SiCluster objects.
Definition: PixelClusterRetriever.h:42
JiveXML::PixelClusterRetriever::m_pixelDetEleCollKey
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_pixelDetEleCollKey
Definition: PixelClusterRetriever.h:71
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
JiveXML::PixelClusterRetriever::retrieve
virtual StatusCode retrieve(ToolHandle< IFormatTool > &FormatTool)
Retrieve all the data.
Definition: PixelClusterRetriever.cxx:53
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::PixelClusterRetriever::initialize
virtual StatusCode initialize()
initialize only geo model tool
Definition: PixelClusterRetriever.cxx:37
JiveXML::PixelClusterRetriever::PixelClusterRetriever
PixelClusterRetriever(const std::string &type, const std::string &name, const IInterface *parent)
Standard Constructor.
Definition: PixelClusterRetriever.cxx:25
JiveXML
This header is shared inbetween the C-style server thread and the C++ Athena ServerSvc.
Definition: BadLArRetriever.cxx:22
ReadCondHandleKey.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
IInDetGeoModelTool.h
SiDetectorElementCollection.h
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection >
SiClusterContainer.h
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
PRD_MultiTruthCollection.h
AthAlgTool
Definition: AthAlgTool.h:26
JiveXML::PixelClusterRetriever::m_PixelClusterCollName
SG::ReadHandleKey< InDet::SiClusterContainer > m_PixelClusterCollName
The StoreGate key for the SiClusterCollection to retrieve.
Definition: PixelClusterRetriever.h:65
IDataRetriever.h