|
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( svcLoc->service(
"TrkAnaDefSvc" + trkAnaColls.
anaTag() ) );
57 if( trkAnaDefSvc->useOffline() ) {
63 if( trkAnaDefSvc->useEFTrigger() ) {
69 if( trkAnaDefSvc->useTruth() ) {
80 if( trkAnaDefSvc->useOffline() and m_doOfflSelection.value() ) {
81 ATH_CHECK( m_offlineSelectionTool->selectTracks( trkAnaColls ) );
85 if( trkAnaDefSvc->useTruth() and m_doTruthSelection.value() ) {
86 ATH_CHECK( m_truthSelectionTool->selectTracks( trkAnaColls ) );
90 if( trkAnaDefSvc->useOffline() and m_doObjSelection.value() ) {
91 ATH_CHECK( m_objSelectionTool->selectTracks( trkAnaColls ) );
98 return StatusCode::SUCCESS;
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)
get 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)
std::string printInfo(Stage stage=FULL) const
print Information about tracks in the collection(s)
const std::string & anaTag()
— Getter methods —