12 #include "GaudiKernel/IAlgContextSvc.h"
13 #include "GaudiKernel/IAlgorithm.h"
17 #include "GaudiAlg/GetAlg.h"
18 #include "GaudiAlg/GetAlgs.h"
20 #include "GaudiAlg/GaudiAlgorithm.h"
21 #include "GaudiAlg/GaudiHistoAlg.h"
22 #include "GaudiAlg/GaudiTupleAlg.h"
23 #include "GaudiAlg/GaudiSequencer.h"
24 #include "GaudiAlg/Sequencer.h"
37 if ( 0 == svc ) {
return 0 ; }
40 ALGS::const_reverse_iterator it = std::find_if
43 Gaudi::Utils::AlgTypeSelector<TYPE>() ) ;
44 if ( algs.rend() == it ) {
return 0 ; }
46 return dynamic_cast<TYPE*
>( alg ) ;
68 {
return getAlg<GaudiAlgorithm> ( svc ) ; }
88 {
return getAlg<GaudiHistoAlg> ( svc ) ; }
108 {
return getAlg<GaudiTupleAlg> ( svc ) ; }
128 {
return getAlg<GaudiSequencer> ( svc ) ; }
147 {
return getAlg<Sequencer> ( svc ) ; }
169 if ( 0 == svc ) {
return 0 ; }
175 for ( ALGS::const_reverse_iterator it = algs.rbegin() ;
176 algs.rend() != it ; ++it )
178 if ( sel1 ( *it ) ) {
return *it ; }
179 if ( sel2 ( *it ) ) {
return *it ; }