GSI Forum - RDF feed
type: channel
description: GSI Helmholtzzentrum für Schwerionenforschung
items: Problem: implementing/using PndGeoHandling in the SciTil simulation
items: Re: Problem: implementing/using PndGeoHandling in the SciTil simulation

Problem: implementing/using PndGeoHandling in the SciTil simulation
type: item
description: Hi all, at the moment I am working on an update of the implementation of the SciTil detector (barrel TOF) in pandaroot. Therefore I want to use the PndGeoHandling class to generate shortIDs for my sensitive Sensors. I tried to get an idea how to implement the class from the code of other sub detector groups which are using the class, but at least for me it seams that its not running in my code in the same way. As a first step i just tried to implement the class in the (event based) simulation stage. Therefor i defined a new variable in the PndSciT.h file PndGeoHandling* fGeoH; and modified the PndSciT.cxx file e.g. adding the following lines to the constructor if ( fGeoH == NULL ) fGeoH = PndGeoHandling::Instance(); originally i also tried to make use out of the class, but since my code was not working i reduced it now to just these 3 lines, which already cause a problem. so whats the problem: When i run the simulation (using the macro provided by macro/run/sim_complete.C) the simulation runs till the end and produces an output, but i get the following warnings at the end of the simulation. [WARNING] Function FairRun::GetWriteRunInfoFile() is depcrecated and will vanish in future versions of FairRoot. Please use FairRun::IsRunInfoGenerated() instead. [INFO ] *** PndEmcGeoPar written to ROOT file version: 4 [INFO ] *** PndSensorNamePar written to ROOT file version: 4 [INFO ] *** PndEmcDigiPar written to ROOT file version: 4 [INFO ] *** PndEmcDigiNonuniformityPar written to ROOT file version: 4 Warning in <TBufferFile::WriteObjectAny>: since FairRuntimeDb has no public constructor which can be called without argument, objects of this class can not be read with the current library. You will need to add a default constructor before attempting to read it. [INFO ] *** FairBaseParSet written to ROOT file version: 4 [INFO ] *** FairGeoParSet written to ROOT file version: 3 [INFO ] *** PndMultiFieldPar written to ROOT file version: 3 [INFO ] *** PndGeoPassivePar written to R…
creator: Dominik Steinschaden
date: 2015-04-21T14:01:42-00:00

Re: Problem: implementing/using PndGeoHandling in the SciTil simulation
type: item
description: Where did you put the constructor?
creator: StefanoSpataro
date: 2015-04-21T14:18:52-00:00

Re: Problem: implementing/using PndGeoHandling in the SciTil simulation
type: item
description: I implemented the lines in the constructor of the PndSciT class, which is loaded in the simulation stage // ----- Default constructor ------------------------------------------- PndSciT::PndSciT() : FairDetector(), fSciTCollection(0), fGeoH(NULL) { fSciTCollection = new TClonesArray("PndSciTPoint"); fVerboseLevel = 0; fListOfSensitives.push_back("SENSOR");//Root_Test.root // Volumes containing "SENSOR" in the name will be processed in the process hit funktion if ( fGeoH == NULL ) fGeoH = PndGeoHandling::Instance(); } // ------------------------------------------------------------------------- // ----- Standard constructor ------------------------------------------ PndSciT::PndSciT(const char* name, Bool_t active) : FairDetector(name, active), fSciTCollection(0), fGeoH(NULL) { fSciTCollection = new TClonesArray("PndSciTPoint"); fVerboseLevel = 0; fListOfSensitives.push_back("SENSOR");//Root_Test.root // Volumes containing "SENSOR" in the name will be processed in the process hit funktion if ( fGeoH == NULL ) fGeoH = PndGeoHandling::Instance(); } But this is already causing problems even if I'm not using the PndGeoHandling in the Initialation() or the processHits() funktion to produce the shortIDs.
creator: Dominik Steinschaden
date: 2015-04-21T15:00:33-00:00

Re: Problem: implementing/using PndGeoHandling in the SciTil simulation
type: item
description: I have just tried and it worked. sim and digi run fine. Maybe you messed up something. If you prefer I can commit my version so that you can use it as starting point.
creator: StefanoSpataro
date: 2015-04-21T15:09:11-00:00

Re: Problem: implementing/using PndGeoHandling in the SciTil simulation
type: item
description: I installed a complete new Trunk version of pandaroot now, and just implemented the lines i posted before. In addition to be able to compile the code I included #include "PndGeoHandling.h" to the header file and I modified the "CMakeLists.txt" in the SciTil folder to Include the PndGeoHandling as shown below.Set (INCLUDE_DIRECTORIES ${CMAKE_SOURCE_DIR}/field ${CMAKE_SOURCE_DIR}/pnddata ${CMAKE_SOURCE_DIR}/pnddata/SciTData ${CMAKE_SOURCE_DIR}/scitil ${CMAKE_SOURCE_DIR}/genfit ${CMAKE_SOURCE_DIR}/PndTools/generalTools # <------------------- Added for PndGeoHandling ) set(DEPENDENCIES Base GeoBase ParBase PndData AnalysisTools generalTools) # <------------- added generalTools Maybe i have done anything wrong here. So if the code is running fine in your test, could you be so kind and commit it to the trunk, so i can just download it and have a look what is wrong in my code, and use your code as a starting point as you suggested. kind regards Dominik Steinschaden
creator: Dominik Steinschaden
date: 2015-04-22T10:03:08-00:00

Re: Problem: implementing/using PndGeoHandling in the SciTil simulation
type: item
description: Committed!
creator: StefanoSpataro
date: 2015-04-22T10:12:09-00:00

Re: Problem: implementing/using PndGeoHandling in the SciTil simulation
type: item
description: Tank you. As you said your code is working fine. the strange thing is, that for me your code seems to be exactly the same as my code. Edit: i see now that you also did some changes to the CMakelists.tx Thanks for the help i will take the last Trunk version now as a starting point. And if i find my the error i will post it.
creator: Dominik Steinschaden
date: 2015-04-22T11:55:27-00:00

Re: Problem: implementing/using PndGeoHandling in the SciTil simulation
type: item
description: Without the files you are using, it is hard to understand what could be gone wrong.
creator: StefanoSpataro
date: 2015-04-22T12:00:29-00:00