GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » [FIXED] crash in reco macro (timebased simulation)
[FIXED] crash in reco macro (timebased simulation) [message #15132] Thu, 08 August 2013 09:17 Go to previous message
Jens Sören Lange is currently offline  Jens Sören Lange
Messages: 193
Registered: June 2005
first-grade participant
From: *wlan.uni-giessen.de
Dear all,

I am trying to run the MVD example macros for timebased simulation following the Torino tutorial (by Tobias)

https://indico.gsi.de/getFile.py/access?sessionId=9&resId=1&mate rialId=1&confId=1602

sep12 external packages and apr13 release

pandaroot/apr13/macro/mvd/TimeOrderedSim

> root -b run_sim_sttcombi_dpm.C
runs fine for 10 events.

> root -b run_digi_sttcombi_timebased.C
crashes with
---
DigiFileName: Mvd_Sim_timebased_digi.root
FairRootManager::OpenOutFile("Mvd_Sim_timebased_digi.root")
Error in <TFile::TFile>: file Mvd_Sim_timebased_par.root does not exist
-E- Could not open input file Mvd_Sim_timebased_par.root
Fatal in <FairParRootFileIo::open>: Could not open input file
aborting
---
I solved this (trivially) by
---
cp Mvd_Sim_par.root Mvd_Sim_timebased_par.root
cp Mvd_Sim.root Mvd_Sim_timebased.root
root -b run_digi_sttcombi_timebased.C // (again)
---
and then the digi macro runs o.k.
---

But then for the reco macro I get the following crash.

-bash-3.2$ root -b run_reco_sttcombi_timebased.C
*******************************************
* *
* W E L C O M E to R O O T *
* *
* Version 5.34/01 13 July 2012 *
* *
* You are welcome to visit our Web site *
* http://root.cern.ch *
* *
*******************************************

ROOT 5.34/01 (tags/v5-34-01@45034, Aug 04 2013, 16:03:00 on linuxx8664gcc)

CINT/ROOT C/C++ Interpreter version 5.18.00, July 2, 2010
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
root [0]
Processing run_reco_sttcombi_timebased.C...
Error: Can't call PndFileNameCreator::GetDigiFileName(false) in current scope run_reco_sttcombi_timebased.C:18:
Possible candidates are...
(in PndFileNameCreator)
/home/soeren/backup/panda/cbuild/lib/libgeneralTools.so -1:-1 0 public: string PndFileNameCreator::GetDigiFileName(string addon="",bool cut=false);
Error: non class,struct,union object GetDigiFileName(false) used with . or -> run_reco_sttcombi_timebased.C:18:
*** Interpreter error recovered ***

---

The problem seems to be just the way the digi filename is done:

TString MCFile = "Mvd_Sim_timebased.root";
PndFileNameCreator creator(MCFile.Data());
TString DigiFile = creator.GetDigiFileName(false).c_str();

---

Of course I can change it "by hand" but has this maybe ever been working?

thanks in advance, Soeren

[Updated on: Mon, 02 September 2013 15:45] by Moderator

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [FIXED] error after updating pandaroot
Next Topic: [FIXED] genfit was moved
Goto Forum:
  


Current Time: Fri Apr 26 06:19:38 CEST 2024

Total time taken to generate the page: 0.01345 seconds