#include "TGeoManager.h"
Go to the source code of this file.
Definition at line 20 of file solution/auxtut.C.
References t, and x0.
24 if (fff.IsZombie()) fileok=
false;
25 TTree *
t=(TTree*)fff.Get(
"pndsim");
26 if (t==0
x0) fileok=
false;
28 if (!fileok) cout <<
"Skipping broken file '"<<fn<<
"'"<<endl;
FairRunAna* initrun |
( |
TString |
prefix, |
|
|
TString |
outfile, |
|
|
int |
min = -1 , |
|
|
int |
max = -1 |
|
) |
| |
Definition at line 32 of file solution/auxtut.C.
References fRun, rtdb, and TString.
35 TString inPidFile = prefix+
"_pid.root";
36 TString inParFile = prefix+
"_par.root";
39 TString pidParFile =
TString(gSystem->Getenv(
"VMCWORKDIR"))+
"/macro/params/all.par";
42 FairLogger::GetLogger()->SetLogToFile(kFALSE);
43 FairRunAna*
fRun =
new FairRunAna();
44 FairRuntimeDb*
rtdb = fRun->GetRuntimeDb();
45 fRun->SetSource(
new FairFileSource(inPidFile));
48 FairParRootFileIo* parIO =
new FairParRootFileIo();
49 parIO->open(inParFile);
50 FairParAsciiFileIo* parIOPid =
new FairParAsciiFileIo();
51 parIOPid->open(pidParFile.Data(),
"in");
53 rtdb->setFirstInput(parIO);
54 rtdb->setSecondInput(parIOPid);
55 rtdb->setOutput(parIO);
void plotmyhistos |
( |
std::vector< TH1 * > |
h, |
|
|
int |
maxy = 700 , |
|
|
double |
asp = 1.1 |
|
) |
| |
Definition at line 62 of file solution/auxtut.C.
References c, i, and sqrt().
74 TCanvas *
c=
new TCanvas(
"c",
"c",10,10,dim*nx*asp, dim*ny);
76 c->Divide(nx,ny, 0.0005,0.0005);
friend F32vec4 sqrt(const F32vec4 &a)
void plotmyhistos |
( |
int |
maxy = 700 , |
|
|
double |
asp = 1.1 |
|
) |
| |
Definition at line 85 of file solution/auxtut.C.
References h, hist, i, next, plotmyhistos(), and TString.
91 int Nkey = gDirectory->GetListOfKeys()->GetSize();
92 int Nlst = gDirectory->GetList()->GetSize();
94 if( Nkey==0 && Nlst==0)
return;
98 TIter
next(gDirectory->GetListOfKeys());
100 while ((key = (TKey*)
next()))
102 TClass *cl = gROOT->GetClass(key->GetClassName());
103 if (!cl->InheritsFrom(
"TH1"))
continue;
104 TH1 *
hist = (TH1*)key->ReadObj();
110 TList *hl=gDirectory->GetList();
111 for (
int i=0;
i<hl->GetSize();++
i)
113 TString cn = hl->At(
i)->ClassName();
114 if (cn.BeginsWith(
"TH1") || cn.BeginsWith(
"TH2")) h.push_back((TH1*)hl->At(
i));
void plotmyhistos(std::vector< TH1 * > h, int maxy=700, double asp=1.1)
void RemoveGeoManager |
( |
| ) |
|
int writemyhistos |
( |
int |
maxy = 800 , |
|
|
double |
asp = 1.1 |
|
) |
| |
Definition at line 121 of file solution/auxtut.C.
References h, i, TString, and Write().
123 TList *hl=gDirectory->GetList();
125 for (
int i=0;
i<hl->GetSize();++
i)
127 TString cn = hl->At(
i)->ClassName();
128 if (cn.BeginsWith(
"TH1") || cn.BeginsWith(
"TH2")) h.push_back((TH1*)hl->At(
i));