9 #include "TGeoManager.h" 
   13   if (gROOT->GetVersionInt() >= 60602) {
 
   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;
 
   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);
 
   57         fRun->SetOutputFile(outfile);
 
   74         TCanvas *
c=
new TCanvas(
"c",
"c",10,10,dim*nx*asp, dim*ny);
 
   76         c->Divide(nx,ny, 0.0005,0.0005);
 
   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));
 
  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));
 
FairRunAna * initrun(TString prefix, TString outfile, int min=-1, int max=-1)
friend F32vec4 sqrt(const F32vec4 &a)
friend F32vec4 max(const F32vec4 &a, const F32vec4 &b)
TGeoManager * gGeoManager
int fillP(RhoCandList &l, TH1 *h)
friend F32vec4 min(const F32vec4 &a, const F32vec4 &b)
bool checkfile(TString fn)
int fillM(RhoCandList &l, TH1 *h)
int writemyhistos(int maxy=800, double asp=1.1)
void plotmyhistos(std::vector< TH1 * > h, int maxy=700, double asp=1.1)