BmnRoot
Loading...
Searching...
No Matches
UniRun Class Reference

#include <UniRun.h>

Public Member Functions

virtual ~UniRun ()
 
int GetPeriodNumber ()
 get period number of the current run
 
int GetRunNumber ()
 get run number of the current run
 
int GetRunType ()
 get run type of the current run
 
TDatime GetStartDatetime ()
 get start datetime of the current run
 
TDatime * GetEndDatetime ()
 get end datetime of the current run
 
TString GetBeamParticle ()
 get beam particle of the current run
 
TString GetTargetParticle ()
 get target particle of the current run
 
double * GetEnergy ()
 get energy of the current run
 
double * GetFieldVoltage ()
 get field voltage of the current run
 
int * GetEventCount ()
 get event count of the current run
 
int * GetGeometryId ()
 get geometry id of the current run
 
int GetRunQuality ()
 get run quality of the current run
 
int SetPeriodNumber (int period_number)
 set period number of the current run
 
int SetRunNumber (int run_number)
 set run number of the current run
 
int SetRunType (int run_type)
 set run type of the current run
 
int SetStartDatetime (TDatime start_datetime)
 set start datetime of the current run
 
int SetEndDatetime (TDatime *end_datetime)
 set end datetime of the current run
 
int SetBeamParticle (TString beam_particle)
 set beam particle of the current run
 
int SetTargetParticle (TString target_particle)
 set target particle of the current run
 
int SetEnergy (double *energy)
 set energy of the current run
 
int SetFieldVoltage (double *field_voltage)
 set field voltage of the current run
 
int SetEventCount (int *event_count)
 set event count of the current run
 
int SetGeometryId (int *geometry_id)
 set geometry id of the current run
 
int SetRunQuality (int run_quality)
 set run quality of the current run
 
void Print ()
 print information about current run
 
TObjArray * GetRawFiles ()
 get array of raw files (UniRawFile*) corresponding to the run (return nullptr if an error occured)
 
 ClassDef (UniRun, 1)
 
virtual ~UniRun ()
 
int GetPeriodNumber ()
 get period number of the current run
 
int GetRunNumber ()
 get run number of the current run
 
int GetRunType ()
 get run type of the current run
 
TDatime GetStartDatetime ()
 get start datetime of the current run
 
TDatime * GetEndDatetime ()
 get end datetime of the current run
 
TString GetBeamParticle ()
 get beam particle of the current run
 
TString GetTargetParticle ()
 get target particle of the current run
 
double * GetEnergy ()
 get energy of the current run
 
double * GetFieldVoltage ()
 get field voltage of the current run
 
int * GetEventCount ()
 get event count of the current run
 
int * GetGeometryId ()
 get geometry id of the current run
 
int GetRunQuality ()
 get run quality of the current run
 
int SetPeriodNumber (int period_number)
 set period number of the current run
 
int SetRunNumber (int run_number)
 set run number of the current run
 
int SetRunType (int run_type)
 set run type of the current run
 
int SetStartDatetime (TDatime start_datetime)
 set start datetime of the current run
 
int SetEndDatetime (TDatime *end_datetime)
 set end datetime of the current run
 
int SetBeamParticle (TString beam_particle)
 set beam particle of the current run
 
int SetTargetParticle (TString target_particle)
 set target particle of the current run
 
int SetEnergy (double *energy)
 set energy of the current run
 
int SetFieldVoltage (double *field_voltage)
 set field voltage of the current run
 
int SetEventCount (int *event_count)
 set event count of the current run
 
int SetGeometryId (int *geometry_id)
 set geometry id of the current run
 
int SetRunQuality (int run_quality)
 set run quality of the current run
 
void Print ()
 print information about current run
 
TObjArray * GetRawFiles ()
 get array of raw files (UniRawFile*) corresponding to the run (return nullptr if an error occured)
 
 ClassDef (UniRun, 1)
 

Static Public Member Functions

static UniRunCreateRun (int period_number, int run_number, int run_type, TDatime start_datetime, TDatime *end_datetime, TString beam_particle, TString target_particle, double *energy, double *field_voltage, int *event_count, int *geometry_id, int run_quality)
 add new run to the database
 
static UniRunGetRun (int period_number, int run_number)
 get run from the database
 
static int CheckRunExists (int period_number, int run_number)
 check run exists in the database: 1- true, 0 - false, <0 - database operation error
 
static int DeleteRun (int period_number, int run_number)
 delete run from the database
 
static int PrintAll ()
 print all runs
 
static int GetRunNumbers (UniqueRunNumber *&run_numbers, int start_period, int start_run=0, int end_period=-1, int end_run=-1)
 
static int GetRunNumbers (UniqueRunNumber *&run_numbers)
 
static int SetRootGeometry (int start_period, int start_run, int end_period, int end_run, unsigned char *root_geometry, Long_t size_root_geometry)
 set geometry binary data (geometry file's data) for runs from start_run_number to end_run_number
 
static int GetRootGeometry (int period_number, int run_number, unsigned char *&root_geometry, Long_t &size_root_geometry)
 get geometry binary data (geometry file's data) for selected run number
 
static int WriteGeometryFile (int start_period, int start_run, int end_period, int end_run, const char *geo_file_path)
 write geometry file for runs from start_run_number to end_run_number to the database
 
static int ReadGeometryFile (int period_number, int run_number, char *geo_file_path, bool usePrevGeometryIfMissing=false)
 
static int ReadPreviousGeometryFile (int &period_number, int &run_number, char *geo_file_path)
 
static double FindPreviousFieldVoltage (int &period_number, int &run_number)
 
static TObjArray * Search (UniSearchCondition &search_condition)
 get runs corresponding to the specified single condition and set owner for search_condition to kTRUE
 
static TObjArray * Search (TObjArray &search_conditions)
 get runs corresponding to the specified (vector) conditions and set owner for search_condition to kTRUE
 
static UniRunGetRun (int &period_number, int &run_number, bool usePrevRunIfMissing)
 
static int FindPreviousRun (int &period_number, int &run_number)
 
static UniRunCreateRun (int period_number, int run_number, int run_type, TDatime start_datetime, TDatime *end_datetime, TString beam_particle, TString target_particle, double *energy, double *field_voltage, int *event_count, int *geometry_id, int run_quality)
 add new run to the database
 
static UniRunGetRun (int period_number, int run_number)
 get run from the database
 
static int CheckRunExists (int period_number, int run_number)
 check run exists in the database: 1- true, 0 - false, <0 - database operation error
 
static int DeleteRun (int period_number, int run_number)
 delete run from the database
 
static int PrintAll ()
 print all runs
 
static int GetRunNumbers (UniqueRunNumber *&run_numbers, int start_period, int start_run=0, int end_period=-1, int end_run=-1)
 
static int GetRunNumbers (UniqueRunNumber *&run_numbers)
 
static int SetRootGeometry (int start_period, int start_run, int end_period, int end_run, unsigned char *root_geometry, Long_t size_root_geometry)
 set geometry binary data (geometry file's data) for runs from start_run_number to end_run_number
 
static int GetRootGeometry (int period_number, int run_number, unsigned char *&root_geometry, Long_t &size_root_geometry)
 get geometry binary data (geometry file's data) for selected run number
 
static int WriteGeometryFile (int start_period, int start_run, int end_period, int end_run, const char *geo_file_path)
 write geometry file for runs from start_run_number to end_run_number to the database
 
static int ReadGeometryFile (int period_number, int run_number, char *geo_file_path, bool usePrevGeometryIfMissing=false)
 
static int ReadPreviousGeometryFile (int &period_number, int &run_number, char *geo_file_path)
 
static double FindPreviousFieldVoltage (int &period_number, int &run_number)
 
static TObjArray * Search (UniSearchCondition &search_condition)
 get runs corresponding to the specified single condition and set owner for search_condition to kTRUE
 
static TObjArray * Search (TObjArray &search_conditions)
 get runs corresponding to the specified (vector) conditions and set owner for search_condition to kTRUE
 
static UniRunGetRun (int &period_number, int &run_number, bool usePrevRunIfMissing)
 
static int FindPreviousRun (int &period_number, int &run_number)
 

Detailed Description

UniRun.h Class for the table: run_

Definition at line 20 of file UniRun.h.

Constructor & Destructor Documentation

◆ ~UniRun() [1/2]

UniRun::~UniRun ( )
virtual

Definition at line 50 of file UniRun.cxx.

◆ ~UniRun() [2/2]

virtual UniRun::~UniRun ( )
virtual

Member Function Documentation

◆ CheckRunExists() [1/2]

int UniRun::CheckRunExists ( int  period_number,
int  run_number 
)
static

check run exists in the database: 1- true, 0 - false, <0 - database operation error

Definition at line 262 of file UniRun.cxx.

References UniConnection::GetSQLServer(), and UniConnection::Open().

◆ CheckRunExists() [2/2]

static int UniRun::CheckRunExists ( int  period_number,
int  run_number 
)
static

check run exists in the database: 1- true, 0 - false, <0 - database operation error

◆ ClassDef() [1/2]

UniRun::ClassDef ( UniRun  ,
 
)

◆ ClassDef() [2/2]

UniRun::ClassDef ( UniRun  ,
 
)

◆ CreateRun() [1/2]

UniRun * UniRun::CreateRun ( int  period_number,
int  run_number,
int  run_type,
TDatime  start_datetime,
TDatime *  end_datetime,
TString  beam_particle,
TString  target_particle,
double *  energy,
double *  field_voltage,
int *  event_count,
int *  geometry_id,
int  run_quality 
)
static

add new run to the database

Definition at line 67 of file UniRun.cxx.

References UniConnection::GetSQLServer(), and UniConnection::Open().

◆ CreateRun() [2/2]

static UniRun * UniRun::CreateRun ( int  period_number,
int  run_number,
int  run_type,
TDatime  start_datetime,
TDatime *  end_datetime,
TString  beam_particle,
TString  target_particle,
double *  energy,
double *  field_voltage,
int *  event_count,
int *  geometry_id,
int  run_quality 
)
static

add new run to the database

◆ DeleteRun() [1/2]

int UniRun::DeleteRun ( int  period_number,
int  run_number 
)
static

delete run from the database

Definition at line 302 of file UniRun.cxx.

References UniConnection::GetSQLServer(), and UniConnection::Open().

◆ DeleteRun() [2/2]

static int UniRun::DeleteRun ( int  period_number,
int  run_number 
)
static

delete run from the database

◆ FindPreviousFieldVoltage() [1/2]

double UniRun::FindPreviousFieldVoltage ( int &  period_number,
int &  run_number 
)
static

get field voltage value if period_number > 0 and run_number > 0: from the closest previous run, below (period:run) in another case: for the latest run in the database ATTENTION: changes the input period and run numbers to the correspoding ones of the previous run with the field voltage

Definition at line 1226 of file UniRun.cxx.

References UniConnection::GetSQLServer(), and UniConnection::Open().

◆ FindPreviousFieldVoltage() [2/2]

static double UniRun::FindPreviousFieldVoltage ( int &  period_number,
int &  run_number 
)
static

get field voltage value if period_number > 0 and run_number > 0: from the closest previous run, below (period:run) in another case: for the latest run in the database ATTENTION: changes the input period and run numbers to the correspoding ones of the previous run with the field voltage

◆ FindPreviousRun() [1/2]

int UniRun::FindPreviousRun ( int &  period_number,
int &  run_number 
)
static

get number of the closest run below the given one or return the latest run in the database if period_number < 1 or run_number < 1

Definition at line 1511 of file UniRun.cxx.

References UniConnection::GetSQLServer(), and UniConnection::Open().

Referenced by GetRun().

◆ FindPreviousRun() [2/2]

static int UniRun::FindPreviousRun ( int &  period_number,
int &  run_number 
)
static

get number of the closest run below the given one or return the latest run in the database if period_number < 1 or run_number < 1

◆ GetBeamParticle() [1/2]

◆ GetBeamParticle() [2/2]

TString UniRun::GetBeamParticle ( )
inline

get beam particle of the current run

Definition at line 113 of file UniRun.h.

◆ GetEndDatetime() [1/2]

TDatime * UniRun::GetEndDatetime ( )
inline

get end datetime of the current run

Definition at line 105 of file UniRun.h.

Referenced by BmnFillDstTask::Init(), and BmnMscRaw2Digit::ParseTxtSpillLog().

◆ GetEndDatetime() [2/2]

TDatime * UniRun::GetEndDatetime ( )
inline

get end datetime of the current run

Definition at line 105 of file UniRun.h.

◆ GetEnergy() [1/2]

double * UniRun::GetEnergy ( )
inline

get energy of the current run

Definition at line 117 of file UniRun.h.

Referenced by BmnRunInfo::BmnRunInfo(), BmnSRCTriggersCheck::Exec(), and BmnFillDstTask::Init().

◆ GetEnergy() [2/2]

double * UniRun::GetEnergy ( )
inline

get energy of the current run

Definition at line 117 of file UniRun.h.

◆ GetEventCount() [1/2]

int * UniRun::GetEventCount ( )
inline

get event count of the current run

Definition at line 133 of file UniRun.h.

Referenced by BmnRunInfo::BmnRunInfo().

◆ GetEventCount() [2/2]

int * UniRun::GetEventCount ( )
inline

get event count of the current run

Definition at line 133 of file UniRun.h.

◆ GetFieldVoltage() [1/2]

◆ GetFieldVoltage() [2/2]

double * UniRun::GetFieldVoltage ( )
inline

get field voltage of the current run

Definition at line 125 of file UniRun.h.

◆ GetGeometryId() [1/2]

int * UniRun::GetGeometryId ( )
inline

get geometry id of the current run

Definition at line 141 of file UniRun.h.

Referenced by BmnRunInfo::BmnRunInfo(), and GetRootGeometry().

◆ GetGeometryId() [2/2]

int * UniRun::GetGeometryId ( )
inline

get geometry id of the current run

Definition at line 141 of file UniRun.h.

◆ GetPeriodNumber() [1/2]

int UniRun::GetPeriodNumber ( )
inline

get period number of the current run

Definition at line 97 of file UniRun.h.

Referenced by BmnRunInfo::BmnRunInfo().

◆ GetPeriodNumber() [2/2]

int UniRun::GetPeriodNumber ( )
inline

get period number of the current run

Definition at line 97 of file UniRun.h.

◆ GetRawFiles() [1/2]

TObjArray * UniRun::GetRawFiles ( )

get array of raw files (UniRawFile*) corresponding to the run (return nullptr if an error occured)

Definition at line 866 of file UniRun.cxx.

References UniRawFile::GetRawFiles().

◆ GetRawFiles() [2/2]

TObjArray * UniRun::GetRawFiles ( )

get array of raw files (UniRawFile*) corresponding to the run (return nullptr if an error occured)

◆ GetRootGeometry() [1/2]

int UniRun::GetRootGeometry ( int  period_number,
int  run_number,
unsigned char *&  root_geometry,
Long_t &  size_root_geometry 
)
static

get geometry binary data (geometry file's data) for selected run number

Definition at line 1020 of file UniRun.cxx.

References GetGeometryId(), UniRunGeometry::GetRootGeometry(), UniRunGeometry::GetRootGeometrySize(), GetRun(), and UniRunGeometry::GetRunGeometry().

Referenced by ReadGeometryFile().

◆ GetRootGeometry() [2/2]

static int UniRun::GetRootGeometry ( int  period_number,
int  run_number,
unsigned char *&  root_geometry,
Long_t &  size_root_geometry 
)
static

get geometry binary data (geometry file's data) for selected run number

◆ GetRun() [1/4]

UniRun * UniRun::GetRun ( int &  period_number,
int &  run_number,
bool  usePrevRunIfMissing 
)
static

get run from the database with the given period and run numbers if usePrevRunIfMissing is true then find and get the previous (existing) run in case the given run is absent ATTENTION: changes the input period and run numbers to ones of the found run (if usePrevRunIfMissing is true)

Definition at line 1490 of file UniRun.cxx.

References FindPreviousRun(), and GetRun().

◆ GetRun() [2/4]

static UniRun * UniRun::GetRun ( int &  period_number,
int &  run_number,
bool  usePrevRunIfMissing 
)
static

get run from the database with the given period and run numbers if usePrevRunIfMissing is true then find and get the previous (existing) run in case the given run is absent ATTENTION: changes the input period and run numbers to ones of the found run (if usePrevRunIfMissing is true)

◆ GetRun() [3/4]

◆ GetRun() [4/4]

static UniRun * UniRun::GetRun ( int  period_number,
int  run_number 
)
static

get run from the database

◆ GetRunNumber() [1/2]

int UniRun::GetRunNumber ( )
inline

get run number of the current run

Definition at line 99 of file UniRun.h.

Referenced by BmnRunInfo::BmnRunInfo().

◆ GetRunNumber() [2/2]

int UniRun::GetRunNumber ( )
inline

get run number of the current run

Definition at line 99 of file UniRun.h.

◆ GetRunNumbers() [1/4]

int UniRun::GetRunNumbers ( UniqueRunNumber *&  run_numbers)
static

get all numbers of stored runs in the Database

Parameters
[out]run_numberspairs (period number+run numbers) of all runs
Returns
size of 'run_numbers' array. if size < 0, return value corresponds to error number

Definition at line 925 of file UniRun.cxx.

References UniConnection::GetSQLServer(), i, and UniConnection::Open().

◆ GetRunNumbers() [2/4]

static int UniRun::GetRunNumbers ( UniqueRunNumber *&  run_numbers)
static

get all numbers of stored runs in the Database

Parameters
[out]run_numberspairs (period number+run numbers) of all runs
Returns
size of 'run_numbers' array. if size < 0, return value corresponds to error number

◆ GetRunNumbers() [3/4]

int UniRun::GetRunNumbers ( UniqueRunNumber *&  run_numbers,
int  start_period,
int  start_run = 0,
int  end_period = -1,
int  end_run = -1 
)
static

get numbers of runs stored in the Database for a selected range

Parameters
[in]start_periodstart period number for selected run numbers' range
[in]start_runstart run number for selected run numbers' range (default, 0 means "from the first run of the start period")
[in]end_periodend period number for selected run numbers' range (default, -1 means "end_period = start_period")
[in]end_runend run number for selected run numbers' range (default, -1 means "up to the last run of the end period")
[out]runpairs (period number+run numbers) of existing runs for a selected range (from start to end)
Returns
size of 'run_numbers' array. if size < 0, return value corresponds to error number

Definition at line 872 of file UniRun.cxx.

References UniConnection::GetSQLServer(), i, and UniConnection::Open().

Referenced by SetRootGeometry().

◆ GetRunNumbers() [4/4]

static int UniRun::GetRunNumbers ( UniqueRunNumber *&  run_numbers,
int  start_period,
int  start_run = 0,
int  end_period = -1,
int  end_run = -1 
)
static

get numbers of runs stored in the Database for a selected range

Parameters
[in]start_periodstart period number for selected run numbers' range
[in]start_runstart run number for selected run numbers' range (default, 0 means "from the first run of the start period")
[in]end_periodend period number for selected run numbers' range (default, -1 means "end_period = start_period")
[in]end_runend run number for selected run numbers' range (default, -1 means "up to the last run of the end period")
[out]runpairs (period number+run numbers) of existing runs for a selected range (from start to end)
Returns
size of 'run_numbers' array. if size < 0, return value corresponds to error number

◆ GetRunQuality() [1/2]

int UniRun::GetRunQuality ( )
inline

get run quality of the current run

Definition at line 149 of file UniRun.h.

◆ GetRunQuality() [2/2]

int UniRun::GetRunQuality ( )
inline

get run quality of the current run

Definition at line 149 of file UniRun.h.

◆ GetRunType() [1/2]

int UniRun::GetRunType ( )
inline

get run type of the current run

Definition at line 101 of file UniRun.h.

◆ GetRunType() [2/2]

int UniRun::GetRunType ( )
inline

get run type of the current run

Definition at line 101 of file UniRun.h.

◆ GetStartDatetime() [1/2]

TDatime UniRun::GetStartDatetime ( )
inline

get start datetime of the current run

Definition at line 103 of file UniRun.h.

Referenced by BmnFillDstTask::Init(), and BmnMscRaw2Digit::ParseTxtSpillLog().

◆ GetStartDatetime() [2/2]

TDatime UniRun::GetStartDatetime ( )
inline

get start datetime of the current run

Definition at line 103 of file UniRun.h.

◆ GetTargetParticle() [1/2]

◆ GetTargetParticle() [2/2]

TString UniRun::GetTargetParticle ( )
inline

get target particle of the current run

Definition at line 115 of file UniRun.h.

◆ Print() [1/2]

void UniRun::Print ( )

print information about current run

Definition at line 848 of file UniRun.cxx.

◆ Print() [2/2]

void UniRun::Print ( )

print information about current run

◆ PrintAll() [1/2]

int UniRun::PrintAll ( )
static

print all runs

Definition at line 333 of file UniRun.cxx.

References UniConnection::GetSQLServer(), and UniConnection::Open().

◆ PrintAll() [2/2]

static int UniRun::PrintAll ( )
static

print all runs

◆ ReadGeometryFile() [1/2]

int UniRun::ReadGeometryFile ( int  period_number,
int  run_number,
char *  geo_file_path,
bool  usePrevGeometryIfMissing = false 
)
static

read geometry file for selected run number from the database and write it to the file if the given run is absent and usePrevGeometryIfMissing is true then use the nearest run below period:run

Definition at line 1105 of file UniRun.cxx.

References GetRootGeometry(), and ReadPreviousGeometryFile().

Referenced by BmnTrackingQaOffline::BmnTrackingQaOffline(), BmnLambdaEmbeddingQa::DoDrawEventsWithEmbeddedSignals(), eventdisplay(), BmnGlobalAlignment::Init(), BmnQaOffline::Init(), BmnTwoParticleDecay::Init(), run8_reco_bmn(), run_reco_bmn(), and run_reco_src().

◆ ReadGeometryFile() [2/2]

static int UniRun::ReadGeometryFile ( int  period_number,
int  run_number,
char *  geo_file_path,
bool  usePrevGeometryIfMissing = false 
)
static

read geometry file for selected run number from the database and write it to the file if the given run is absent and usePrevGeometryIfMissing is true then use the nearest run below period:run

◆ ReadPreviousGeometryFile() [1/2]

int UniRun::ReadPreviousGeometryFile ( int &  period_number,
int &  run_number,
char *  geo_file_path 
)
static

read previous geometry file from the database and write it to the file if period_number > 0 and run_number > 0: for the nearest run with a geometry below (period:run) in another case: for the latest run in the database ATTENTION: changes the input period and run numbers to the correspoding ones of the previous run

Definition at line 1151 of file UniRun.cxx.

References UniConnection::GetSQLServer(), and UniConnection::Open().

Referenced by ReadGeometryFile(), and bmn::online::ReconstructionProcessor::SetupExperimentalRun().

◆ ReadPreviousGeometryFile() [2/2]

static int UniRun::ReadPreviousGeometryFile ( int &  period_number,
int &  run_number,
char *  geo_file_path 
)
static

read previous geometry file from the database and write it to the file if period_number > 0 and run_number > 0: for the nearest run with a geometry below (period:run) in another case: for the latest run in the database ATTENTION: changes the input period and run numbers to the correspoding ones of the previous run

◆ Search() [1/4]

◆ Search() [2/4]

static TObjArray * UniRun::Search ( TObjArray &  search_conditions)
static

get runs corresponding to the specified (vector) conditions and set owner for search_condition to kTRUE

◆ Search() [3/4]

TObjArray * UniRun::Search ( UniSearchCondition search_condition)
static

get runs corresponding to the specified single condition and set owner for search_condition to kTRUE

Definition at line 1479 of file UniRun.cxx.

References Search().

Referenced by BmnMonitor::GetAlikeRunsByElog(), BmnMonitor::GetAlikeRunsByUniDB(), and Search().

◆ Search() [4/4]

static TObjArray * UniRun::Search ( UniSearchCondition search_condition)
static

get runs corresponding to the specified single condition and set owner for search_condition to kTRUE

◆ SetBeamParticle() [1/2]

int UniRun::SetBeamParticle ( TString  beam_particle)

set beam particle of the current run

Definition at line 584 of file UniRun.cxx.

References UniConnection::GetSQLServer().

◆ SetBeamParticle() [2/2]

int UniRun::SetBeamParticle ( TString  beam_particle)

set beam particle of the current run

◆ SetEndDatetime() [1/2]

int UniRun::SetEndDatetime ( TDatime *  end_datetime)

set end datetime of the current run

Definition at line 543 of file UniRun.cxx.

References UniConnection::GetSQLServer().

◆ SetEndDatetime() [2/2]

int UniRun::SetEndDatetime ( TDatime *  end_datetime)

set end datetime of the current run

◆ SetEnergy() [1/2]

int UniRun::SetEnergy ( double *  energy)

set energy of the current run

Definition at line 650 of file UniRun.cxx.

References UniConnection::GetSQLServer().

◆ SetEnergy() [2/2]

int UniRun::SetEnergy ( double *  energy)

set energy of the current run

◆ SetEventCount() [1/2]

int UniRun::SetEventCount ( int *  event_count)

set event count of the current run

Definition at line 732 of file UniRun.cxx.

References UniConnection::GetSQLServer().

◆ SetEventCount() [2/2]

int UniRun::SetEventCount ( int *  event_count)

set event count of the current run

◆ SetFieldVoltage() [1/2]

int UniRun::SetFieldVoltage ( double *  field_voltage)

set field voltage of the current run

Definition at line 691 of file UniRun.cxx.

References UniConnection::GetSQLServer().

◆ SetFieldVoltage() [2/2]

int UniRun::SetFieldVoltage ( double *  field_voltage)

set field voltage of the current run

◆ SetGeometryId() [1/2]

int UniRun::SetGeometryId ( int *  geometry_id)

set geometry id of the current run

Definition at line 773 of file UniRun.cxx.

References UniConnection::GetSQLServer().

Referenced by SetRootGeometry().

◆ SetGeometryId() [2/2]

int UniRun::SetGeometryId ( int *  geometry_id)

set geometry id of the current run

◆ SetPeriodNumber() [1/2]

int UniRun::SetPeriodNumber ( int  period_number)

set period number of the current run

Definition at line 411 of file UniRun.cxx.

References UniConnection::GetSQLServer().

◆ SetPeriodNumber() [2/2]

int UniRun::SetPeriodNumber ( int  period_number)

set period number of the current run

◆ SetRootGeometry() [1/2]

int UniRun::SetRootGeometry ( int  start_period,
int  start_run,
int  end_period,
int  end_run,
unsigned char *  root_geometry,
Long_t  size_root_geometry 
)
static

set geometry binary data (geometry file's data) for runs from start_run_number to end_run_number

Definition at line 971 of file UniRun.cxx.

References UniRunGeometry::CreateRunGeometry(), UniRunGeometry::GetGeometryId(), GetRun(), GetRunNumbers(), i, UniqueRunNumber::period_number, UniqueRunNumber::run_number, and SetGeometryId().

Referenced by WriteGeometryFile().

◆ SetRootGeometry() [2/2]

static int UniRun::SetRootGeometry ( int  start_period,
int  start_run,
int  end_period,
int  end_run,
unsigned char *  root_geometry,
Long_t  size_root_geometry 
)
static

set geometry binary data (geometry file's data) for runs from start_run_number to end_run_number

◆ SetRunNumber() [1/2]

int UniRun::SetRunNumber ( int  run_number)

set run number of the current run

Definition at line 444 of file UniRun.cxx.

References UniConnection::GetSQLServer().

◆ SetRunNumber() [2/2]

int UniRun::SetRunNumber ( int  run_number)

set run number of the current run

◆ SetRunQuality() [1/2]

int UniRun::SetRunQuality ( int  run_quality)

set run quality of the current run

Definition at line 814 of file UniRun.cxx.

References UniConnection::GetSQLServer().

◆ SetRunQuality() [2/2]

int UniRun::SetRunQuality ( int  run_quality)

set run quality of the current run

◆ SetRunType() [1/2]

int UniRun::SetRunType ( int  run_type)

set run type of the current run

Definition at line 477 of file UniRun.cxx.

References UniConnection::GetSQLServer().

◆ SetRunType() [2/2]

int UniRun::SetRunType ( int  run_type)

set run type of the current run

◆ SetStartDatetime() [1/2]

int UniRun::SetStartDatetime ( TDatime  start_datetime)

set start datetime of the current run

Definition at line 510 of file UniRun.cxx.

References UniConnection::GetSQLServer().

◆ SetStartDatetime() [2/2]

int UniRun::SetStartDatetime ( TDatime  start_datetime)

set start datetime of the current run

◆ SetTargetParticle() [1/2]

int UniRun::SetTargetParticle ( TString  target_particle)

set target particle of the current run

Definition at line 617 of file UniRun.cxx.

References UniConnection::GetSQLServer().

◆ SetTargetParticle() [2/2]

int UniRun::SetTargetParticle ( TString  target_particle)

set target particle of the current run

◆ WriteGeometryFile() [1/2]

int UniRun::WriteGeometryFile ( int  start_period,
int  start_run,
int  end_period,
int  end_run,
const char *  geo_file_path 
)
static

write geometry file for runs from start_run_number to end_run_number to the database

Definition at line 1054 of file UniRun.cxx.

References SetRootGeometry().

◆ WriteGeometryFile() [2/2]

static int UniRun::WriteGeometryFile ( int  start_period,
int  start_run,
int  end_period,
int  end_run,
const char *  geo_file_path 
)
static

write geometry file for runs from start_run_number to end_run_number to the database


The documentation for this class was generated from the following files: