]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCMonitorConfig.cxx
compiler warnings (Jochen)
[u/mrichter/AliRoot.git] / TPC / AliTPCMonitorConfig.cxx
index f061a3f344e24061e2e0fa2b8a7262dcc3931c6b..a4c89c8ed2a2ccd93b86f6062d5d19f24266d0b7 100755 (executable)
 
 /*
 $Log$
+Revision 1.2  2007/10/12 13:36:27  cvetan
+Coding convention fixes from Stefan
+
 Revision 1.1  2007/09/17 10:23:31  cvetan
 New TPC monitoring package from Stefan Kniege. The monitoring package can be started by running TPCMonitor.C macro located in macros folder.
 
 */ 
 
-////////////////////////////////////////////////////////////////////////
-//
-// AliTPCMonitorConfig class
-//
-// Configuration handler class for AliTPCMonitor
-//
-// The basic configuration will be read from the file AliTPCMonitorConfig.txt
-// and can be changed online via the Button "Conf. Ranges"
-// Basic configuration settings are e.g. the range for the determination 
-// of the baseline, maximum adc value and the settings for the pedestal calculation.
-// 
-// Author: Stefan Kniege, IKF, Frankfurt
-//       
-//
+//////////////////////////////////////////////////////////////////////////
+////
+//// AliTPCMonitorConfig class
+////
+//// Configuration handler class for AliTPCMonitor
+////
+//// The basic configuration will be read from the file AliTPCMonitorConfig.txt
+//// and can be changed online via the Button "Conf. Ranges"
+//// Basic configuration settings are e.g. the range for the determination 
+//// of the baseline, maximum adc value and the settings for the pedestal calculation.
+//// 
+//// Author: Stefan Kniege, IKF, Frankfurt
+////       
+////
 /////////////////////////////////////////////////////////////////////////
 
 
@@ -86,7 +89,7 @@ AliTPCMonitorConfig::AliTPCMonitorConfig(const Char_t* name, const Char_t* title
   fTimeBins(1024),
   fMaxHwAddr(24000),
   fFitPulse(1),
-  fProcOneSector(1)
+  fProcOneSector(0)
 {
   // Constructor 
   for(Int_t i =0; i<36; i++) { fSectorArr[i]  =  0;}
@@ -282,7 +285,7 @@ void AliTPCMonitorConfig::ReadConfig(Char_t* nameconf)
   // Read base configuration from file
   // Update main window size
 
-  string line;
+  //  string line;
   ifstream datin;
   datin.open(nameconf);
   
@@ -375,7 +378,12 @@ Char_t* AliTPCMonitorConfig::GetLastProcFile()
       Char_t fnlast[256];
       sprintf(fnlast,"AliTPCMonitorLastFile.txt");
       ifstream datin(fnlast);
-      if(!datin) {  AliWarning("Could not read file containing  name of last processed file: Check permissions and path");}
+      if(!datin.is_open()) {
+        AliWarning("Could not read file containing  name of last processed file: Check permissions and path");
+       sprintf(fFileLast,"%s","");
+       fFileLastSet=0;
+        return fFileLast;
+      }
       datin >> fFileLast;
       datin.close(); 
       fFileLastSet=1;