Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
Task.cxx
1/*
2 * Task.cxx
3 *
4 * Created on: 5 maj 2022
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9
10#include "Task.h"
11
12#include "Package.h"
13#include "Parameter.h"
14#include "StdString.h"
15
16#include <vector>
17
18#include <TDirectory.h>
19#include <TFile.h>
20#include <TObject.h>
21#include <TString.h>
22
23namespace Hal {
25 // TODO Auto-generated constructor stub
26 }
27
28 void Task::GoToDir(TString name) {
29 TDirectory* dir = (TDirectory*) gFile;
30 std::vector<TString> array = Hal::Std::ExplodeString(name, '/');
31 for (int i = 0; i < (int) array.size(); i++) {
32 TDirectory* newdir = (TDirectory*) dir->FindObject(array[i]);
33 if (!newdir) { dir->mkdir(array[i]); }
34 dir->cd(array[i]);
35 }
36 }
37
38 Task::~Task() {
39 // TODO Auto-generated destructor stub
40 }
41
42} // namespace Hal
void GoToDir(TString name)
Definition Task.cxx:28