Print

Print


Commit in lcio/src/cpp/include/RIO on rio_v00-00
RIOLCCollectionHandler.h+5-41.1.2.5 -> 1.1.2.6
fixed type of branch pointer (void*)

lcio/src/cpp/include/RIO
RIOLCCollectionHandler.h 1.1.2.5 -> 1.1.2.6
diff -u -r1.1.2.5 -r1.1.2.6
--- RIOLCCollectionHandler.h	1 Dec 2009 11:11:03 -0000	1.1.2.5
+++ RIOLCCollectionHandler.h	1 Dec 2009 11:29:45 -0000	1.1.2.6
@@ -62,8 +62,8 @@
       std::cout << "  RIOLCCollectionHandler( " << name << ", " << tree << ")" << std::endl ;
 #endif
       
-      //_tv = 0 ; //IMPL::LCCollectionVec ; // new std::vector<T*> ;      
-      _tv =  _emptyCol ; // new IMPL::LCCollectionVec( type  )  ;
+      _tv = 0 ; //IMPL::LCCollectionVec ; // new std::vector<T*> ;      
+      //_tv =  _emptyCol ; // new IMPL::LCCollectionVec( type  )  ;
 //       TClass* cl = TClass::GetClass(TString::Format("vector<EVENT::%s>", type.c_str()));
 //       if (!cl) printf("bad\n");
 //       else {
@@ -83,12 +83,13 @@
 	
 	//FIXME: make split level and 'record size' parameters ....
 	//	_br = tree->Branch( _name.c_str(), &_tv, 16000, RIO_SPLIT_LEVEL );
+
 	std::stringstream typeStream ;
-	typeStream << "IMPL::LCCollectionTVec<" << type << ">" ;
+	typeStream << "IMPL::LCCollectionTVec<EVENT::" << type << ">" ;
 
 	std::cout << " create branch for type   " << typeStream.str()  << std::endl ;
 	
-	_br = tree->Branch( _name.c_str(), typeStream.str().c_str(), &_tv, 16000, RIO_SPLIT_LEVEL );
+	_br = tree->Branch( _name.c_str(), typeStream.str().c_str(), (void*) &_tv, 16000, RIO_SPLIT_LEVEL );
 
 
 
CVSspam 0.2.8