![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
24 #include "GaudiKernel/StatusCode.h"
25 #include "GaudiKernel/ISvcLocator.h"
26 #include "GaudiKernel/ListItem.h"
27 #include "GaudiKernel/ServiceHandle.h"
40 const std::string &
name,
41 ISvcLocator *pSvcLocator)
53 const TRT_ID *trtID =
nullptr;
56 return StatusCode::FAILURE;
60 const SCT_ID *sctID =
nullptr;
63 return StatusCode::FAILURE;
67 const PixelID *pixelID =
nullptr;
70 return StatusCode::FAILURE;
80 if( !
sc.isSuccess() )
return sc;
84 i != monToolsEnd; ++
i ) {
85 ToolHandle<IMonitorToolBase>&
tool = *
i;
89 if( managed !=
nullptr ) {
108 return StatusCode::SUCCESS;
122 if (combined_tracks.
isValid()){
127 msg(MSG::ERROR) <<
"No combined tracks in StoreGate"<<
endmsg;
128 return StatusCode::FAILURE;
136 if (bcmRdoContainer.
isValid()){
139 int_BCM_RDOs = bcmRdoContainer.
cptr();
142 msg(MSG::ERROR) <<
"No BCM RDOs in StoreGate"<<
endmsg;
143 return StatusCode::FAILURE;
148 int_BCM_RDOs =
nullptr;
158 if (pixRdoContainer.
isValid()){
161 int_Pixel_RDOs = pixRdoContainer.
cptr();
164 msg(MSG::ERROR) <<
"No Pixel RDOs in StoreGate"<<
endmsg;
165 return StatusCode::FAILURE;
169 if (pixel_LVL1IDColl.
isValid()){
170 msg(
MSG::DEBUG) <<
"found Pixel LVL1ID information in StoreGate "
172 int_Pixel_LVL1ID = pixel_LVL1IDColl.
cptr();
175 msg(MSG::ERROR) <<
"No Pixel LVL1ID information in StoreGate"<<
endmsg;
176 return StatusCode::FAILURE;
181 msg(
MSG::DEBUG) <<
"found Pixel BCID information in StoreGate "
183 int_Pixel_BCID = pixel_BCIDColl.
cptr();
186 msg(MSG::ERROR) <<
"No Pixel BCID information in StoreGate"<<
endmsg;
187 return StatusCode::FAILURE;
191 int_Pixel_LVL1ID =
nullptr;
192 int_Pixel_BCID =
nullptr;
197 int_Pixel_RDOs =
nullptr;
198 int_Pixel_LVL1ID =
nullptr;
199 int_Pixel_BCID =
nullptr;
209 if (sctRdoContainer.
isValid()){
212 int_SCT_RDOs = sctRdoContainer.
cptr();
215 msg(MSG::ERROR) <<
"No SCT RDOs in StoreGate"<<
endmsg;
216 return StatusCode::FAILURE;
222 msg(
MSG::DEBUG) <<
"found SCT LVL1ID information in StoreGate "
224 int_SCT_LVL1ID = sct_LVL1IDColl.
cptr();
227 msg(MSG::ERROR) <<
"No SCT LVL1ID information in StoreGate"<<
endmsg;
228 return StatusCode::FAILURE;
235 int_SCT_BCID = sct_BCIDColl.
cptr();
238 msg(MSG::ERROR) <<
"No SCT BCID information in StoreGate"<<
endmsg;
239 return StatusCode::FAILURE;
243 int_SCT_LVL1ID=
nullptr;
244 int_SCT_BCID =
nullptr;
249 int_SCT_RDOs =
nullptr;
250 int_SCT_LVL1ID=
nullptr;
251 int_SCT_BCID =
nullptr;
263 if (driftCircleContainer.
isValid()){
266 int_DriftCircles = driftCircleContainer.
cptr();
269 msg(MSG::ERROR) <<
"No TRT driftcircles in StoreGate"<<
endmsg;
270 return StatusCode::FAILURE;
276 msg(
MSG::DEBUG) <<
"found TRT LVL1ID information in StoreGate "
278 int_TRT_LVL1ID = trt_LVL1IDColl.
cptr();
281 msg(MSG::ERROR) <<
"No TRT LVL1ID information in StoreGate"<<
endmsg;
282 return StatusCode::FAILURE;
289 int_TRT_BCID = trt_BCIDColl.
cptr();
292 msg(MSG::ERROR) <<
"No TRT BCID information in StoreGate"<<
endmsg;
293 return StatusCode::FAILURE;
297 int_TRT_LVL1ID =
nullptr;
298 int_TRT_BCID =
nullptr;
304 msg(
MSG::DEBUG) <<
"found TRT event phase information in StoreGate "
306 int_TRT_Phase = trtPhase.
cptr();
310 msg(MSG::ERROR) <<
"No TRT event phase information in StoreGate"<<
endmsg;
311 return StatusCode::FAILURE;
314 else int_TRT_Phase =
nullptr;
318 int_DriftCircles =
nullptr;
319 int_TRT_LVL1ID =
nullptr;
320 int_TRT_BCID =
nullptr;
321 int_TRT_Phase =
nullptr;
329 i != monToolsEnd; ++
i ) {
330 ToolHandle<IMonitorToolBase>&
tool = *
i;
335 if( managed !=
nullptr ) {
337 <<
"Loop over InDetGlobalMonTool " <<managed <<
endmsg;
339 managed->
fillRDOContainers(int_BCM_RDOs, int_Pixel_RDOs, int_SCT_RDOs, int_DriftCircles);
340 managed->
fillTimeContainers( int_Pixel_LVL1ID,int_SCT_LVL1ID,int_TRT_LVL1ID, int_Pixel_BCID, int_SCT_BCID, int_TRT_BCID, int_TRT_Phase );
def retrieve(aClass, aKey=None)
JetConstituentVector::iterator iterator
This is an Identifier helper class for the Pixel subdetector. This class is a factory for creating co...
SG::ReadHandleKey< InDetTimeCollection > m_SCT_LVL1ID
This is an Identifier helper class for the SCT subdetector. This class is a factory for creating comp...
SG::ReadHandleKey< SCT_RDO_Container > m_SCT_RDOs
const_pointer_type cptr()
Dereference the pointer.
Gaudi::Property< bool > m_doTRT
SG::ReadHandleKey< BCM_RDO_Container > m_BCM_RDOs
virtual StatusCode finalize()
This is an Identifier helper class for the TRT subdetector. This class is a factory for creating comp...
SG::ReadHandleKey< PixelRDO_Container > m_PixelRDOs
bool msgLvl(const MSG::Level lvl) const
Gaudi::Property< bool > m_doSCT
SG::ReadHandleKey< InDetTimeCollection > m_TRT_BCID
Gaudi::Property< bool > m_doPixel
SG::ReadHandleKey< InDetTimeCollection > m_PixelBCID
Gaudi::Property< bool > m_doTRTPhase
Gaudi::Property< bool > m_doTiming
SG::ReadHandleKey< InDetTimeCollection > m_SCT_BCID
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
An Algorithm that manages a set of modules, each inheriting from ManagedMonitorToolBase,...
InDetGlobalManager(const std::string &name, ISvcLocator *pSvcLocator)
::StatusCode StatusCode
StatusCode definition for legacy code.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
ToolHandleArray< IMonitorToolBase > m_monTools
virtual bool isValid() override final
Can the handle be successfully dereferenced?
SG::ReadHandleKey< InDet::TRT_DriftCircleContainer > m_TRT_DriftCircleName
Name of trt drift circle container.
SG::ReadHandleKey< ComTime > m_TRT_Phase
Trk::PrepRawDataContainer< TRT_DriftCircleCollection > TRT_DriftCircleContainer
std::vector< std::pair< uint32_t, unsigned int > > InDetTimeCollection
Gaudi::Property< bool > m_doBCM
virtual StatusCode execute()
virtual StatusCode execute()
SG::ReadHandleKey< InDetTimeCollection > m_PixelLVL1ID
virtual StatusCode finalize()
SG::ReadHandleKey< InDetTimeCollection > m_TRT_LVL1ID
SG::ReadHandleKey< TrackCollection > m_CombinedTracksName
virtual StatusCode initialize()
virtual StatusCode initialize()