ATLAS Offline Software
PixelPrepDataToxAOD.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
11 // PixelPrepDataToxAOD.h
13 // Header file for class PixelPrepDataToxAOD
15 
16 #ifndef PIXELPREPDATATOXAOD_H
17 #define PIXELPREPDATATOXAOD_H
18 
20 #include "GaudiKernel/ServiceHandle.h"
28 
30 
39 
41 
43 
44 #include <string>
45 
46 class PixelID;
47 class SiHit;
49 
50 class IdentifierHash;
51 
52 namespace InDet
53 {
54  class PixelCluster;
55 }
56 
57 namespace InDetDD
58 {
59  class SiCellId;
60 }
61 
62 
63 
65 
66 public:
67  // Constructor with parameters:
68  PixelPrepDataToxAOD(const std::string &name,ISvcLocator *pSvcLocator);
69 
70  // Basic algorithm methods:
71  virtual StatusCode initialize();
72  virtual StatusCode execute();
73  virtual StatusCode finalize();
74 
75 private:
76 
77  std::vector< std::vector< int > > addSDOInformation( xAOD::TrackMeasurementValidation* xprd,
78  const InDet::PixelCluster* prd,
79  const InDetSimDataCollection& sdoCollection ) const;
80 
81 
83  const InDet::PixelCluster* prd,
84  const std::vector<SiHit> & matchingHits ) const;
85 
86  std::vector<SiHit> findAllHitsCompatibleWithCluster(const InDet::PixelCluster* prd,
87  const std::vector<const SiHit*>* sihits,
88  std::vector< std::vector< int > > & trkBCs) const;
89 
90 
92  const InDet::PixelCluster* prd,
93  const std::vector<SiHit> & matchingHits ) const;
94 
97  const unsigned int SizeX,
98  const unsigned int SizeY ) const;
99 
102  const PixelChargeCalibCondData *calibData) const;
103 
104 
105 
107  int *rrowMin = 0,
108  int *rrowMax = 0,
109  int *rcolMin = 0,
110  int *rcolMax = 0 ) const;
111 
113 
121 
123  {this, "PixelReadoutManager", "PixelReadoutManager", "Pixel readout manager" };
124 
126  {this, "PixelChargeCalibCondData", "PixelChargeCalibCondData", "Pixel charge calibration data"};
127 
129  {this, "PixelDCSStateCondData", "PixelDCSStateCondData", "Pixel FSM state key"};
130 
132  {this, "PixelDCSStatusCondData", "PixelDCSStatusCondData", "Pixel FSM status key"};
133 
135  {this, "ReadKeyTemp", "PixelDCSTempCondData", "Key of input sensor temperature conditions folder"};
136 
138  {this, "ReadKeyHV", "PixelDCSHVCondData", "Key of input bias voltage conditions folder"};
139 
140  ToolHandle<IInDetConditionsTool> m_pixelSummary
141  {this, "PixelConditionsSummaryTool", "PixelConditionsSummaryTool", "Tool for PixelConditionsSummaryTool"};
142 
143  ToolHandle<ISiLorentzAngleTool> m_lorentzAngleTool
144  {this, "LorentzAngleTool", "SiLorentzAngleTool", "Tool to retreive Lorentz angle"};
145 
147  {this, "ClusterSplitProbabilityName", "",""};
148 
149  // -- Private members
150  mutable std::atomic<unsigned int> m_haveTruthLink {};
151  mutable std::atomic<unsigned int> m_missingTruthParticle {};
152  mutable std::atomic<unsigned int> m_missingParentParticle {};
155 
161  {this,"InputTruthParticleLinks","","The key for the truth particle link collection."};
162 
165 };
166 
167 
168 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
PixelCluster
Definition: Trigger/TrigAccel/TrigCudaFitter/src/PixelCluster.h:8
IInDetConditionsTool.h
PixelPrepDataToxAOD::PixelPrepDataToxAOD
PixelPrepDataToxAOD(const std::string &name, ISvcLocator *pSvcLocator)
Definition: PixelPrepDataToxAOD.cxx:51
PixelPrepDataToxAOD::m_SDOcontainer_key
SG::ReadHandleKey< InDetSimDataCollection > m_SDOcontainer_key
Definition: PixelPrepDataToxAOD.h:158
PixelPrepDataToxAOD::addSiHitInformation
void addSiHitInformation(xAOD::TrackMeasurementValidation *xprd, const InDet::PixelCluster *prd, const std::vector< SiHit > &matchingHits) const
Definition: PixelPrepDataToxAOD.cxx:505
PixelPrepDataToxAOD::m_firstEventWarnings
bool m_firstEventWarnings
Definition: PixelPrepDataToxAOD.h:153
PixelPrepDataToxAOD::addSDOInformation
std::vector< std::vector< int > > addSDOInformation(xAOD::TrackMeasurementValidation *xprd, const InDet::PixelCluster *prd, const InDetSimDataCollection &sdoCollection) const
Definition: PixelPrepDataToxAOD.cxx:472
PixelPrepDataToxAOD::m_clustercontainer_key
SG::ReadHandleKey< InDet::PixelClusterContainer > m_clustercontainer_key
Definition: PixelPrepDataToxAOD.h:156
InDet
Primary Vertex Finder.
Definition: VP1ErrorUtils.h:36
PixelPrepDataToxAOD::m_missingTruthParticle
std::atomic< unsigned int > m_missingTruthParticle
Definition: PixelPrepDataToxAOD.h:151
PixelPrepDataToxAOD::m_writeSDOs
bool m_writeSDOs
Definition: PixelPrepDataToxAOD.h:115
PixelPrepDataToxAOD::m_need_sihits
bool m_need_sihits
Definition: PixelPrepDataToxAOD.h:154
PixelPrepDataToxAOD::m_PixelHelper
const PixelID * m_PixelHelper
Definition: PixelPrepDataToxAOD.h:112
PixelPrepDataToxAOD::m_condDCSStatusKey
SG::ReadCondHandleKey< PixelDCSStatusData > m_condDCSStatusKey
Definition: PixelPrepDataToxAOD.h:132
PixelDCSStateData.h
Store pixel DCS module state in PixelDCSStateData.
PixelPrepDataToxAOD::findAllHitsCompatibleWithCluster
std::vector< SiHit > findAllHitsCompatibleWithCluster(const InDet::PixelCluster *prd, const std::vector< const SiHit * > *sihits, std::vector< std::vector< int > > &trkBCs) const
Definition: PixelPrepDataToxAOD.cxx:576
PixelPrepDataToxAOD::initialize
virtual StatusCode initialize()
Definition: PixelPrepDataToxAOD.cxx:87
InDetSimDataCollection
Definition: InDetSimDataCollection.h:25
PixelPrepDataToxAOD::m_pixelSummary
ToolHandle< IInDetConditionsTool > m_pixelSummary
Definition: PixelPrepDataToxAOD.h:141
ISiLorentzAngleTool.h
SG::ReadHandleKey< Trk::ClusterSplitProbabilityContainer >
PixelPrepDataToxAOD::getCellIdWeightedPosition
InDetDD::SiCellId getCellIdWeightedPosition(const InDet::PixelCluster *pixelCluster, int *rrowMin=0, int *rrowMax=0, int *rcolMin=0, int *rcolMax=0) const
Definition: PixelPrepDataToxAOD.cxx:1177
SiHit
Definition: SiHit.h:19
PixelPrepDataToxAOD::m_chargeDataKey
SG::ReadCondHandleKey< PixelChargeCalibCondData > m_chargeDataKey
Definition: PixelPrepDataToxAOD.h:126
AthAlgorithm.h
PixelPrepDataToxAOD::m_writeExtendedPRDinformation
bool m_writeExtendedPRDinformation
Definition: PixelPrepDataToxAOD.h:119
xAOD::TrackMeasurementValidation_v1
Class describing a TrackMeasurementValidation.
Definition: TrackMeasurementValidation_v1.h:27
PixelPrepDataToxAOD::m_clusterSplitProbContainer
SG::ReadHandleKey< Trk::ClusterSplitProbabilityContainer > m_clusterSplitProbContainer
Definition: PixelPrepDataToxAOD.h:147
PixelPrepDataToxAOD::addNNTruthInfo
void addNNTruthInfo(xAOD::TrackMeasurementValidation *xprd, const InDet::PixelCluster *prd, const std::vector< SiHit > &matchingHits) const
Definition: PixelPrepDataToxAOD.cxx:987
PixelPrepDataToxAOD::addRdoInformation
void addRdoInformation(xAOD::TrackMeasurementValidation *xprd, const InDet::PixelCluster *pixelCluster, const PixelChargeCalibCondData *calibData) const
Definition: PixelPrepDataToxAOD.cxx:709
PixelPrepDataToxAOD::m_sihitContainer_key
SG::ReadHandleKey< SiHitCollection > m_sihitContainer_key
Definition: PixelPrepDataToxAOD.h:157
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
PixelPrepDataToxAOD::finalize
virtual StatusCode finalize()
Definition: PixelPrepDataToxAOD.cxx:1281
PixelPrepDataToxAOD::m_writeRDOinformation
bool m_writeRDOinformation
Definition: PixelPrepDataToxAOD.h:118
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
PixelPrepDataToxAOD::m_write_xaod_key
SG::WriteHandleKey< xAOD::TrackMeasurementValidationContainer > m_write_xaod_key
Definition: PixelPrepDataToxAOD.h:163
PixelPrepDataToxAOD::m_useTruthInfo
bool m_useTruthInfo
Definition: PixelPrepDataToxAOD.h:114
PixelChargeCalibCondData
Definition: PixelChargeCalibCondData.h:24
PixelPrepDataToxAOD::m_lorentzAngleTool
ToolHandle< ISiLorentzAngleTool > m_lorentzAngleTool
Definition: PixelPrepDataToxAOD.h:144
PixelPrepDataToxAOD::m_condDCSStateKey
SG::ReadCondHandleKey< PixelDCSStateData > m_condDCSStateKey
Definition: PixelPrepDataToxAOD.h:129
PixelDCSTempData.h
Store pixel temperature data in PixelDCSTempData.
PixelPrepDataToxAOD::m_truthParticleLinks
SG::ReadHandleKey< xAODTruthParticleLinkVector > m_truthParticleLinks
Definition: PixelPrepDataToxAOD.h:161
IPixelReadoutManager.h
AthAlgorithm
Definition: AthAlgorithm.h:47
ReadCondHandleKey.h
PixelDCSStatusData.h
Store pixel DCS module status in PixelDCSStatusData.
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
PixelPrepDataToxAOD::m_readKeyHV
SG::ReadCondHandleKey< PixelDCSHVData > m_readKeyHV
Definition: PixelPrepDataToxAOD.h:138
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
PixelClusterContainer.h
PixelPrepDataToxAOD::m_multiTruth_key
SG::ReadHandleKey< PRD_MultiTruthCollection > m_multiTruth_key
Definition: PixelPrepDataToxAOD.h:159
PixelPrepDataToxAOD::m_writeNNinformation
bool m_writeNNinformation
Definition: PixelPrepDataToxAOD.h:117
PixelPrepDataToxAOD::m_write_offsets
SG::WriteHandleKey< std::vector< unsigned int > > m_write_offsets
Definition: PixelPrepDataToxAOD.h:164
InDetDD::SiCellId
Definition: SiCellId.h:29
InDet::PixelCluster
Definition: InnerDetector/InDetRecEvent/InDetPrepRawData/InDetPrepRawData/PixelCluster.h:49
SG::ReadCondHandleKey< PixelChargeCalibCondData >
Trk::pixelCluster
@ pixelCluster
Definition: MeasurementType.h:22
PixelPrepDataToxAOD
Definition: PixelPrepDataToxAOD.h:64
InDetDD
Message Stream Member.
Definition: FakeTrackBuilder.h:8
PixelPrepDataToxAOD::m_useSiHitsGeometryMatching
bool m_useSiHitsGeometryMatching
Definition: PixelPrepDataToxAOD.h:120
ClusterSplitProbabilityContainer.h
TrackMeasurementValidation.h
PRD_MultiTruthCollection.h
TrackMeasurementValidationContainer.h
PixelPrepDataToxAOD::m_readKeyTemp
SG::ReadCondHandleKey< PixelDCSTempData > m_readKeyTemp
Definition: PixelPrepDataToxAOD.h:135
PixelPrepDataToxAOD::addNNInformation
void addNNInformation(xAOD::TrackMeasurementValidation *xprd, const InDet::PixelCluster *pixelCluster, const unsigned int SizeX, const unsigned int SizeY) const
Definition: PixelPrepDataToxAOD.cxx:774
PixelPrepDataToxAOD::execute
virtual StatusCode execute()
Definition: PixelPrepDataToxAOD.cxx:130
IdentifierHash
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Definition: IdentifierHash.h:25
PixelPrepDataToxAOD::m_pixelReadout
ServiceHandle< InDetDD::IPixelReadoutManager > m_pixelReadout
Definition: PixelPrepDataToxAOD.h:123
PixelID
Definition: PixelID.h:67
PixelChargeCalibCondData.h
PixelDCSHVData.h
Store pixel HV data in PixelDCSHVData.
PixelPrepDataToxAOD::m_missingParentParticle
std::atomic< unsigned int > m_missingParentParticle
Definition: PixelPrepDataToxAOD.h:152
PixelPrepDataToxAOD::m_writeSiHits
bool m_writeSiHits
Definition: PixelPrepDataToxAOD.h:116
ServiceHandle< InDetDD::IPixelReadoutManager >
PixelPrepDataToxAOD::m_haveTruthLink
std::atomic< unsigned int > m_haveTruthLink
Definition: PixelPrepDataToxAOD.h:150
SiHitCollection.h