BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
write_actual_geometry_to_db.C
Go to the documentation of this file.
1R__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 **/
10void 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}
unsigned int UInt_t
constexpr Bool_t kTRUE
#define R__ADD_INCLUDE_PATH(PATH)
R__EXTERN TRandom * gRandom
char * Form(const char *fmt,...)
R__EXTERN TSystem * gSystem
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 ...