BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
postrun_update.C File Reference

Go to the source code of this file.

Functions

int update_raw_file_path (const char *raw_file_directory="/eos/nica/bmn/exp/raw/run9/beam/", int period_number=9, int start_run=1, int end_run=100000)
int update_run_period_time (int period_number, int start_run, int end_run)
int update_detector_parameter_range (int period_number, int new_start_run, int new_end_run, int prev_start_run=-1, int prev_end_run=-1, bool delete_prev_runs=false)
int update_run_metadata_from_elog (int period=9, int start_run=1, int end_run=100000)
int compare_uniconda_elog (int period=9, int start_run=1, int end_run=100000, bool isChangeRunType=false, bool isShowInfo=false)
int postrun_update (int period_number=9, int start_run=8968, int end_run=9094, int prev_start_run=1, int prev_end_run=100000)
 Main post run procedure to correct|update obtained metadata parameters.

Function Documentation

◆ compare_uniconda_elog()

int compare_uniconda_elog ( int period = 9,
int start_run = 1,
int end_run = 100000,
bool isChangeRunType = false,
bool isShowInfo = false )

Definition at line 268 of file postrun_update.C.

References TObjArray::At(), TString::CompareTo(), ElogRecord::GetBeam(), UniRun::GetBeamParticle(), ElogRecord::GetEnergy(), UniRun::GetEnergy(), TObjArray::GetEntriesFast(), ElogRecord::GetRecords(), UniRun::GetRun(), UniRun::GetRunNumbers(), UniRun::GetRunType(), ElogRecord::GetTarget(), UniRun::GetTargetParticle(), ElogRecord::GetTypeId(), i, TString::kBoth, TString::kIgnoreCase, UniqueRunNumber::period_number, UniqueRunNumber::run_number, UniRun::SetRunType(), and TString::Strip().

Referenced by postrun_update().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ postrun_update()

int postrun_update ( int period_number = 9,
int start_run = 8968,
int end_run = 9094,
int prev_start_run = 1,
int prev_end_run = 100000 )

Definition at line 458 of file postrun_update.C.

References compare_uniconda_elog(), update_detector_parameter_range(), update_run_metadata_from_elog(), and update_run_period_time().

Here is the call graph for this function:

◆ update_detector_parameter_range()

int update_detector_parameter_range ( int period_number,
int new_start_run,
int new_end_run,
int prev_start_run = -1,
int prev_end_run = -1,
bool delete_prev_runs = false )

Definition at line 87 of file postrun_update.C.

References TString::Format(), UniConnection::GetSQLServer(), TSQLStatement::NextIteration(), UniConnection::Open(), TSQLStatement::Process(), TSQLStatement::SetInt(), and TSQLServer::Statement().

Referenced by postrun_update().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ update_raw_file_path()

int update_raw_file_path ( const char * raw_file_directory = "/eos/nica/bmn/exp/raw/run9/beam/",
int period_number = 9,
int start_run = 1,
int end_run = 100000 )

Definition at line 2 of file postrun_update.C.

References TString::Format(), UniConnection::GetSQLServer(), TSQLStatement::NextIteration(), UniConnection::Open(), TSQLStatement::Process(), TSQLStatement::SetInt(), TSQLStatement::SetString(), and TSQLServer::Statement().

Here is the call graph for this function:

◆ update_run_metadata_from_elog()

int update_run_metadata_from_elog ( int period = 9,
int start_run = 1,
int end_run = 100000 )

Definition at line 168 of file postrun_update.C.

References ElogRecord::GetBeam(), UniRun::GetBeamParticle(), ElogRecord::GetEnergy(), UniRun::GetEnergy(), TObjArray::GetEntriesFast(), UniRun::GetFieldVoltage(), ElogRecord::GetRecords(), UniRun::GetRun(), UniRun::GetRunNumbers(), UniRun::GetRunType(), ElogRecord::GetSp41(), ElogRecord::GetTarget(), UniRun::GetTargetParticle(), ElogRecord::GetTypeId(), i, TString::kBoth, UniqueRunNumber::period_number, UniqueRunNumber::run_number, UniRun::SetBeamParticle(), UniRun::SetEnergy(), UniRun::SetFieldVoltage(), UniRun::SetRunType(), UniRun::SetTargetParticle(), and TString::Strip().

Referenced by postrun_update().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ update_run_period_time()

int update_run_period_time ( int period_number,
int start_run,
int end_run )

Definition at line 45 of file postrun_update.C.

References TString::Format(), UniConnection::GetSQLServer(), TSQLStatement::NextIteration(), UniConnection::Open(), TSQLStatement::Process(), TSQLStatement::SetInt(), and TSQLServer::Statement().

Referenced by postrun_update().

Here is the call graph for this function:
Here is the caller graph for this function: