AliRoot Core  edcc906 (edcc906)
printCalibObjectsInfo.C
Go to the documentation of this file.
1 
3 printCalibObjectsInfo(const char* filename="CalibObjects.root")
4 {
5  gROOT->Macro("$ALICE_ROOT/PWGPP/CalibMacros/CPass0/LoadLibraries.C");
6  TFile f(filename,"read");
7 
8  TDirectory* tpcCalib = dynamic_cast<TDirectory*>(f.Get("TPCCalib"));
9  tpcCalib->ls();
10 
11  AliTPCcalibCalib* calibCalib = tpcCalib->Get("calibTPC");
12  AliTPCcalibTimeGain* calibTimeGain = tpcCalib->Get("calibTimeGain");
13  AliTPCcalibGainMult* calibGainMult = tpcCalib->Get("calibGainMult");
14  AliTPCcalibTime* calibTime = tpcCalib->Get("calibTime");
15 
16 
17  if (!calibCalib || !calibTimeGain || !calibGainMult || !calibTime)
18  {
19  printf("file empty\n");
20  return;
21  }
22 
23  printf("\ncalibTimeGain->GetHistGainTime()->GetEntries() = %10i, size: %.2f MB\n", calibTimeGain->GetHistGainTime()->GetEntries(),
24  (AliSysInfo::EstimateObjectSize(calibTimeGain->GetHistGainTime()))/1024./1024);
25  printf("\n");
26 
27  printf("calibGainMult->GetHistGainSector()->GetEntries() = %10i, size: %.2f MB\n", calibGainMult->GetHistGainSector()->GetEntries(),
28  (AliSysInfo::EstimateObjectSize(calibGainMult->GetHistGainSector())/1024./1024));
29  printf("calibGainMult->GetHistPadEqual()->GetEntries() = %10i, size: %.2f MB\n", calibGainMult->GetHistPadEqual()->GetEntries(),
30  (AliSysInfo::EstimateObjectSize(calibGainMult->GetHistPadEqual())/1024./1024));
31  printf("calibGainMult->GetHistGainMult()->GetEntries() = %10i, size: %.2f MB\n", calibGainMult->GetHistGainMult()->GetEntries(),
32  (AliSysInfo::EstimateObjectSize(calibGainMult->GetHistGainMult())/1024./1024));
33  printf("calibGainMult->GetHistdEdxMap()->GetEntries() = %10i, size: %.2f MB\n", calibGainMult->GetHistdEdxMap()->GetEntries(),
34  (AliSysInfo::EstimateObjectSize(calibGainMult->GetHistdEdxMap())/1024./1024));
35  printf("calibGainMult->GetHistdEdxMax()->GetEntries() = %10i, size: %.2f MB\n", calibGainMult->GetHistdEdxMax()->GetEntries(),
36  (AliSysInfo::EstimateObjectSize(calibGainMult->GetHistdEdxMax())/1024./1024));
37  printf("calibGainMult->GetHistdEdxTot()->GetEntries() = %10i, size: %.2f MB\n", calibGainMult->GetHistdEdxTot()->GetEntries(),
38  (AliSysInfo::EstimateObjectSize(calibGainMult->GetHistdEdxTot())/1024./1024));
39  printf("\n");
40 
41  for (int n=0; n<3; n++)
42  {
43  printf("calibTime->GetHistVdriftLaserA(%i)->GetEntries() = %10i, size: %.2f MB\n", n, calibTime->GetHistVdriftLaserA(n)->GetEntries(),
44  (AliSysInfo::EstimateObjectSize(calibTime->GetHistVdriftLaserA(n))/1024./1024));
45  printf("calibTime->GetHistVdriftLaserC(%i)->GetEntries() = %10i, size: %.2f MB\n", n, calibTime->GetHistVdriftLaserC(n)->GetEntries(),
46  (AliSysInfo::EstimateObjectSize(calibTime->GetHistVdriftLaserC(n))/1024./1024));
47  }
48 
49  for (int n=0; n<12; n++)
50  {
51  printf("calibTime->GetTPCVertexHisto(%i)->GetEntries() = %10i, size: %.2f MB\n", n, calibTime->GetTPCVertexHisto(n)->GetEntries(),
52  (AliSysInfo::EstimateObjectSize(calibTime->GetTPCVertexHisto(n))/1024./1024));
53  }
54 
55  for (int n=0; n<5; n++)
56  {
57  printf("calibTime->GetTPCVertexHistoCorrelation(%i)->GetEntries() = %10i, size: %.2f MB\n", n, calibTime->GetTPCVertexHistoCorrelation(n)->GetEntries(),
58  (AliSysInfo::EstimateObjectSize(calibTime->GetTPCVertexHistoCorrelation(n))/1024./1024));
59  printf("calibTime->GetResHistoTPCCE(%i)->GetEntries() = %10i, size: %.2f MB\n", n, calibTime->GetResHistoTPCCE(n)->GetEntries(),
60  (AliSysInfo::EstimateObjectSize(calibTime->GetResHistoTPCCE(n))/1024./1024));
61  printf("calibTime->GetResHistoTPCITS(%i)->GetEntries() = %10i, size: %.2f MB\n", n, calibTime->GetResHistoTPCITS(n)->GetEntries(),
62  (AliSysInfo::EstimateObjectSize(calibTime->GetResHistoTPCITS(n))/1024./1024));
63  printf("calibTime->GetResHistoTPCvertex(%i)->GetEntries() = %10i, size: %.2f MB\n", n, calibTime->GetResHistoTPCvertex(n)->GetEntries(),
64  (AliSysInfo::EstimateObjectSize(calibTime->GetResHistoTPCvertex(n))/1024./1024));
65  printf("calibTime->GetResHistoTPCTRD(%i)->GetEntries() = %10i, size: %.2f MB\n", n, calibTime->GetResHistoTPCTRD(n)->GetEntries(),
66  (AliSysInfo::EstimateObjectSize(calibTime->GetResHistoTPCTRD(n))/1024./1024));
67  printf("calibTime->GetResHistoTPCTOF(%i)->GetEntries() = %10i, size: %.2f MB\n", n, calibTime->GetResHistoTPCTOF(n)->GetEntries(),
68  (AliSysInfo::EstimateObjectSize(calibTime->GetResHistoTPCTOF(n))/1024./1024));
69  }
70 
71  TObjArray* TPCCluster = f.Get("TPCCluster");
72  if (TPCCluster)
73  {
74  TPCCluster->Print();
75  AliTPCcalibTracks* calibTracks = TPCCluster->FindObject("calibTracks");
76  printf("calibTracks->fHisDeltaY->GetEntries() = %10i, size: %.2f MB\n", n, (calibTracks->fHisDeltaY)->GetEntries(),
77  (AliSysInfo::EstimateObjectSize(calibTracks->fHisDeltaY)/1024./1024.));
78  printf("calibTracks->fHisDeltaZ->GetEntries() = %10i, size: %.2f MB\n", n, (calibTracks->fHisDeltaZ)->GetEntries(),
79  (AliSysInfo::EstimateObjectSize(calibTracks->fHisDeltaZ)/1024./1024.));
80  printf("calibTracks->fHisRMSY->GetEntries() = %10i, size: %.2f MB\n", n, (calibTracks->fHisRMSY)->GetEntries(),
81  (AliSysInfo::EstimateObjectSize(calibTracks->fHisRMSY)/1024./1024.));
82  printf("calibTracks->fHisRMSZ->GetEntries() = %10i, size: %.2f MB\n", n, (calibTracks->fHisRMSZ)->GetEntries(),
83  (AliSysInfo::EstimateObjectSize(calibTracks->fHisRMSZ)/1024./1024.));
84  printf("calibTracks->fHisQmax->GetEntries() = %10i, size: %.2f MB\n", n, (calibTracks->fHisQmax)->GetEntries(),
85  (AliSysInfo::EstimateObjectSize(calibTracks->fHisQmax)/1024./1024.));
86  printf("calibTracks->fHisQtot->GetEntries() = %10i, size: %.2f MB\n", n, (calibTracks->fHisQtot)->GetEntries(),
87  (AliSysInfo::EstimateObjectSize(calibTracks->fHisQtot)/1024./1024.));
88  }
89 
90 
91 }
printf("Chi2/npoints = %f\n", TMath::Sqrt(chi2/npoints))
#define TObjArray
TROOT * gROOT
static Double_t EstimateObjectSize(TObject *object)
Definition: AliSysInfo.cxx:366
AliTPCcalibTime * calibTime
Definition: CalibTime.C:20
TF1 * f
Definition: interpolTest.C:21