GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » PANDAroot simulation with FTOF
PANDAroot simulation with FTOF [message #12133] Sun, 26 June 2011 15:36 Go to next message
Yuri Naryshkin is currently offline  Yuri Naryshkin
Messages: 42
Registered: August 2008
continuous participant
From: *desy.de
Dear Colleagues,
I try to run PANDAroot with FTOF
I use standard procedure for the installation:

svn co https://subversion.gsi.de/fairroot/pandaroot/trunk pandaroot

cd pandaroot
mkdir buildPanda
cd buildPanda
cmake ../
. ./config.sh
make

then I can do some simulations in pandaroot/macro/ftof directory
(modifying CMakeLists.txt ...)

working OK.

When I would likr to start example with charmonium
(in dir pandaroot/tutorials/charmonium/jul10)
in all output files there is no info about FTOFan error message

I tryed to add some string in run_sim_tpccombi.C (like it is done for TOF):
FairDetector *FTof = new PndFtof("FTOF",kTRUE);
FTof->SetGeometryFileName("ftofwall.root");
fRun->AddModule(FTof);

and run root -b run_sim_tpccombi.C
but I've got an error message:

[INFO ] Media file used : /u/naryshk/ver1/pandaroot/geometry/media_pnd.geo
Info in (PndGeoHandling::Instance): Making a new instance using the framework.
fgeoName3 /u/naryshk/ver1/pandaroot/geometry/emc_module4_StraightGeo24.4.root
-I container name PndEmcGeoPar
Error: Symbol PndFtof is not defined in current scope run_sim_tpccombi.C:79:
Error: type PndFtof not defined FILE:/u/naryshk/ver1/pandaroot/tutorials/charmonium/jul10/./run_sim_tpcc ombi.C LINE:79
*** Interpreter error recovered ***

Could you please tell me should I add some additional dir for FTOF and some files in addition?
Is it possible to run charmonium example
with FTOF included into the simulation or I should use just
macro ftof files for the simulation?

Best Regards, Yuri.
Re: PANDAroot simulation with FTOF [message #12134 is a reply to message #12133] Sun, 26 June 2011 18:50 Go to previous messageGo to next message
asanchez is currently offline  asanchez
Messages: 350
Registered: March 2006
first-grade participant
From: *pools.arcor-ip.net
Dear Yuri,
you should first add the following line to the
CMakeList.txt at the trunk directory

add_subdirectory (ftof)

then go to your build directory and execute make to compile.

then it should work,
let me know in any case if you have problems again and
i will have take a look into the code.

kind regards

ALicia S.
Re: PANDAroot simulation with FTOF [message #12135 is a reply to message #12133] Sun, 26 June 2011 18:53 Go to previous messageGo to next message
asanchez is currently offline  asanchez
Messages: 350
Registered: March 2006
first-grade participant
From: *pools.arcor-ip.net
Hi again, i think you should add the link to the PndFTof in your
charmonium macro so as it is done in the macro/ftof macro.
The problem is that the information related to PndFtof is not included
in the default settings macro rootlogon.C.
I hope it works

regards
ALicia.
Re: PANDAroot simulation with FTOF [message #12136 is a reply to message #12135] Sun, 26 June 2011 20:07 Go to previous messageGo to next message
Yuri Naryshkin is currently offline  Yuri Naryshkin
Messages: 42
Registered: August 2008
continuous participant
From: *desy.de
Dear Alicia,
I add string: add_subdirectory (ftof)
to file pandaroot/CMakeLists.txt (copy of trunk from svn) attached,
then:
cd pandaroot/buildPanda
make clean
cmake ../
. ./config.sh
make

then I add some lines to pandaroot/tutorials/charmonium/jul10/run_sim_tpccombi.C:

FairDetector *FTof = new PndFtof("FTOF",kTRUE);
FTof->SetGeometryFileName("ftofwall.root");
fRun->AddModule(FTof);

and to pandaroot/tutorials/charmonium/jul10/run_digi_tpccombi.C (attached):
// ----- FTOF hit producers ---------------------------------
PndFTofHitProducerIdeal* tofhit = new PndFTofHitProducerIdeal();
ftofhit->SetVerbose(iVerbose);
fRun->AddTask(ftofhit);

then run it:
root -b run_sim_tpccombi.C

but stil the result is:

Processing run_sim_tpccombi.C...

PSaid instance created... access via gSaid->f()

[INFO ] Media file used : /u/naryshk/ver1/pandaroot/geometry/media_pnd.geo
Info in (PndGeoHandling::Instance): Making a new instance using the framework.
fgeoName3 /u/naryshk/ver1/pandaroot/geometry/emc_module4_StraightGeo24.4.root
-I container name PndEmcGeoPar
Error: Symbol PndFtof is not defined in current scope run_sim_tpccombi.C:79:
Error: type PndFtof not defined FILE:/u/naryshk/ver1/pandaroot/tutorials/charmonium/jul10/./run_sim_tpcc ombi.C LINE:79
*** Interpreter error recovered ***

Best Regards, Yuri.
Re: PANDAroot simulation with FTOF [message #12139 is a reply to message #12136] Mon, 27 June 2011 10:39 Go to previous messageGo to next message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *to.infn.it
Have you added in your macro (or in the rootlogon.C) the line:

gSystem->Load("libFtof");


?
Re: PANDAroot simulation with FTOF [message #12141 is a reply to message #12139] Mon, 27 June 2011 11:08 Go to previous messageGo to next message
asanchez is currently offline  asanchez
Messages: 350
Registered: March 2006
first-grade participant
From: *kph.uni-mainz.de
Dear yuri, as Stephano has remarked, (sorry probably i should have been more detailed with explanations), you should add
after the line where you set the rootlogon.C

gROOT->Macro("$VMCWORKDIR/gconfig/rootlogon.C");

the needed library for ftof

gSystem->Load("libFtof");

now it should work,
best regards
Alicia.
Re: PANDAroot simulation with FTOF [message #12148 is a reply to message #12141] Mon, 27 June 2011 17:33 Go to previous message
Yuri Naryshkin is currently offline  Yuri Naryshkin
Messages: 42
Registered: August 2008
continuous participant
From: *desy.de
Dear Alicia and Stefano,
thank you very much for you help!
all the macros are working and finally
FTOF informations is in root files.
Best regards, Yuri.
Previous Topic: Tutorial for analysis macros on the GRID
Next Topic: alien initialization and PANDA virtual organization
Goto Forum:
  


Current Time: Thu Nov 14 12:31:17 CET 2024

Total time taken to generate the page: 0.00689 seconds