7#include "GaudiKernel/TypeNameString.h"
18 ISvcLocator* pSvcLocator) :
51 std::vector<std::string>::iterator subAlgos =
m_subAlgoNames.begin();
52 StatusCode registerAlgs;
53 unsigned int numberOfAlgorithms = 0;
54 unsigned int acceptedAlgos = 0;
56 ! registerAlgs.isFailure() )
58 Gaudi::Utils::TypeNameString theAlgItem(*subAlgos);
59 Gaudi::Algorithm* theAlgo;
60 registerAlgs = createSubAlgorithm(theAlgItem.type(),theAlgItem.name(),
62 if ( ! registerAlgs.isFailure() && theAlgo != 0 )
71 <<
") ... created type/name ... "
74 << theAlgItem.name() );
99 if (numberOfAlgorithms == 0)
return StatusCode::FAILURE;
101 return AthLegacySequence::initialize();
112 IChronoStatSvc* theTicker = chronoSvc();
125 (
"Number of events processed: "
142 StatusCode executeAlgs;
146 unsigned int algoIndex = 0;
147 while ( ! executeAlgs.isFailure() && algoCounter !=
m_subAlgos.end() )
151 executeAlgs = (*algoCounter)->execute(ctx);
154 if ( executeAlgs.isFailure() )
168 return StatusCode::SUCCESS;
190 (
"======================================================== " );
192 (
"Total events analyzed .................: "
196 (
"Total events rejected .................: "
204 (
"Events without EventHeader (rejected) .: "
212 (
"-------------------------------------------------------- " );
214 (
"Reject patterns: " );
216 (
"-------------------------------------------------------- " );
218 for (
const std::pair<const std::string, unsigned int>& p :
m_rejectPattern)
233 << std::setprecision(5)
239 (
"-------------------------------------------------------- " );
241 (
"Accept patterns: " );
243 (
"-------------------------------------------------------- " );
244 for (
const std::pair<const std::string, unsigned int>& p :
m_acceptPattern)
258 msg().setf(std::ios::fixed);
260 << std::setprecision(5)
266 (
"======================================================== " );
269 return AthLegacySequence::finalize();
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
Alias for backward compatibility.
const EventContext & getContext() const
unsigned int m_rejectCounter
std::map< std::string, unsigned int > m_rejectPattern
std::map< std::string, unsigned int > m_acceptPattern
unsigned int m_rejectNoEvent
virtual StatusCode initialize() override
virtual StatusCode execute() override
unsigned int m_eventPrintFreq
virtual StatusCode finalize() override
TBAlgoSequencer(const std::string &name, ISvcLocator *pSvcLocator)
unsigned int m_eventCounter
AlgoStore::iterator AlgoIterator
virtual ~TBAlgoSequencer()
std::vector< std::string > m_algoNameStore
std::vector< std::string > m_subAlgoNames