lcio/src/cpp/src/IMPL
diff -u -r1.23 -r1.24
--- LCEventImpl.cc 8 Nov 2007 19:35:37 -0000 1.23
+++ LCEventImpl.cc 23 Nov 2007 15:55:34 -0000 1.24
@@ -1,11 +1,14 @@
#include "IMPL/LCEventImpl.h"
-#include <iostream>
#include "IMPL/AccessChecked.h"
#include "IMPL/LCCollectionVec.h"
#define EVT_WGT "_weight"
+#include <iostream>
+#include <sstream>
+
+
using namespace EVENT ;
//using namespace DATA ;
@@ -99,9 +102,13 @@
LCCollectionMap::iterator it = _colMap.find( name ) ;
- if( it == _colMap.end() )
- throw(DataNotAvailableException( std::string("LCEventImpl::getCollection: collection not in event:"
- + name) )) ;
+ if( it == _colMap.end() ) {
+
+ std::stringstream ss ;
+ ss << "LCEventImpl::getCollection: collection not in event:" << name ;
+
+ throw( DataNotAvailableException( ss.str() ) ) ;
+ }
return it->second ;
// if( _colMap.find( name ) == _colMap.end() )