Message: Cannot create ROOT file with a relative path within the filename Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Cannot create ROOT file with a relative path within the filename 

Forum: Analysis
Date: 01 Sep, 2017
From: Delaune Olivier <Delaune Olivier>

I tried to set a filename that contains a relative path. Basically, my ROOT filename is: macroName+".root". For example, I get such filename: 60Coc.in.root I wanted to add a relative path in order to write the ROOT file in .. So I tried to set the following filename: ../60Coc.in.root

So I just do something like

G4String filename = "../" + macroName + ".root"

analysisManager->OpenFile(filename)

Yet, it looks like it is not managed by GEANT4 10.3.2 since in multithreading, I get
G4WT2 > filename: ../60Coc.in.root
G4WT2 > tools::wroot::file::file : can't open "_t2../60Coc.in.root".
G4WT2 >
-------- WWW -------- G4Exception-START -------- WWW -------
*** G4Exception : Analysis_W0001
      issued by : G4RootAnalysisManager::OpenFile()
      Cannot open file ../60Coc.in.root
*** This is just a warning message. ***
-------- WWW -------- G4Exception-END-------- WWW -------

Is there a way to specify a relative path in the filename?

Should I open a bug report in order this can be managed in the next GEANT4 release?

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: Cannot create ROOT file with a relative path within the filename   (Ivana Hrivnacova - 05 Sep, 2017)
(_ Question: Re: Cannot create ROOT file with a relative path within the filename   (Delaune Olivier - 06 Sep, 2017)
(_ None: Re: Cannot create ROOT file with a relative path within the filename   (Ivana Hrivnacova - 06 Sep, 2017)
(_ None: Re: Cannot create ROOT file with a relative path within the filename   (Ivana Hrivnacova - 06 Sep, 2017)
(_ Ok: Re: Cannot create ROOT file with a relative path within the filename   (Delaune Olivier - 06 Sep, 2017)
(_ None: Re: Cannot create ROOT file with a relative path within the filename   (nick - Feb 09, 07:08)
(_ None: Re: Cannot create ROOT file with a relative path within the filename   (Ivana Hrivnacova - Feb 19, 08:49)
 Add Message Add Message
to: "Cannot create ROOT file with a relative path within the filename"

 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 ]