]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCMonitorConfig.h
Removing warnings
[u/mrichter/AliRoot.git] / TPC / AliTPCMonitorConfig.h
index d0e56fcf50ea72d7fbd682a4fbe1977f7577072d..c929c00c98d06ab6a989b18eb1e142c14997cf4a 100755 (executable)
@@ -6,18 +6,22 @@
 
 /* $Id$ */
 
-////////////////////////////////////////////////////////////////////////
-//
-// AliTPCMonitorConfig class
-//
-// Configuration handler class for AliTPCMonitor
-// 
-// Author: Stefan Kniege, IKF, Frankfurt
-//       
-//
+//////////////////////////////////////////////////////////////////////////
+////
+//// AliTPCMonitorConfig class
+////
+//// Configuration handler class for AliTPCMonitor.
+//// The class reads and stores basic configurations
+//// for the AliTPCMonitor class. The values can be changed
+//// online or written to the configuration file  AliTPCMonitorConfig.txt 
+//// 
+//// Author: Stefan Kniege, IKF, Frankfurt
+////       
+////
 /////////////////////////////////////////////////////////////////////////
 
-#include "TNamed.h" 
+#include <TNamed.h>
+#include <TString.h>
 
 class AliTPCMonitorConfig: public TNamed
 {
@@ -49,10 +53,10 @@ class AliTPCMonitorConfig: public TNamed
     
   
     Int_t    GetFormat()                             const { return fFormat      ;}
-    Char_t*  GetFile()                               const { return fFileCurrent;}
+    const Char_t*  GetFile()                         const { return fFileCurrent.Data();}
     
     Int_t    GetFitPulse()                           const { return fFitPulse     ;}
-    Char_t*  GetLastProcFile();
+    const Char_t*  GetLastProcFile();
     Int_t    GetMaxHwAddr()                          const { return fMaxHwAddr            ; } 
     
     Int_t    GetLastSector()                         const { return fSectorLast;}
@@ -89,7 +93,7 @@ class AliTPCMonitorConfig: public TNamed
 
     void     SetBaseConfig(float*  ConfArr);
         
-    void     SetLastProcFile(Char_t* val);
+    void     SetLastProcFile(const Char_t* val);
     
     void     SetEventProcessed(Int_t val)            {        fEventProcessed=val;}
  
@@ -101,7 +105,7 @@ class AliTPCMonitorConfig: public TNamed
     
     void     SetTimeBins(Int_t val)                  {        fTimeBins  = val      ; }
     
-    void     SetFile(Char_t* val)                      { sprintf(fFileCurrent,val);}
+    void     SetFile(const Char_t* val)              { fFileCurrent=val; }
         
     void     SetLastSector(Int_t val)                { fSectorLast = val;}
 
@@ -130,7 +134,7 @@ class AliTPCMonitorConfig: public TNamed
     
     void     PrintConfig();
 
-    void     ReadConfig(Char_t* nameconf);
+    void     ReadConfig(const Char_t* nameconf);
     void     ResetSectorArray()                      { for(Int_t i=0;i<36; i++) fSectorArr[i]=0;}
     
  private: 
@@ -144,10 +148,10 @@ class AliTPCMonitorConfig: public TNamed
     Int_t*   fSectorArr;                                                // Array of processed sectors
     
     // Current and Last Files and Dirs
-    Char_t*  fFileLast;                                                 // Name of last processed file/stream
+    TString  fFileLast;                                                 // Name of last processed file/stream
     Int_t    fFileLastSet ;                                             // Flag showing if last file name was set
     
-    Char_t*  fFileCurrent;                                              // Current file/stream  name
+    TString  fFileCurrent;                                              // Current file/stream  name
     
     Int_t    fEventNext;                                                // Process next event -> do not stay in current event                         
     Int_t    fEventNextID;                                              // Next event ID to be processed (if event id does not exist search for next existing event)