BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
write_actual_geometry_to_db.C
Go to the documentation of this file.
1
R__ADD_INCLUDE_PATH
($VMCWORKDIR)
2
#include "database/uni_db/examples/geometry/write_geometry_to_db.C"
3
#include "macro/run/run_sim_bmn.C"
4
5
/**
6
* Macro for writing the currently used full setup geometry to the UniConDa Database for the given runs
7
* Technically it runs run_sim_bmn.C and writes obtained "full_geometry.root" to the database
8
* Example: root 'write_actual_geometry_to_db.C(8, 6310, 8427)'
9
**/
10
void
write_actual_geometry_to_db
(
int
period = 9,
int
start_run = 1,
int
end_run = 100000)
11
{
12
gRandom
->SetSeed(0);
13
TString
simFileName =
Form
(
"$VMCWORKDIR/macro/run/bmnsim_%d.root"
,
UInt_t
(
gRandom
->Integer(UINT32_MAX)));
14
15
run_sim_bmn(
""
, simFileName, 0, 1, BOX,
kTRUE
,
kTRUE
);
16
gSystem
->Unlink(simFileName);
17
18
write_geometry_to_db(
"full_geometry.root"
, period, start_run, period, end_run);
19
// gSystem->Unlink("full_geometry.root");
20
}
UInt_t
unsigned int UInt_t
kTRUE
constexpr Bool_t kTRUE
R__ADD_INCLUDE_PATH
#define R__ADD_INCLUDE_PATH(PATH)
gRandom
R__EXTERN TRandom * gRandom
Form
char * Form(const char *fmt,...)
gSystem
R__EXTERN TSystem * gSystem
TString
write_actual_geometry_to_db
void write_actual_geometry_to_db(int period=9, int start_run=1, int end_run=100000)
Macro for writing the currently used full setup geometry to the UniConDa Database for the given runs ...
Definition
write_actual_geometry_to_db.C:10
database
examples
uni_db
geometry
write_actual_geometry_to_db.C
Generated on
for BmnRoot by
1.17.0