Print

Print


Commit in projects/slic/branches/v05-00-00-dev/src on MAIN
LcioManager.cc+53267 -> 3268
Add Geant4 backward compatibility macro.

projects/slic/branches/v05-00-00-dev/src
LcioManager.cc 3267 -> 3268
--- projects/slic/branches/v05-00-00-dev/src/LcioManager.cc	2014-08-18 18:51:45 UTC (rev 3267)
+++ projects/slic/branches/v05-00-00-dev/src/LcioManager.cc	2014-08-18 20:34:06 UTC (rev 3268)
@@ -198,7 +198,12 @@
 void LcioManager::beginRun(const G4Run* aRun) {
 
 	// Set the G4Run counter.
+#if ( G4VERSION_NUMBER >= 1000 )
     G4RunManager::GetRunManager()->GetNonConstCurrentRun()->SetRunID(m_runNumber);
+#else
+    // Alternate code for backward compatibility.
+    const_cast<G4Run*>(G4RunManager::GetRunManager()->GetCurrentRun())->SetRunID(m_runNumber);
+#endif
 
     // Automatically create LCIO output file name if option was selected.
     if (m_usingAutoname) {
SVNspam 0.1


Use REPLY-ALL to reply to list

To unsubscribe from the LCDET-SVN list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=LCDET-SVN&A=1