Message: Primitive Scorer and parallel mode with TOPC and Marshalgen Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Primitive Scorer and parallel mode with TOPC and Marshalgen 

Forum: Hits, Digitization and Pileup
Date: 27 Aug, 2009
From: Antonio Otal <Antonio Otal>

Hi,

I've programed a Geant4 application in brachytherapy and I use primitive scorers. Now, I want to execute it in a parallel mode with TOPC and Marshalgen. I've used the ParN02 example as a template but when I "make" the code I've got the next error lines.

In file included from include/MarshaledG4HCofThisEvent.h:13,
                 from src/ParRunManager.cc:54:
include/MarshaledG4THitsMap.h:16: error: expected class-name before '{' token
include/MarshaledG4THitsMap.h:22: error: ISO C++ forbids declaration of `G4THitsMap' with no type
include/MarshaledG4THitsMap.h:22: error: expected `;' before '*' token
include/MarshaledG4THitsMap.h:29: error: expected `)' before '*' token
include/MarshaledG4THitsMap.h:50: error: ISO C++ forbids declaration of `G4THitsMap' with no type
include/MarshaledG4THitsMap.h:50: error: expected `;' before '*' token
include/MarshaledG4THitsMap.h:67: error: expected `;' before "void"
include/MarshaledG4THitsMap.h:67: error: `G4THitsMap' is not a type
include/MarshaledG4THitsMap.h:67: error: ISO C++ forbids declaration of `obj' with no type
include/MarshaledG4THitsMap.h: In member function `void MarshaledG4THitsMap::unmarshalTo(int*)':
include/MarshaledG4THitsMap.h:74: error: 'class MarshaledG4THitsMap' has no member named 'param'
include/MarshaledG4THitsMap.h:75: error: 'class MarshaledG4THitsMap' has no member named 'param'
include/MarshaledG4THitsMap.h: In member function `void MarshaledG4THitsMap::marshal1()':
include/MarshaledG4THitsMap.h:103: error: `MarshaledG4HitsCollection' was not declared in this scope
include/MarshaledG4THitsMap.h:103: error: expected `;' before "marParent"
include/MarshaledG4THitsMap.h:104: error: `marParent' was not declared in this scope
include/MarshaledG4THitsMap.h:103: warning: unused variable 'MarshaledG4HitsCollection'
include/MarshaledG4THitsMap.h: In member function `void MarshaledG4THitsMap::unmarshal1()':
include/MarshaledG4THitsMap.h:129: error: `MarshaledG4HitsCollection' was not declared in this scope
include/MarshaledG4THitsMap.h:129: error: expected `;' before "marObj"
include/MarshaledG4THitsMap.h:130: error: `marObj' was not declared in this scope
include/MarshaledG4THitsMap.h:130: error: `param' was not declared in this scopeinclude/MarshaledG4THitsMap.h:129: warning: unused variable 'MarshaledG4HitsCollection'
include/MarshaledG4THitsMap.h:130: warning: unused variable 'marObj'
include/MarshaledG4THitsMap.h:130: warning: unused variable 'param'
In file included from include/MarshaledG4HCofThisEvent.h:14,
                 from src/ParRunManager.cc:54:
include/MarshaledG4VHitsCollection.h: In member function `void MarshaledG4VHitsCollection::marshal3()':
include/MarshaledG4VHitsCollection.h:226: error: `MarshaledG4THitsMap' is not a template
include/MarshaledG4VHitsCollection.h: In member function `void MarshaledG4VHitsCollection::unmarshal3()':
include/MarshaledG4VHitsCollection.h:253: error: `MarshaledG4THitsMap' is not a template
include/MarshaledG4VHitsCollection.h:254: error: no matching function for call to `MarshaledG4THitsMap::unmarshalTo(G4THitsMap<G4VHit>*)'
include/MarshaledG4THitsMap.h:67: note: candidates are: void MarshaledG4THitsMap::unmarshalTo(int*)
In file included from include/MarshaledG4HCofThisEvent.h:15,
                 from src/ParRunManager.cc:54:
include/MarshaledG4THitsCollection.h: In member function `void MarshaledG4HitsCollection::marshal1()':
include/MarshaledG4THitsCollection.h:104: error: `G4THit' was not declared in this scope
include/MarshaledG4THitsCollection.h:104: error: template argument 1 is invalid
include/MarshaledG4THitsCollection.h:104: error: expected primary-expression before ')' token
include/MarshaledG4THitsCollection.h:104: error: expected `)' before "param"
include/MarshaledG4THitsCollection.h:108: error: `anElement' was not declared in this scope
include/MarshaledG4THitsCollection.h:109: error: `G4THit' cannot appear in a constant-expression
include/MarshaledG4THitsCollection.h:109: error: template argument 1 is invalid
include/MarshaledG4THitsCollection.h:109: error: expected primary-expression before ')' token
include/MarshaledG4THitsCollection.h:109: error: expected `)' before "param"
include/MarshaledG4THitsCollection.h:109: error: expected `)' before ';' token
include/MarshaledG4THitsCollection.h:110: error: `MarshaledG4THit' was not declared in this scope
include/MarshaledG4THitsCollection.h:110: error: expected `;' before "marEle"
include/MarshaledG4THitsCollection.h:111: error: `marEle' was not declared in this scope
include/MarshaledG4THitsCollection.h:110: warning: unused variable 'MarshaledG4THit'
include/MarshaledG4THitsCollection.h: In member function `void MarshaledG4HitsCollection::unmarshal1()':
include/MarshaledG4THitsCollection.h:143: error: `MarshaledG4THit' was not declared in this scope
include/MarshaledG4THitsCollection.h:143: error: expected `;' before "marEle"
include/MarshaledG4THitsCollection.h:144: error: `G4THit' was not declared in this scope
include/MarshaledG4THitsCollection.h:144: error: `anElement' was not declared in this scope
include/MarshaledG4THitsCollection.h:144: error: expected primary-expression before ')' token
include/MarshaledG4THitsCollection.h:144: error: expected `;' before "marEle"
include/MarshaledG4THitsCollection.h:145: error: `marEle' was not declared in this scope
include/MarshaledG4THitsCollection.h:146: error: `G4THit' cannot appear in a constant-expression
include/MarshaledG4THitsCollection.h:146: error: template argument 1 is invalid
include/MarshaledG4THitsCollection.h:146: error: expected primary-expression before ')' token
include/MarshaledG4THitsCollection.h:146: error: expected `)' before "param"
include/MarshaledG4THitsCollection.h:143: warning: unused variable 'MarshaledG4THit'
include/MarshaledG4THitsCollection.h:144: warning: unused variable 'anElement'
include/MarshaledG4THitsCollection.h:145: warning: unused variable 'marEle'
make[2]: *** [/root/Geant4/work//tmp/Linux-g++/Brachy/ParRunManager.o] Error 1
make[1]: *** [/root/Geant4/work//bin/Linux-g++/ParN02.timestamp] Error 2
make: *** [compile] Error 2

I think the problem is the annotations in G4THitsMap.hh and G4THitsCollection but I don't know what's going on. I attach the annotated files I used.

Thank you in advice

   Attachment:
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2009/08/27/04.11-75238-G4HCofThisEvent.hh
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2009/08/27/04.11-48197-G4String.hh
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2009/08/27/04.11-69715-G4THitsCollection.hh
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2009/08/27/04.11-82167-G4THitsMap.hh
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2009/08/27/04.11-11342-G4VHit.hh
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2009/08/27/04.11-81767-G4VHitsCollection.hh

 Add Message Add Message
to: "Primitive Scorer and parallel mode with TOPC and Marshalgen"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]