return kTRUE;
}
-Bool_t AliAnalysisHelperJetTasks::PrintDirectorySize(const char* currFile){
+Bool_t AliAnalysisHelperJetTasks::PrintDirectorySize(const char* currFile,Int_t iDetail){
//
// Print the size on disk and in memory occuppied by a directory
//
+ TFile *fDummy = 0;
+ if(iDetail>=0)fDummy = TFile::Open("/tmp/dummy.root","RECREATE");
+
TFile *fIn = TFile::Open(currFile);
if(!fIn){
// not a severe condition but inciate that we have no information
diskSize += (Float_t)jkey->GetNbytes()/1024./1024.;
if(list){
Printf("%03d/%03d: %60s %5.2f MB %5.2f MB",i,j,list->GetName(),(Float_t)jkey->GetObjlen()/1024./1024.,(Float_t)jkey->GetNbytes()/1024./1024.);
+ if(iDetail==i){
+ for(int il = 0;il<list->GetEntries();il++){
+ TObject *ob = list->At(il);
+ if(fDummy){
+ fDummy->cd();
+ Int_t nBytesWrite = ob->Write();
+ Printf("%03d/%03d/%03d: %60s %5.2f kB",i,j,il,ob->GetName(),(Float_t)nBytesWrite/1024.);
+ }
+ }
+ }
}
else{
Printf("%03d/%03d: %60s %5.2f MB %5.2f MB",i,j,jkey->GetName(),(Float_t)jkey->GetObjlen()/1024./1024.,(Float_t)jkey->GetNbytes()/1024./1024.);
static void MergeOutput(char* cFiles, char* cDir = "",char *cList = "",char* cOutFile ="allpt.root",Bool_t bUpdate = false); // Merges the files in the input text file needs the two histograms fh1PtHard_Trials, fh1Xsec and the name of the input list
static Bool_t PythiaInfoFromFile(const char* currFile,Float_t &fXsec,Float_t &fTrials);// get the cross section and the trails either from pyxsec.root or from pysec_hists.root
- static Bool_t PrintDirectorySize(const char* currFile); // print the size of the output on a given file
+ static Bool_t PrintDirectorySize(const char* currFile,Int_t iDetail = -1); // print the size of the output on a given file
static Bool_t GetEventShapes(TVector3 &n01,const TVector3 * pTrack, Int_t nTracks, Double_t * eventShapes);
static MCProcessType GetPythiaEventProcessType(AliGenEventHeader* aHeader, Bool_t adebug = kFALSE);