Extra field in sysinfo output for size monitoring (Mikolaj)
authorshahoian <shahoian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 14 Nov 2012 15:55:12 +0000 (15:55 +0000)
committershahoian <shahoian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 14 Nov 2012 15:55:12 +0000 (15:55 +0000)
ANALYSIS/AliFileMerger.cxx
STEER/STEERBase/AliSysInfo.cxx
STEER/STEERBase/AliSysInfo.h

index bf34a9e..720a628 100644 (file)
@@ -522,7 +522,14 @@ int AliFileMerger::MergeRootfile( TDirectory *target, TList *sourcelist)
                     << " with the corresponding object in " << nextsource->GetName() << endl;
              }
              listH.Delete();
-             AliSysInfo::AddStamp(nameK.Data(),1,counterK,counterF++); 
+        // get the number of processed entries to be put in the syswatch.log
+        Double_t numberOfEntries = -1;
+        if (obj->IsA()->GetMethodAllAny("GetEntries"))
+        {
+          TMethodCall getEntries(obj->IsA(), "GetEntries", "");
+          getEntries.Execute(obj, numberOfEntries);
+        }
+             AliSysInfo::AddStamp(nameK.Data(),1,counterK,counterF++,numberOfEntries); 
            }
          }
          nextsource = (TFile*)sourcelist->After( nextsource );
index 3af1868..9d8ca0b 100644 (file)
@@ -122,6 +122,7 @@ AliSysInfo::AliSysInfo():
                <<"id0"<<"/I:"                // 0 id
                <<"id1"<<"/I:"                // 1 id
                <<"id2"<<"/I:"                // 1 id
+               <<"id3"<<"/I:"                // 1 id
                <<"first"<<"/D:"              // first stamp
     //
               <<"stampSec"<<"/D:"         // time  - time stamp in seconds
@@ -168,7 +169,7 @@ AliSysInfo * AliSysInfo::Instance(){
 }
 
 
-void AliSysInfo::AddStamp(const char *sname, Int_t id0, Int_t id1, Int_t id2){
+void AliSysInfo::AddStamp(const char *sname, Int_t id0, Int_t id1, Int_t id2, Int_t id3){
   //
   // 
   //
@@ -204,6 +205,7 @@ void AliSysInfo::AddStamp(const char *sname, Int_t id0, Int_t id1, Int_t id2){
     << id0      <<"\t"
     << id1      <<"\t"
     << id2      <<"\t"
+    << id3      <<"\t"
     <<setprecision(15)<< first    <<"\t"              // first stamp               
     //
     <<setprecision(15)<< stamp.GetSec()+stamp.GetNanoSec()/1000000000.<<"\t"         // time  - time stamp in seconds
index ecf2d26..d32a77c 100644 (file)
@@ -23,7 +23,7 @@ class AliSysInfo : public TObject {
 public:
   AliSysInfo();
   static AliSysInfo * Instance();
-  static void AddStamp(const char *sname, Int_t id0=-1, Int_t id1=-1, Int_t id2=-1);
+  static void AddStamp(const char *sname, Int_t id0=-1, Int_t id1=-1, Int_t id2=-1, Int_t id3=-1);
   static TTree * MakeTree(const char *lname);
   static void OpenMemStat();
   static void CloseMemStat();