249 MsgStream log(
msgSvc(), name() );
250 log << MSG::INFO <<
"in execute()" << endmsg;
252 SmartDataPtr<DQAEvent::DQAEvent> dqaevt( eventSvc(),
"/Event/DQATag" );
257 sc = eventSvc()->registerObject(
"/Event/DQATag", dqaevt );
258 if ( sc.isFailure() )
260 log << MSG::ERROR <<
"Could not register DQAEvent to TDS" << endmsg;
261 return StatusCode::FAILURE;
268 m_dqaBhabha->execute( ctx ).ignore();
269 if (
dynamic_cast<LegacyAlgorithmAdapter*
>( m_dqaBhabha )->filterPassed() )
271 dqaevt->setBhabha( 1 );
272 if ( m_OutBhabha ) m_dqaoutBhabha->execute( ctx ).ignore();
278 m_dqaDimu->execute( ctx ).ignore();
279 if (
dynamic_cast<LegacyAlgorithmAdapter*
>( m_dqaDimu )->filterPassed() )
281 dqaevt->setDimu( 1 );
282 if ( m_OutDimu ) m_dqaoutDimu->execute( ctx ).ignore();
288 m_dqaHadron->execute( ctx ).ignore();
289 if (
dynamic_cast<LegacyAlgorithmAdapter*
>( m_dqaHadron )->filterPassed() )
291 dqaevt->setHadron( 1 );
292 if ( m_OutHadron ) m_dqaoutHadron->execute( ctx ).ignore();
298 m_dqaRhopi->execute( ctx ).ignore();
299 if (
dynamic_cast<LegacyAlgorithmAdapter*
>( m_dqaRhopi )->filterPassed() )
301 dqaevt->setRhopi( 1 );
302 if ( m_OutRhopi ) m_dqaoutRhopi->execute( ctx ).ignore();
308 m_dqaPpbar->execute( ctx ).ignore();
309 if (
dynamic_cast<LegacyAlgorithmAdapter*
>( m_dqaPpbar )->filterPassed() )
311 dqaevt->setPpbar( 1 );
312 if ( m_OutPpbar ) m_dqaoutPpbar->execute( ctx ).ignore();
318 m_dqaKstark->execute( ctx ).ignore();
319 if (
dynamic_cast<LegacyAlgorithmAdapter*
>( m_dqaKstark )->filterPassed() )
321 dqaevt->setKstark( 1 );
322 if ( m_OutKstark ) m_dqaoutKstark->execute( ctx ).ignore();
326 if ( m_selLambdalambda )
328 m_dqaLambdalambda->execute( ctx ).ignore();
329 if (
dynamic_cast<LegacyAlgorithmAdapter*
>( m_dqaLambdalambda )->filterPassed() )
331 dqaevt->setLambdalambdabar( 1 );
332 if ( m_OutLambdalambda ) m_dqaoutLambdalambda->execute( ctx ).ignore();
338 m_dqaPPpipi->execute( ctx ).ignore();
339 if (
dynamic_cast<LegacyAlgorithmAdapter*
>( m_dqaPPpipi )->filterPassed() )
341 dqaevt->setPpbarpipi( 1 );
342 if ( m_OutPPpipi ) m_dqaoutPPpipi->execute( ctx ).ignore();
346 if ( m_selKsKpiDedx )
348 m_dqaKsKpiDedx->execute( ctx ).ignore();
349 if (
dynamic_cast<LegacyAlgorithmAdapter*
>( m_dqaKsKpiDedx )->filterPassed() )
351 dqaevt->setKstark( 1 );
352 if ( m_OutKsKpiDedx ) m_dqaoutKsKpiDedx->execute( ctx ).ignore();
358 m_dqapipiJpsi->execute( ctx ).ignore();
359 if (
dynamic_cast<LegacyAlgorithmAdapter*
>( m_dqapipiJpsi )->filterPassed() )
361 dqaevt->setHadron( 1 );
362 if ( m_OutpipiJpsi ) m_dqaoutpipiJpsi->execute( ctx ).ignore();
366 return StatusCode::SUCCESS;