ATLAS Offline Software
UnassociatedHitsGetterTool.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 DERIVATIONFRAMEWORK_UNASSOCIATEDHITSGETTERTOOL_H
6 #define DERIVATIONFRAMEWORK_UNASSOCIATEDHITSGETTERTOOL_H
7 
10 
14 
15 #include "GaudiKernel/ToolHandle.h"
16 
21 
24 #include <atomic>
25 #include <string>
26 
28 
29 namespace DerivationFramework {
30 
32 public:
33 
34  UnassociatedHitsGetterTool(const std::string& type,
35  const std::string& name,
36  const IInterface* parent);
38 
40 
46  virtual const MinBiasPRDAssociation* get (bool allowMissing = false) const;
47 
51  virtual void releaseObject (const MinBiasPRDAssociation* p) const;
52 
53 private:
54 
55  /* StoreGate keys **/
57  { this, "TrackCollection", "Tracks", "" };
59  { this, "PixelClusters", "PixelClusters", ""};
61  { this, "SCTClusterContainer", "SCT_Clusters", ""};
63  { this, "TRTDriftCircleContainer", "TRT_DriftCircles", ""};
64 
65  // For P->T converter of SCT_Clusters
66  SG::ReadCondHandleKey<InDetDD::SiDetectorElementCollection> m_SCTDetEleCollKey{this, "SCTDetEleCollKey", "SCT_DetectorElementCollection", "Key of SiDetectorElementCollection for SCT"};
67 
68  ToolHandle<Trk::IPRDtoTrackMapTool> m_assoTool
69  {this, "AssociationTool", "InDet::InDetPRDtoTrackMapToolGangedPixels" };
71  {this, "PRDtoTrackMap", "",""};
72 }; // class UnassociatedHitsGetterTool
73 
74 } // namespace DerivationFramework
75 
76 
77 #endif // not DERIVATIONFRAMEWORK_UNASSOCIATEDHITSGETTERTOOL_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
DerivationFramework::UnassociatedHitsGetterTool::initialize
StatusCode initialize()
Definition: UnassociatedHitsGetterTool.cxx:30
DerivationFramework::UnassociatedHitsGetterTool::m_trackCollection
SG::ReadHandleKey< TrackCollection > m_trackCollection
Definition: UnassociatedHitsGetterTool.h:57
DerivationFramework::UnassociatedHitsGetterTool::m_assoTool
ToolHandle< Trk::IPRDtoTrackMapTool > m_assoTool
Definition: UnassociatedHitsGetterTool.h:69
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
DerivationFramework::UnassociatedHitsGetterTool::UnassociatedHitsGetterTool
UnassociatedHitsGetterTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: UnassociatedHitsGetterTool.cxx:20
IUnassociatedHitsGetterTool
Definition: IUnassociatedHitsGetterTool.h:16
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
DerivationFramework::UnassociatedHitsGetterTool::releaseObject
virtual void releaseObject(const MinBiasPRDAssociation *p) const
delete the pointer created by get
Definition: UnassociatedHitsGetterTool.cxx:216
DerivationFramework::UnassociatedHitsGetterTool::m_pixelClusterContainer
SG::ReadHandleKey< InDet::PixelClusterContainer > m_pixelClusterContainer
Definition: UnassociatedHitsGetterTool.h:59
DerivationFramework::UnassociatedHitsGetterTool::m_SCTDetEleCollKey
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_SCTDetEleCollKey
Definition: UnassociatedHitsGetterTool.h:66
DerivationFramework::UnassociatedHitsGetterTool::m_prdToTrackMapKey
SG::ReadHandleKey< Trk::PRDtoTrackMap > m_prdToTrackMapKey
Definition: UnassociatedHitsGetterTool.h:71
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
TrackCollection.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
DerivationFramework::UnassociatedHitsGetterTool::get
virtual const MinBiasPRDAssociation * get(bool allowMissing=false) const
get method: compute the number of unassociated his wrap the info in a MinBiasPRDAssociation object
Definition: UnassociatedHitsGetterTool.cxx:48
DerivationFramework
THE reconstruction tool.
Definition: ParticleSortingAlg.h:24
IPRD_AssociationTool.h
ReadCondHandleKey.h
MinBiasPRDAssociation
Definition: MinBiasPRDAssociation.h:11
TRT_DriftCircleContainer.h
DerivationFramework::UnassociatedHitsGetterTool::m_SCTClusterContainer
SG::ReadHandleKey< InDet::SCT_ClusterContainer > m_SCTClusterContainer
Definition: UnassociatedHitsGetterTool.h:61
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
PixelClusterContainer.h
IPRDtoTrackMapTool.h
SiDetectorElementCollection.h
DerivationFramework::UnassociatedHitsGetterTool::m_TRTDriftCircleContainer
SG::ReadHandleKey< InDet::TRT_DriftCircleContainer > m_TRTDriftCircleContainer
Definition: UnassociatedHitsGetterTool.h:63
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection >
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
DerivationFramework::UnassociatedHitsGetterTool::~UnassociatedHitsGetterTool
virtual ~UnassociatedHitsGetterTool()
SCT_ClusterContainer.h
IUnassociatedHitsGetterTool.h
AthAlgTool
Definition: AthAlgTool.h:26
DerivationFramework::UnassociatedHitsGetterTool
Definition: UnassociatedHitsGetterTool.h:31