[Gate-users] how to solve "unexpected character after line continuation character"?

Ravindranath, Bosky bosky at bnl.gov
Sat May 10 17:55:40 CEST 2008


Hi Guifen,
Yes, Nicolas is right. I am running Gate v3.0.0 and thats the reason why your macro ran without any errors. It was not because of deletion of the exclamation marks, it ran without errors inspite of leaving them in .

Bosky


-----Original Message-----
From: Nicolas Karakatsanis [mailto:knicolas at mail.ntua.gr]
Sent: Sat 5/10/2008 8:56 AM
To: Ravindranath, Bosky
Cc: Guifen Lin; gate-users at lists.healthgrid.org
Subject: Re: Re: [Gate-users] how to solve "unexpected character after	line continuation character"?
 
Hi again

the error message is caused by the presence of the underscore character 
"_" at the comments related to the GATE commands that specify ROOT and 
ASCII output file.
These characters should be removed in order the simulation to run smoothly.
For example change the following section of the macro code:

#       S E T U P  - R O O T _ F I L E
/gate/output/root/setFileName YourPETSimu
/gate/output/root/setRootSinglesAdderFlag 1
/gate/output/root/setRootSinglesReadoutFlag 1
/gate/output/root/setRootHitFlag 1
/gate/output/root/setRootSinglesFlag 1
/gate/output/root/setRootNtupleFlag 1
/gate/output/root/setRootCoincidencesFlag 1

#       S E T U P  - A S C I I _ F I L E
/gate/output/ascii/setOutFileSinglesAdderFlag 0
/gate/output/ascii/setOutFileSinglesReadoutFlag 0
/gate/output/ascii/setOutFileSinglesThresholderFlag 0
/gate/output/ascii/setOutFileSinglesUpholderFlag 0
/gate/output/ascii/setOutFileSinglesFlag 0
/gate/output/ascii/setOutFileHitsFlag 0
/gate/output/ascii/setOutFileCoincidencesFlag 0






into the following one:





#       S E T U P  - R O O T   F I L E
/gate/output/root/setFileName YourPETSimu
/gate/output/root/setRootSinglesAdderFlag 1
/gate/output/root/setRootSinglesReadoutFlag 1
/gate/output/root/setRootHitFlag 1
/gate/output/root/setRootSinglesFlag 1
/gate/output/root/setRootNtupleFlag 1
/gate/output/root/setRootCoincidencesFlag 1

#       S E T U P  - A S C I I   F I L E
/gate/output/ascii/setOutFileSinglesAdderFlag 0
/gate/output/ascii/setOutFileSinglesReadoutFlag 0
/gate/output/ascii/setOutFileSinglesThresholderFlag 0
/gate/output/ascii/setOutFileSinglesUpholderFlag 0
/gate/output/ascii/setOutFileSinglesFlag 0
/gate/output/ascii/setOutFileHitsFlag 0
/gate/output/ascii/setOutFileCoincidencesFlag 0






The presence of this character is frequent in several current example 
macros of the latest GATE distributions.
You need to repeat the above correction every time you see this error 
message.
This will be certainly corrected in the next release.

Bosky, just to clarify things,  I do not believe that the exclamation 
marks (!) have anything to do this with this error message.
After correcting the macro as above, the macros run without having to 
remove the exclamation marks.

Guifen, I have attached the corrected version of your macro file.

Hope the source of this problem has been identified now.

Best regards
Nicolas






Ravindranath, Bosky wrote:
> Hi,
> I just removed all the exclamation marks from your comments  ( ! ) and your macro runs fine. You did not insert the startdaq command and set the time of  acquisition, so  I inserted that too at the end of your macro.
>
> /gate/application/setTimeSlice 10. s
> /gate/application/setTimeStart 0. s
> /gate/application/setTimeStop 10. s
>
> /gate/application/startDAQ
>
>
> .....seems to be running OK.
>
>
> Bosky
>
>
>
>
> -----Original Message-----
> From: gate-users-bounces at lists.healthgrid.org on behalf of Guifen Lin
> Sent: Sat 5/10/2008 7:55 AM
> To: gate-users at lists.healthgrid.org
> Subject: ??: Re: [Gate-users] how to solve "unexpected character after line continuation character"?
>  
> Hi,all gate-users
>   "unexpected character after line continuation character"? isn't solved.Here is my macro file mytest.mac.The results are:
>   [guifenlin at server myexample]$ Gate mytest.mac
>   *************************************************************
>  Geant4 version Name: geant4-09-00-patch-02    (25-January-2008)
>                       Copyright : Geant4 Collaboration
>                       Reference : NIM A 506 (2003), 250-303
>                             WWW : http://cern.ch/geant4
> *************************************************************
>   Visualization Manager instantiating...
> Visualization Manager initialising...
> Registering graphics systems...
>   You have successfully registered the following graphics systems.
> Current available graphics systems are:
>   ASCIITree (ATree)
>   DAWNFILE (DAWNFILE)
>   G4HepRep (HepRepXML)
>   G4HepRepFile (HepRepFile)
>   RayTracer (RayTracer)
>   VRML1FILE (VRML1FILE)
>   VRML2FILE (VRML2FILE)
>   OpenGLImmediateX (OGLIX)
>   OpenGLStoredX (OGLSX)
>   RayTracerX (RayTracerX)
>   Registering model factories...
>   You have successfully registered the following model factories.
> Registered model factories:
>   generic
>   drawByCharge
>   drawByParticleID
>   drawByOriginVolume
>   drawByAttribute
>   Registered filter factories:
>   chargeFilter
>   particleFilter
>   originVolumeFilter
>   attributeFilter
>   [GateSystemListManager::CheckScannerAutoCreation:
>         Creating new system based on volume inserter 'cylindricalPET'
> WARNING !
>  SetCutValueForOthers became obsolete.
>  It is harmless to remove this invokation without any side effects.
>  This dummy method implementation will be removed soon.
>    GateMaterialDatabase: did not load properties table for material 'GSO'.
>      This is only a problem when OPTICAL PHOTONS are transported in this material.'
>    GateMaterialDatabase: did not load properties table for material 'Water'.
>      This is only a problem when OPTICAL PHOTONS are transported in this material.'
> Nof Higher level 2
> unexpected character after line continuation character
>   *** G4Exception: Aborting execution ***
> Aborted
> [guifenlin at server myexample]$
>
>   
> Thanks in advance!
>     
> ---------------------------------
>   ????,??????!
>
>        
> ---------------------------------
>  ????,??????!
>
> _______________________________________________
> Gate-users mailing list
> Gate-users at lists.healthgrid.org
> http://lists.healthgrid.org/mailman/listinfo/gate-users
>
> __________ NOD32 3090 (20080509) Information __________
>
> This message was checked by NOD32 antivirus system.
> http://www.eset.com
>
>
>
>   





More information about the Gate-users mailing list