lcio/src/cpp/src/UTIL
diff -u -r1.4 -r1.5
--- LCRelationNavigator.cc 15 Apr 2005 08:37:52 -0000 1.4
+++ LCRelationNavigator.cc 4 Aug 2006 14:54:22 -0000 1.5
@@ -7,6 +7,9 @@
#include "IMPL/LCRelationImpl.h"
#include "EVENT/LCIO.h"
+#define RELATIONFROMTYPESTR "FromType"
+#define RELATIONTOTYPESTR "ToType"
+
using namespace EVENT ;
using namespace IMPL ;
@@ -15,8 +18,8 @@
LCRelationNavigator::LCRelationNavigator( const EVENT::LCCollection* col ) :
- _from( col->getParameters().getStringVal("RelationFromType") ) ,
- _to( col->getParameters().getStringVal("RelationToType") ) {
+ _from( col->getParameters().getStringVal( RELATIONFROMTYPESTR ) ) ,
+ _to( col->getParameters().getStringVal( RELATIONTOTYPESTR ) ) {
initialize(col) ;
}
@@ -141,8 +144,8 @@
LCCollectionVec* col = new LCCollectionVec( LCIO::LCRELATION ) ;
- col->parameters().setValue( "FromType" , getFromType() ) ;
- col->parameters().setValue( "ToType" , getToType() ) ;
+ col->parameters().setValue( RELATIONFROMTYPESTR , getFromType() ) ;
+ col->parameters().setValue( RELATIONTOTYPESTR , getToType() ) ;
bool storeWeights = false ;