BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
get_trigger.C
Go to the documentation of this file.
1TString get_trigger(int period_number = 7, int run_number = 4608)
2{
3 TString strTrigger = "";
4 TObjArray* pRecords = ElogRecord::GetRecords(period_number, run_number);
5
6 TIter next(pRecords);
7 ElogRecord* curRecord;
8 while ((curRecord = (ElogRecord*)next()) != nullptr) {
9 if (curRecord->GetTriggerId() != nullptr)
10 strTrigger = ElogTrigger::GetTrigger(*(curRecord->GetTriggerId()))->GetTriggerInfo();
11 }
12
13 if (strTrigger == "")
14 cout << "Trigger information was not found" << endl;
15 else
16 cout << "Trigger for run " << period_number << ":" << run_number << " = " << strTrigger << endl;
17
18 return strTrigger;
19}
ElogRecord.h Class for the table: record_.
Definition ElogRecord.h:20
int * GetTriggerId()
get trigger id of the current record
Definition ElogRecord.h:145
static TObjArray * GetRecords(int period_number, int run_number, int findNeighbourRun=0)
get array of ElogRecord-s for a given or a neighbour run (the same period) from the database if findN...
static ElogTrigger * GetTrigger(int trigger_id)
get trigger from the database
TString GetTriggerInfo()
get trigger info of the current trigger
Definition ElogTrigger.h:61
TString get_trigger(int period_number=7, int run_number=4608)
Definition get_trigger.C:1