Skip to content
Snippets Groups Projects
Commit a5d6dd32 authored by Marilena Bandieramonte's avatar Marilena Bandieramonte
Browse files

Update HelloGeoReadNodeAction example

parent 87b52fb5
Branches
Tags
1 merge request!199Update GeoModelExamples
# The 'helloGeoRead' GeoModel example
# The 'HelloGeoReadNodeAction' GeoModel example
The `helloGeoRead` example shows you how to read persistified GeoModel data in a standalone program.
The `HelloGeoReadNodeAction` example shows you how to read persistified GeoModel data in a standalone program.
The example program:
......@@ -48,9 +48,9 @@ From your work folder:
```bash
git clone ssh://git@gitlab.cern.ch:7999/GeoModelDev/GeoModelExamples.git
mkdir build_hellogeoRead
cd build_hellogeoRead
cmake -DCMAKE_INSTALL_PREFIX=../install -DCMAKE_BUILD_TYPE=RelWithDebInfo ../GeoModelExamples/HelloGeoRead
mkdir build_hellogeoReadNodeAction
cd build_hellogeoReadNodeAction
cmake -DCMAKE_INSTALL_PREFIX=../install -DCMAKE_BUILD_TYPE=RelWithDebInfo ../GeoModelExamples/HelloGeoReadNodeAction
make -j4
make install
```
......@@ -60,14 +60,14 @@ make install
Get sample geometry data to play with:
```bash
wget https://atlas-vp1.web.cern.ch/atlas-vp1/doc_new/sample_datafiles/geometry/geometry-ATLAS-R2-2015-03-01-00.db
ln -s $PWD/geometry-ATLAS-R2-2015-03-01-00.db ../geometry.db
wget https://geomodel.web.cern.ch/atlas-geometry-data/geometry-ATLAS-R3S-2021-03-02-00.db
ln -s $PWD/geometry-ATLAS-R3S-2021-03-02-00.db ../geometry.db
```
Now, you can run the example by typing:
```bash
./hellogeoRead
./hellogeoReadNodeAction geometry.db
```
......
// Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
/*
* HelloGeo.cpp
* HelloGeoReadNodeAction.cpp
*
* Author: Riccardo Maria BIANCHI @ CERN
* Created on: May, 2022
......@@ -72,7 +72,7 @@ int main(int argc, char *argv[])
if(argc != 2)
{
fprintf(stderr, "\nERROR!\nusage: %s input.db\n\n", argv[0]);
fprintf(stderr, "\nERROR!\nUsage: %s geometry.db\n\n", argv[0]);
return 1;
}
// Get the input SQLite '.db' file containing the geometry
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment