BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
selecting_parameters.C
Go to the documentation of this file.
1// macro for run selection by specified conditions
3{
4 TObjArray conditions;
15
16 TObjArray* pValuesArray = UniDetectorParameter::Search(conditions);
17
18 // clean memory for conditions after search
19 conditions.Delete();
20
21 cout << "The number of parameter values is " << pValuesArray->GetEntries() << endl;
22
23 TIter res_it(pValuesArray);
25 while ((curRow = (UniDetectorParameter*)res_it()) != nullptr)
26 curRow->Print();
27
28 // clean memory after work - deleting the array of parameter values
29 delete pValuesArray;
30
31 cout << "\nMacro finished successfully" << endl;
32}
Int_t GetEntries() const override
void Delete(Option_t *option="") override
void Add(TObject *obj) override
static TObjArray * Search(UniSearchCondition &search_condition)
get parameters' values corresponding to the specified single condition and set owner for search_condi...
void Print()
print information about current detector parameter
void selecting_parameters()