ATLAS Offline Software
Loading...
Searching...
No Matches
PRD_MultiTruthMaker.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5// Algorithm producing truth info for PrepRawData, keeping all MC particles contributed to a PRD.
6// A. Gaponenko, 2006
7
8#ifndef PRD_MULTITRUTHMAKER_H
9#define PRD_MULTITRUTHMAKER_H
10
11#include <string>
12
14#include "GaudiKernel/ToolHandle.h"
15
20
26
27namespace InDet {
28
30
31public:
32 PRD_MultiTruthMaker(const std::string &name,ISvcLocator *pSvcLocator);
33
34 virtual StatusCode initialize();
35 virtual StatusCode execute(const EventContext &ctx) const;
36 virtual StatusCode finalize();
37
38private:
39
46
50
51 // For P->T converter of PixelClusters
52 SG::ReadCondHandleKey<InDetDD::SiDetectorElementCollection> m_pixelDetEleCollKey{this, "PixelDetEleCollKey", "PixelDetectorElementCollection", "Key of SiDetectorElementCollection for Pixel"};
53 // For P->T converter of SCT_Clusters
54 SG::ReadCondHandleKey<InDetDD::SiDetectorElementCollection> m_SCTDetEleCollKey{this, "SCTDetEleCollKey", "SCT_DetectorElementCollection", "Key of SiDetectorElementCollection for SCT"};
55
56 ToolHandle<InDet::IPRD_MultiTruthBuilder> m_PRDTruthTool;
57
58 //----------------------------------------------------------------
59 template<class PRD_Container_Iterator>
61 PRD_Container_Iterator collections_begin,
62 PRD_Container_Iterator collections_end,
63 const InDetSimDataCollection* simDataMap,
64 bool pixels) const;
65
66 template<class PRD_Collection_Iterator>
68 PRD_Collection_Iterator range_begin,
69 PRD_Collection_Iterator range_end,
70 const InDetSimDataCollection* simDataMap,
71 bool pixels) const;
72
73};
74
75
76} // namespace InDet
77
78
79#endif //PRD_MULTITRUTHMAKER_H
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
An algorithm that can be simultaneously executed in multiple threads.
void addPRDCollections(PRD_MultiTruthCollection *prdTruth, PRD_Container_Iterator collections_begin, PRD_Container_Iterator collections_end, const InDetSimDataCollection *simDataMap, bool pixels) const
virtual StatusCode execute(const EventContext &ctx) const
SG::ReadHandleKey< InDetSimDataCollection > m_simDataMapNamePixel
SG::ReadHandleKey< InDet::SiClusterContainer > m_SCTClustersName
void addPRDRange(PRD_MultiTruthCollection *prdTruth, PRD_Collection_Iterator range_begin, PRD_Collection_Iterator range_end, const InDetSimDataCollection *simDataMap, bool pixels) const
SG::ReadHandleKey< InDet::SiClusterContainer > m_PixelClustersName
SG::ReadHandleKey< InDet::TRT_DriftCircleContainer > m_TRTDriftCircleContainerName
PRD_MultiTruthMaker(const std::string &name, ISvcLocator *pSvcLocator)
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_SCTDetEleCollKey
SG::ReadHandleKey< InDetSimDataCollection > m_simDataMapNameTRT
ToolHandle< InDet::IPRD_MultiTruthBuilder > m_PRDTruthTool
SG::WriteHandleKey< PRD_MultiTruthCollection > m_PRDTruthNameSCT
SG::ReadHandleKey< InDetSimDataCollection > m_simDataMapNameSCT
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_pixelDetEleCollKey
SG::WriteHandleKey< PRD_MultiTruthCollection > m_PRDTruthNameTRT
SG::WriteHandleKey< PRD_MultiTruthCollection > m_PRDTruthNamePixel
A PRD is mapped onto all contributing particles.
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
Primary Vertex Finder.