Possibility to not write syswatch info to file (default)
authorshahoian <ruben.shahoyan@cern.ch>
Wed, 11 Jun 2014 10:41:24 +0000 (12:41 +0200)
committershahoian <ruben.shahoyan@cern.ch>
Wed, 11 Jun 2014 10:41:24 +0000 (12:41 +0200)
STEER/STEERBase/AliSysInfo.cxx
STEER/STEERBase/AliSysInfo.h

index ba665b7..32ddc41 100644 (file)
@@ -102,6 +102,7 @@ using std::setprecision;
 ClassImp(AliSysInfo)
 
 AliSysInfo* AliSysInfo::fInstance=0;
+Bool_t AliSysInfo::fgVerbose = kFALSE;
 
 AliSysInfo::AliSysInfo():
     TObject(),
@@ -175,6 +176,7 @@ AliSysInfo * AliSysInfo::Instance(){
 void AliSysInfo::AddStamp(const char *sname, Int_t id0, Int_t id1, Int_t id2, Int_t id3){
   //
   // 
+  if (!fgVerbose) return;
   //
   //
   TTimeStamp stamp;
index d32a77c..ae976eb 100644 (file)
@@ -34,6 +34,10 @@ public:
   // Object size function
   static Double_t EstimateObjectSize(TObject* object);
   static  TTree* Test();
+  
+  static void SetVerbose(Bool_t v=kFALSE)   {fgVerbose = v;}
+  static Bool_t GetVerbose()                {return fgVerbose;} 
+
 private:
   AliSysInfo(const AliSysInfo& source);
   AliSysInfo& operator= (const AliSysInfo& rec);
@@ -44,6 +48,7 @@ private:
   static AliSysInfo *   fInstance; //instance pointer
   StampCallback_t *fCallBackFunc; // call back functions
   Int_t           fNCallBack;        // number of call back functions
+  static Bool_t   fgVerbose;      // do we want actually to write the stamps ?
   ClassDef(AliSysInfo,0)
 };