BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
selecting_runs.C
Go to the documentation of this file.
1// macro for run selection by specified conditions
3
5{
6 TObjArray arrayConditions;
9 arrayConditions.Add((TObject*)searchCondition);
10 // searchCondition = new UniSearchCondition(UniSearchCondition::columnTargetParticle,
11 // UniSearchCondition::conditionNull);
14 arrayConditions.Add((TObject*)searchCondition);
15
16 TObjArray* pRunArray = UniRun::Search(arrayConditions);
17
18 // clean memory for conditions after search
19 arrayConditions.Delete();
20
21 // print run numbers and file path with raw data
22 for (int i = 0; i < pRunArray->GetEntriesFast(); i++) {
23 UniRun* pRun = (UniRun*)pRunArray->At(i);
24 cout << "Run (d-Cu): period - " << pRun->GetPeriodNumber() << ", run - " << pRun->GetRunNumber() << endl;
25 }
26
27 // clean memory after work - deleting the array of runs
28 delete pRunArray;
29
30 cout << "\nMacro finished successfully" << endl;
31}
int i
Definition P4_F32vec4.h:22
Int_t GetEntriesFast() const
void Delete(Option_t *option="") override
TObject * At(Int_t idx) const override
void Add(TObject *obj) override
UniRun.h Class for the table: run_.
Definition UniRun.h:21
int GetRunNumber()
get run number of the current run
Definition UniRun.h:95
static TObjArray * Search(UniSearchCondition &search_condition)
get runs corresponding to the specified single condition and set owner for search_condition to kTRUE
Definition UniRun.cxx:1155
int GetPeriodNumber()
get period number of the current run
Definition UniRun.h:93
void selecting_runs()