22 const IInterface*
p ) :
24 m_incidentSvc(
"IncidentSvc",
n)
29 declareInterface<DerivationFramework::StreamAuditorTool>(
this);
41 if (m_incidentSvc.retrieve().isFailure()) {
42 ATH_MSG_FATAL(
"Could not retrieve IncidentService '" << m_incidentSvc <<
"'. Exiting.");
43 return StatusCode::FAILURE;
46 m_incidentSvc->addListener(
this, IncidentType::EndEvent);
49 return StatusCode::SUCCESS;
54 ATH_MSG_INFO(
"========================================================");
55 ATH_MSG_INFO(
"|| SUMMARY OF THE DERIVATION FRAMEWORK STREAM AUDITOR ||");
56 ATH_MSG_INFO(
"========================================================");
57 ATH_MSG_INFO(
"Total number of events processed: " << m_totalEvents);
58 std::map<std::pair<std::string,std::string> ,
unsigned int>
::iterator mapItr;
60 for (mapItr=m_overlapMap.begin(); mapItr!=m_overlapMap.end(); ++mapItr) {
61 ATH_MSG_INFO( ((*mapItr).first).first <<
" " << ((*mapItr).first).second <<
" " << (*mapItr).second);
63 ATH_MSG_INFO(
"========================================================");
64 return StatusCode::SUCCESS;
76 for (mapItrOuter=m_algNames.begin(); mapItrOuter!=m_algNames.end(); ++mapItrOuter) {
77 for (mapItrInner=mapItrOuter; mapItrInner!=m_algNames.end(); ++mapItrInner) {
78 std::pair<std::string,std::string> tmpPair;
79 tmpPair = std::make_pair( (*mapItrOuter).first, (*mapItrInner).first);
80 m_overlapMap[tmpPair]=0;
91 mapItr = m_algNames.find(
name);
92 (*mapItr).second += 1;
101 if ( inc.type() == IncidentType::EndEvent ) {
107 std::map<std::pair<std::string,std::string> ,
unsigned int>
::iterator olItr;
108 for (mapItrOuter=m_algNames.begin(); mapItrOuter!=m_algNames.end(); ++mapItrOuter) {
109 std::string outerString = (*mapItrOuter).first;
110 unsigned int outerCount = (*mapItrOuter).second;
111 for (mapItrInner=mapItrOuter; mapItrInner!=m_algNames.end(); ++mapItrInner) {
112 std::string innerString = (*mapItrInner).first;
113 unsigned int innerCount = (*mapItrInner).second;
114 for (olItr=m_overlapMap.begin(); olItr!=m_overlapMap.end(); ++olItr) {
115 if ( (((*olItr).first).first==outerString) && (((*olItr).first).second==innerString) && (innerCount==1 && outerCount==1) ) {
116 (*olItr).second += 1;
123 for (mapItr=m_algNames.begin(); mapItr!=m_algNames.end(); ++mapItr) {
124 (*mapItr).second = 0;