BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
get_trigger.C
Go to the documentation of this file.
1
TString
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
ElogRecord.h Class for the table: record_.
Definition
ElogRecord.h:20
ElogRecord::GetTriggerId
int * GetTriggerId()
get trigger id of the current record
Definition
ElogRecord.h:145
ElogRecord::GetRecords
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...
Definition
ElogRecord.cxx:1215
ElogTrigger::GetTrigger
static ElogTrigger * GetTrigger(int trigger_id)
get trigger from the database
Definition
ElogTrigger.cxx:94
ElogTrigger::GetTriggerInfo
TString GetTriggerInfo()
get trigger info of the current trigger
Definition
ElogTrigger.h:61
TIter
TObjArray
TString
get_trigger
TString get_trigger(int period_number=7, int run_number=4608)
Definition
get_trigger.C:1
install
database
elog_db
examples
get_trigger.C
Generated on
for BmnRoot by
1.17.0