GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » Fairroot » General Discussion » FairRunAna::SetGeomFile seems not to work
Re: FairRunAna::SetGeomFile seems not to work [message #14844 is a reply to message #14842] Thu, 06 June 2013 09:43 Go to previous messageGo to previous message
Mohammad Al-Turany is currently offline  Mohammad Al-Turany
Messages: 518
Registered: April 2004
Location: GSI, Germany
first-grade participant
From: *gsi.de
Hallo Volker,

Yes, this is true! This method was implemented at the time where the the geometry was saved in the data file, and as we move the geometry to the parameters we did not think about it (Sorry!!). Anyway, I created a new Parameter container for the the geometry now and this will be filled by the simulation and case you do not set your geometry manually it will be initialized. So nothing should changed for you except that it should work now! (Fairbase Trunk 20129)

I test it with our tutorials: runing run_digi macro in example/Tutorial3

Quote:


root run_digi.C -l
root [0]
Processing run_digi.C...
FairRootManager::OpenOutFile("data/testdigi.root")
[INFO ] The input consists out of the following trees and files:
[INFO ] - cbmsim
[INFO ] - data/testrun.root
[INFO ] Parameter and input file are available, Assure that basic info is there for the run!
[INFO ] The number of entries in chain is 10
[INFO ] Branch: EventHeader. not found in Tree
[INFO ] Branch: EventHeader. not found in Tree
[INFO ] No event Header was found!!!
[INFO ] Branch: EventHeader. not found in Tree
[INFO ] Branch: EventHeader. not found in Tree

*************************************************************
initialisation for run id 1370503422
*************************************************************
-I- FairRunTimeDB::InitContainer() FairGeoParSet
Info in <TGeoManager::CloseGeometry>: Geometry loaded from file...
Info in <TGeoManager::SetTopVolume>: Top volume is cave. Master volume is cave
Info in <TGeoNavigator::BuildCache>: --- Maximum geometry depth set to 100
Info in <TGeoManager::Voxelize>: Voxelizing...
Info in <TGeoManager::CountLevels>: max level = 1, max placements = 8
Info in <TGeoManager::CloseGeometry>: 9 nodes/ 5 volume UID's in FAIR geometry
Info in <TGeoManager::CloseGeometry>: ----------------modeler ready----------------
Container FairGeoParSet initialized from ROOT file.
-I- FairRunTimeDB::InitContainer() FairBaseParSet
Container FairBaseParSet initialized from ROOT file.

*************************************************************
initialisation for run id 1370503422
*************************************************************
-I- FairRunTimeDB::InitContainer() FairGeoParSet
-I- FairRunTimeDB::InitContainer() FairBaseParSet

*************************************************************
initialisation for run id 1370503422
*************************************************************
-I- FairRunTimeDB::InitContainer() FairGeoParSet
-I- FairRunTimeDB::InitContainer() FairBaseParSet
[INFO ] The number of entries in chain is 10


Macro finished successfully.
Output file is data/testdigi.root
Parameter file is data/testparams.root
Real time 0.039017 s, CPU time 0.03 s

Test passed
All ok
root [1]




and if you add the line fRun->SetGeomFile("data/geofile_full.root") to the macro you get:



Quote:

root run_digi.C -l
root [0]
Processing run_digi.C...
FairRootManager::OpenOutFile("data/testdigi.root")
[INFO ] Opening Geometry input file: data/geofile_full.root
Info in <TGeoManager::CloseGeometry>: Geometry loaded from file...
Info in <TGeoManager::SetTopVolume>: Top volume is cave. Master volume is cave
Info in <TGeoNavigator::BuildCache>: --- Maximum geometry depth set to 100
Info in <TGeoManager::Voxelize>: Voxelizing...
Info in <TGeoManager::CountLevels>: max level = 1, max placements = 8
Info in <TGeoManager::CloseGeometry>: 9 nodes/ 5 volume UID's in FAIR geometry
Info in <TGeoManager::CloseGeometry>: ----------------modeler ready----------------
[INFO ] The input consists out of the following trees and files:
[INFO ] - cbmsim
[INFO ] - data/testrun.root
[INFO ] Parameter and input file are available, Assure that basic info is there for the run!
[INFO ] The number of entries in chain is 10
[INFO ] Branch: EventHeader. not found in Tree
[INFO ] Branch: EventHeader. not found in Tree
[INFO ] No event Header was found!!!
[INFO ] Branch: EventHeader. not found in Tree
[INFO ] Branch: EventHeader. not found in Tree

*************************************************************
initialisation for run id 1370503422
*************************************************************
-I- FairRunTimeDB::InitContainer() FairBaseParSet
Container FairBaseParSet initialized from ROOT file.

*************************************************************
initialisation for run id 1370503422
*************************************************************
-I- FairRunTimeDB::InitContainer() FairBaseParSet

*************************************************************
initialisation for run id 1370503422
*************************************************************
-I- FairRunTimeDB::InitContainer() FairBaseParSet
[INFO ] The number of entries in chain is 10


Macro finished successfully.
Output file is data/testdigi.root
Parameter file is data/testparams.root
Real time 0.0395799 s, CPU time 0.04 s

Test passed
All ok







Cheers,

Mohammad



 
Read Message
Read Message
Read Message
Read Message
Previous Topic: trouble running event display
Next Topic: FairBaseParSet not initialized
Goto Forum:
  


Current Time: Wed Oct 09 12:49:32 CEST 2024

Total time taken to generate the page: 0.00878 seconds