|
ATLAS Offline Software
|
Go to the documentation of this file.
15 #include "GaudiKernel/ISvcLocator.h"
16 #include "GaudiKernel/Service.h"
23 const std::string&
name ) :
36 ATH_CHECK( m_offlineSelectionTool.retrieve( EnableTool{ m_doOfflSelection.value() } ) );
37 ATH_CHECK( m_truthSelectionTool.retrieve( EnableTool{ m_doTruthSelection.value() } ) );
38 ATH_CHECK( m_objSelectionTool.retrieve( EnableTool{ m_doObjSelection.value() } ) );
40 return StatusCode::SUCCESS;
50 ATH_MSG_DEBUG(
"Initially copying collections to FullScan vectors" );
52 ISvcLocator* svcLoc = Gaudi::svcLocator();
53 SmartIF< ITrackAnalysisDefinitionSvc > trkAnaDefSvc(
54 svcLoc->service(
"TrkAnaDefSvc" + trkAnaColls.
anaTag() ) );
58 if( trkAnaDefSvc->useOffline() ) {
65 if( trkAnaDefSvc->useTrigger() or trkAnaDefSvc->useEFTrigger() ) {
73 if( trkAnaDefSvc->useTruth() ) {
85 if( trkAnaDefSvc->useOffline() and m_doOfflSelection.value() ) {
86 ATH_CHECK( m_offlineSelectionTool->selectTracks( trkAnaColls ) );
90 if( trkAnaDefSvc->useTruth() and m_doTruthSelection.value() ) {
91 ATH_CHECK( m_truthSelectionTool->selectTracks( trkAnaColls ) );
97 if( trkAnaDefSvc->useOffline() and m_doObjSelection.value() ) {
98 ATH_CHECK( m_objSelectionTool->selectTracks( trkAnaColls ) );
105 return StatusCode::SUCCESS;
std::string printInfo(Stage stage=FULL, bool printVertex=true) const
print information about tracks in the collection(s)
StatusCode fillTrigTrackVec(const std::vector< const xAOD::TrackParticle * > &vec, Stage stage=FULL)
Trigger tracks.
const std::vector< const xAOD::TrackParticle * > & trigTrackVec(Stage stage=FULL)
Class to hold for each event collections needed in the TrkAnalsis.
StatusCode fillOfflTrackVec(const std::vector< const xAOD::TrackParticle * > &vec, Stage stage=FULL)
Offline tracks.
StatusCode fillTruthPartVec(const std::vector< const xAOD::TruthParticle * > &vec, Stage stage=FULL)
fill truth/offline/trigger track vector (TEST or REFERENCE)
::StatusCode StatusCode
StatusCode definition for legacy code.
const std::vector< const xAOD::TrackParticle * > & offlTrackVec(Stage stage=FULL)
const std::vector< const xAOD::TruthParticle * > & truthPartVec(Stage stage=FULL)
get truth/offline/trigger track vector (TEST or REFERENCE)
const std::string & anaTag()
— Getter methods —