Problem 289 - Compilation error when G4_NO_STORE_TRAJECTORY is set.
Summary: Compilation error when G4_NO_STORE_TRAJECTORY is set.
Status: CLOSED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: run (show other problems)
Version: 3.2
Hardware: PC Linux
: P2 normal
Assignee: asai
URL:
Depends on:
Blocks:
 
Reported: 2001-08-17 08:34 CEST by Ivana.Hrivnacova
Modified: 2012-02-15 05:40 CET (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description Ivana.Hrivnacova 2001-08-17 08:34:28 CEST
Compiler gives error:
Compiling G4EventManager.cc ...
src/G4EventManager.cc: In method `void G4EventManager::ProcessOneEvent(class
G4Event *)':
src/G4EventManager.cc:185: `aTrajectory' undeclared (first use this function)
src/G4EventManager.cc:185: (Each undeclared identifier is reported only once
src/G4EventManager.cc:185: for each function it appears in.)
gmake[1]: *** [/home/ivana/dev/geant4/tmp/Linux-g++/G4event/G4EventManager.o]
Error 1

Following correction helps:
G4EventManager.cc: line185 :
#ifdef G4_STORE_TRAJECTORY
        trackContainer->PushOneTrack( track, aTrajectory );
#else
        trackContainer->PushOneTrack( track );
#endif
Comment 1 Makoto.Asai 2001-08-17 10:44:59 CEST
You are absolutely right. Thank you for your report!
I modified G4EventManager.cc: line 164 :

    G4VTrajectory * aTrajectory = NULL;
#ifdef G4_STORE_TRAJECTORY
    aTrajectory = trackManager->GimmeTrajectory();

The correction is tagged "event-V03-02-04".