17 ATH_CHECK( initializeVarHandleKey(m_inputMcEventCollection ) );
18 ATH_CHECK( initializeVarHandleKey(m_inputBCMHits ) );
19 ATH_CHECK( initializeVarHandleKey(m_inputBLMHits ) );
20 ATH_CHECK( initializeVarHandleKey(m_inputPixelHits ) );
21 ATH_CHECK( initializeVarHandleKey(m_inputSCTHits ) );
22 ATH_CHECK( initializeVarHandleKey(m_inputTRTUncompressedHits) );
24 ATH_CHECK( initializeVarHandleKey(m_inputLArEMBHits ) );
25 ATH_CHECK( initializeVarHandleKey(m_inputLArEMECHits ) );
26 ATH_CHECK( initializeVarHandleKey(m_inputLArFCALHits ) );
27 ATH_CHECK( initializeVarHandleKey(m_inputLArHECHits ) );
28 ATH_CHECK( initializeVarHandleKey(m_inputLArActiveCalibHits ) );
29 ATH_CHECK( initializeVarHandleKey(m_inputLArInactiveCalibHits ) );
30 ATH_CHECK( initializeVarHandleKey(m_inputLArDeadCalibHits ) );
32 ATH_CHECK( initializeVarHandleKey(m_inputTileHits ) );
33 ATH_CHECK( initializeVarHandleKey(m_inputMBTSHits ) );
34 ATH_CHECK( initializeVarHandleKey(m_inputTileActiveCalibHits ) );
35 ATH_CHECK( initializeVarHandleKey(m_inputTileInactiveCalibHits ) );
36 ATH_CHECK( initializeVarHandleKey(m_inputTileDeadCalibHits ) );
38 ATH_CHECK( initializeVarHandleKey(m_inputCSCHits ) );
39 ATH_CHECK( initializeVarHandleKey(m_inputMDTHits ) );
40 ATH_CHECK( initializeVarHandleKey(m_inputRPCHits ) );
41 ATH_CHECK( initializeVarHandleKey(m_inputTGCHits ) );
42 ATH_CHECK( initializeVarHandleKey(m_inputMMHits ) );
43 ATH_CHECK( initializeVarHandleKey(m_inputsTGCHits ) );
45 ATH_CHECK( initializeVarHandleKey(m_inputITkPixelHits ) );
46 ATH_CHECK( initializeVarHandleKey(m_inputITkStripHits ) );
47 ATH_CHECK( initializeVarHandleKey(m_inputHGTDHits) );
49 ATH_CHECK( initializeVarHandleKey(m_inputCaloEntryLayer ) );
50 ATH_CHECK( initializeVarHandleKey(m_inputMuonEntryLayer) );
51 ATH_CHECK( initializeVarHandleKey(m_inputMuonExitLayer ) );
53 ATH_CHECK( initializeVarHandleKey(m_outputMcEventCollection ) );
54 ATH_CHECK( initializeVarHandleKey(m_outputBCMHits ) );
55 ATH_CHECK( initializeVarHandleKey(m_outputBLMHits ) );
56 ATH_CHECK( initializeVarHandleKey(m_outputPixelHits ) );
57 ATH_CHECK( initializeVarHandleKey(m_outputSCTHits ) );
58 ATH_CHECK( initializeVarHandleKey(m_outputTRTUncompressedHits) );
60 ATH_CHECK( initializeVarHandleKey(m_outputLArEMBHits ) );
61 ATH_CHECK( initializeVarHandleKey(m_outputLArEMECHits ) );
62 ATH_CHECK( initializeVarHandleKey(m_outputLArFCALHits ) );
63 ATH_CHECK( initializeVarHandleKey(m_outputLArHECHits ) );
64 ATH_CHECK( initializeVarHandleKey(m_outputLArActiveCalibHits ) );
65 ATH_CHECK( initializeVarHandleKey(m_outputLArInactiveCalibHits ) );
66 ATH_CHECK( initializeVarHandleKey(m_outputLArDeadCalibHits ) );
68 ATH_CHECK( initializeVarHandleKey(m_outputTileHits ) );
69 ATH_CHECK( initializeVarHandleKey(m_outputMBTSHits ) );
70 ATH_CHECK( initializeVarHandleKey(m_outputTileActiveCalibHits ) );
71 ATH_CHECK( initializeVarHandleKey(m_outputTileInactiveCalibHits ) );
72 ATH_CHECK( initializeVarHandleKey(m_outputTileDeadCalibHits ) );
74 ATH_CHECK( initializeVarHandleKey(m_outputCSCHits ) );
75 ATH_CHECK( initializeVarHandleKey(m_outputMDTHits ) );
76 ATH_CHECK( initializeVarHandleKey(m_outputRPCHits ) );
77 ATH_CHECK( initializeVarHandleKey(m_outputTGCHits ) );
78 ATH_CHECK( initializeVarHandleKey(m_outputMMHits ) );
79 ATH_CHECK( initializeVarHandleKey(m_outputsTGCHits ) );
81 ATH_CHECK( initializeVarHandleKey(m_outputITkPixelHits ) );
82 ATH_CHECK( initializeVarHandleKey(m_outputITkStripHits ) );
83 ATH_CHECK( initializeVarHandleKey(m_outputHGTDHits) );
85 ATH_CHECK( initializeVarHandleKey(m_outputCaloEntryLayer ) );
86 ATH_CHECK( initializeVarHandleKey(m_outputMuonEntryLayer) );
87 ATH_CHECK( initializeVarHandleKey(m_outputMuonExitLayer ) );
89 return StatusCode::SUCCESS;
97 if (!inputMcEventCollection.
isValid()) {
98 ATH_MSG_ERROR(
"Could not find input McEventCollection called " << inputMcEventCollection.
name() <<
" in store " << inputMcEventCollection.
store() <<
".");
99 return StatusCode::FAILURE;
102 ATH_CHECK(outputMcEventCollection.
record(std::make_unique<McEventCollection>(*inputMcEventCollection)));
103 if (!outputMcEventCollection.
isValid()) {
104 ATH_MSG_ERROR(
"Could not record output McEventCollection called " << outputMcEventCollection.
name() <<
" in store " << outputMcEventCollection.
store() <<
".");
105 return StatusCode::FAILURE;
108 ATH_CHECK(copyCollections( m_inputBCMHits, m_outputBCMHits , ctx ));
109 ATH_CHECK(copyCollections( m_inputBLMHits, m_outputBLMHits , ctx ));
110 ATH_CHECK(copyCollections( m_inputPixelHits, m_outputPixelHits , ctx ));
111 ATH_CHECK(copyCollections( m_inputSCTHits, m_outputSCTHits , ctx ));
112 ATH_CHECK(copyCollections( m_inputTRTUncompressedHits, m_outputTRTUncompressedHits , ctx ));
114 ATH_CHECK(copyCollections( m_inputLArEMBHits, m_outputLArEMBHits , ctx ));
115 ATH_CHECK(copyCollections( m_inputLArEMECHits, m_outputLArEMECHits , ctx ));
116 ATH_CHECK(copyCollections( m_inputLArFCALHits, m_outputLArFCALHits , ctx ));
117 ATH_CHECK(copyCollections( m_inputLArHECHits, m_outputLArHECHits , ctx ));
118 ATH_CHECK(copyCollections( m_inputLArActiveCalibHits, m_outputLArActiveCalibHits , ctx ));
119 ATH_CHECK(copyCollections( m_inputLArInactiveCalibHits,m_outputLArInactiveCalibHits, ctx ));
120 ATH_CHECK(copyCollections( m_inputLArDeadCalibHits, m_outputLArDeadCalibHits , ctx ));
122 ATH_CHECK(copyCollections( m_inputTileHits, m_outputTileHits , ctx ));
123 ATH_CHECK(copyCollections( m_inputMBTSHits, m_outputMBTSHits , ctx ));
124 ATH_CHECK(copyCollections( m_inputTileActiveCalibHits, m_outputTileActiveCalibHits , ctx ));
125 ATH_CHECK(copyCollections( m_inputTileInactiveCalibHits,m_outputTileInactiveCalibHits, ctx ));
126 ATH_CHECK(copyCollections( m_inputTileDeadCalibHits, m_outputTileDeadCalibHits , ctx ));
128 ATH_CHECK(copyCollections( m_inputCSCHits, m_outputCSCHits , ctx ));
129 ATH_CHECK(copyCollections( m_inputMDTHits, m_outputMDTHits , ctx ));
130 ATH_CHECK(copyCollections( m_inputRPCHits, m_outputRPCHits , ctx ));
131 ATH_CHECK(copyCollections( m_inputTGCHits, m_outputTGCHits , ctx ));
132 ATH_CHECK(copyCollections( m_inputMMHits, m_outputMMHits , ctx ));
133 ATH_CHECK(copyCollections( m_inputsTGCHits, m_outputsTGCHits , ctx ));
135 ATH_CHECK(copyCollections( m_inputITkPixelHits, m_outputITkPixelHits , ctx ));
136 ATH_CHECK(copyCollections( m_inputITkStripHits, m_outputITkStripHits , ctx ));
137 ATH_CHECK(copyCollections( m_inputHGTDHits, m_outputHGTDHits , ctx ));
139 ATH_CHECK(copyCollections(m_inputCaloEntryLayer ,m_outputCaloEntryLayer , ctx ));
140 ATH_CHECK(copyCollections(m_inputMuonEntryLayer,m_outputMuonEntryLayer, ctx ));
141 ATH_CHECK(copyCollections(m_inputMuonExitLayer ,m_outputMuonExitLayer , ctx ));
145 return StatusCode::SUCCESS;
151 if ( varHandleKey.
key().empty() )
152 return StatusCode::SUCCESS;