Moving the Geometry from data file to the parameters [message #9443] |
Wed, 23 September 2009 12:33 |
Mohammad Al-Turany
Messages: 518 Registered: April 2004 Location: GSI, Germany
|
first-grade participant |
From: *gsi.de
|
|
Hello,
The geometry is moved from the data files to the parameter file, this make the fRun->LoadGeomerty() method obsolete, and requires loading the parameters wherever the geometry is needed. usually this is the case for digi and reco macro.
please test it and let me know.
Mohammad
|
|
|
Re: Moving the Geometry from data file to the parameters [message #9604 is a reply to message #9443] |
Fri, 23 October 2009 16:21 |
Elena Litvinenko
Messages: 20 Registered: March 2004 Location: JINR, Dubna
|
occasional visitor |
From: *jinr.ru
|
|
Hello,
I performed a simulation using "cbmroot/trunk/macro/run/run_sim.C" and tried to display geometry using correspondingly updated "eventDisplay.C" macro. The result is here:
- RTDB container factory FairBaseContFact
- RTDB container factory CbmFieldContFact
- RTDB container factory CbmPassiveContFact
- RTDB container factory CbmMvdContFact
- RTDB container factory CbmStsContFact
- RTDB container factory CbmRichContFact
- RTDB container factory CbmTofContFact
- RTDB container factory CbmEcalContFact
-I- FairRunAna: Opening Input file: data/test.mc.root
Warning in <TClass::TClass>: no dictionary for class CbmTrd is available
-I- FairRunAna::Init :
data/test.mc.root is connected with:
-I- Geometry was not found in the input file we will look in the friends if any!
create CbmFieldPar container CbmFieldPar
*************************************************************
initialisation for run id 1501042957
*************************************************************
Error in <TBufferFile::ReadObject>: trying to read an emulated class (CbmTrd) to store in a compiled pointer (TObject)
Info in <TGeoManager::TGeoManager>: Geometry Geometry, default geometry created
Warning in <TGeoManager::Init>: Deleting previous geometry: Geometry/default geometry
Info in <TGeoManager::CloseGeometry>: Geometry loaded from file...
Info in <TGeoManager::SetTopVolume>: Top volume is cave. Master volume is cave
Info in <TGeoManager::Voxelize>: Voxelizing...
Info in <TGeoNavigator::BuildCache>: --- Maximum geometry depth set to 100
Info in <TGeoManager::CloseGeometry>: 827935 nodes/ 235 volume UID's in FAIR geometry
Info in <TGeoManager::CloseGeometry>: ----------------modeler ready----------------
Container FairBaseParSet initialized from ROOT file.
Container CbmFieldPar initialized from ROOT file.
New field at 0x2e6bdb0, type 3
-I- CbmFieldMap: Reading field map from ROOT file /u/litvinen/cbm/trunk/input/FieldMuonMagnet.root
======================================================
---- : FieldMuonMagnet
----
---- Field type : Map sym3
----
---- Field map grid :
---- x = 0.000 to 300.0 cm, 151 grid points, dx = 2.000 cm
---- y = 0.000 to 300.0 cm, 151 grid points, dy = 2.000 cm
---- z = 0.000 to 448.0 cm, 225 grid points, dz = 2.000 cm
---- Field centre position: ( 0.000, 0.000, 50.00) cm
---- Field scaling factor: 1.000
----
---- Field at origin is ( 0.000, -7.275, -2.727e-09) kG
======================================================
-E- FairRootManager Branch: GeoTracks not found in Tree
-E- FairRootManager Branch: GeoTracks not found in Tree
FairMCPointDraw::Init() branch Monte-Carlo Tracks Not found! Task will be deactivated
Info in <TGeoManager::SetVisLevel>: Automatic visible depth disabled
Warning in <TGLScene::RenderElements>: Timeout reached, not all elements rendered.
root [1] Warning in <TGLScene::RenderElements>: Timeout reached, not all elements rendered.
In other tests I also can not find the geometry information. Which class is now responsible for the real writing this information to the parameter file? My "cbmroot/trunk" revision number is 6780
|
|
|
|
|
Re: Moving the Geometry from data file to the parameters [message #9612 is a reply to message #9443] |
Mon, 26 October 2009 11:30 |
Arun Prakash
Messages: 11 Registered: March 2008 Location: Department of Physics,BHU...
|
occasional visitor |
From: *gsi.de
|
|
I am performing the simulations for MuCh. I could successfully perform the transport and segmnetation. Now when I am running the much_hits_gem.C (with simple gem) I am getting the following error .
Processing much_hits_gem.C...
PSaid instance created... access via gSaid->f()
- RTDB container factory FairBaseContFact
- RTDB container factory CbmFieldContFact
- RTDB container factory CbmPassiveContFact
- RTDB container factory CbmStsContFact
- RTDB container factory CbmRichContFact
- RTDB container factory CbmTrdContFact
- RTDB container factory CbmTofContFact
- RTDB container factory CbmEcalContFact
- RTDB container factory CbmMuchContFact
-I- FairRunAna: Opening Input file: /u/cbmgast5/arun/cbmroot/macro/much/data/mc.box.0009.root
Info in <CbmMuchGeoScheme::CbmMuchGeoScheme>: CbmMuchGeoScheme created
-I- FairRunAna::Init :
/u/cbmgast5/arun/cbmroot/macro/much/data/mc.box.0009.root is connected with:
-I- Geometry was not found in the input file we will look in the friends if any!
create CbmFieldPar container CbmFieldPar
*************************************************************
initialisation for run id 1456339567
*************************************************************
Info in <TGeoManager::TGeoManager>: Geometry Geometry, default geometry created
Warning in <TGeoManager::Init>: Deleting previous geometry: Geometry/default geometry
Info in <TGeoManager::CloseGeometry>: Geometry loaded from file...
Info in <TGeoManager::SetTopVolume>: Top volume is cave. Master volume is cave
Info in <TGeoManager::Voxelize>: Voxelizing...
Info in <TGeoNavigator::BuildCache>: --- Maximum geometry depth set to 100
Info in <TGeoManager::CloseGeometry>: 5512 nodes/ 4513 volume UID's in FAIR geometry
Info in <TGeoManager::CloseGeometry>: ----------------modeler ready----------------
Container FairBaseParSet initialized from ROOT file.
Container CbmFieldPar initialized from ROOT file.
New field at 0xad00308, type 3
-I- CbmFieldMap: Reading field map from ROOT file /u/cbmgast5/arun/cbmroot/input/FieldMuonMagnet.root
======================================================
---- : FieldMuonMagnet
----
---- Field type : Map sym3
----
---- Field map grid :
---- x = 0.000 to 150.0 cm, 151 grid points, dx = 1.000 cm
---- y = 0.000 to 150.0 cm, 151 grid points, dy = 1.000 cm
---- z = 0.000 to 250.0 cm, 251 grid points, dz = 1.000 cm
---- Field centre position: ( 0.000, 0.000, 50.00) cm
---- Field scaling factor: 1.000
----
---- Field at origin is ( 0.000, -7.272, -2.724e-09) kG
======================================================
*** Break *** segmentation violation
terminate called after throwing an instance of 'std::bad_alloc'
what(): St9bad_alloc
Kindly advise me as how to rectify this error
|
|
|
|
|