Print

Print


Commit in slic/src on MAIN
LcioMcpFactory.cc+4-41.4 -> 1.5
Fixed no trajectory container error that was causing seg fault.

slic/src
LcioMcpFactory.cc 1.4 -> 1.5
diff -u -r1.4 -r1.5
--- LcioMcpFactory.cc	21 Sep 2005 22:14:59 -0000	1.4
+++ LcioMcpFactory.cc	21 Sep 2005 22:54:19 -0000	1.5
@@ -1,4 +1,4 @@
-// $Header: /cvs/lcd/slic/src/LcioMcpFactory.cc,v 1.4 2005/09/21 22:14:59 jeremy Exp $
+// $Header: /cvs/lcd/slic/src/LcioMcpFactory.cc,v 1.5 2005/09/21 22:54:19 jeremy Exp $
 #include "LcioMcpFactory.hh"
 
 // slic
@@ -44,6 +44,9 @@
     // new coll for final Mcps
     m_finalColl = static_cast<LCCollectionVec*>(m_manager->getFinalMcpCollection());
 
+    /* Set current G4TrajectoryContainer */
+    m_currentTrajectoryContainer = event->GetTrajectoryContainer();
+
     // using StdHep or LCIO e.g. a file-based source?
     if ( EventSourceManager::instance()->isFileSource() ) {
 
@@ -53,9 +56,6 @@
     // G4 source using traj only
     else {
 
-      /* Set current G4TrajectoryContainer */
-      m_currentTrajectoryContainer = event->GetTrajectoryContainer();
-
       /* Create from trj cont of current G4Event, only. */
       createFinalMcpCollectionFromTrajectoryContainer( m_currentTrajectoryContainer );
     }
CVSspam 0.2.8