]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
20-apr-2006 NvE Several small modifications to prevent gcc warnings.
authornick <nick@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 25 Apr 2006 14:20:57 +0000 (14:20 +0000)
committernick <nick@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 25 Apr 2006 14:20:57 +0000 (14:20 +0000)
21-apr-2006 NvE TFile.h included in header files of IceCalibrate and IceXtalk to prevent
                compiler error with new ROOT 5.11 version.

12 files changed:
RALICE/AliAttribObj.cxx
RALICE/AliAttribObj.h
RALICE/AliCalmodule.h
RALICE/AliCalorimeter.h
RALICE/AliEvent.h
RALICE/AliJet.cxx
RALICE/AliVertex.cxx
RALICE/AliVertex.h
RALICE/history.txt
RALICE/icepack/IceCalibrate.h
RALICE/icepack/IceXtalk.h
RALICE/icepack/history.txt

index 6ee55c3506e9fec76441dc8cb352dd5ae088fc4b..86ad11424e985d02b765a576d0d5272550f86b75 100644 (file)
@@ -68,12 +68,12 @@ AliAttribObj::~AliAttribObj()
 // Destructor to delete dynamically allocated memory
 }
 ///////////////////////////////////////////////////////////////////////////
-AliAttribObj::AliAttribObj(AliAttribObj& a) : TObject(a),AliAttrib(a)
+AliAttribObj::AliAttribObj(const AliAttribObj& a) : TObject(a),AliAttrib(a)
 {
 // Copy constructor
 }
 ///////////////////////////////////////////////////////////////////////////
-TObject* AliAttribObj::Clone(const char* name)
+TObject* AliAttribObj::Clone(const char* name) const
 {
 // Make a deep copy of the current object and provide the pointer to the copy.
 // This memberfunction enables automatic creation of new objects of the
index 453301dfef5c498d476def8c994ab02188e34e60..fbcd67dca95846ef38b3b777bf7101a71c9fa96f 100644 (file)
 class AliAttribObj : public TObject,public AliAttrib
 {
  public:
-  AliAttribObj();                                  // Default constructor
-  AliAttribObj(AliAttrib& a);                      // Constructor
-  virtual ~AliAttribObj();                         // Destructor
-  AliAttribObj(AliAttribObj& a);                   // Copy constructor
-  virtual TObject* Clone(const char* name="");     // Make a deep copy and provide its pointer
+  AliAttribObj();                                    // Default constructor
+  AliAttribObj(AliAttrib& a);                        // Constructor
+  virtual ~AliAttribObj();                           // Destructor
+  AliAttribObj(const AliAttribObj& a);               // Copy constructor
+  virtual TObject* Clone(const char* name="") const; // Make a deep copy and provide its pointer
 
- ClassDef(AliAttribObj,3) // Generic handling of detector signal (calibration) attributes.
+ ClassDef(AliAttribObj,4) // Generic handling of detector signal (calibration) attributes.
 };
 #endif
index b22d795e9e6606ea62d7968589e603ee91845dad..135770862ff80f2261841a0c45a63405af0a7db9 100644 (file)
@@ -15,7 +15,9 @@ class AliCalmodule : public AliSignal
   AliCalmodule(const AliCalmodule& m);                     // Copy constructor
   AliCalmodule(Int_t row,Int_t col,Double_t sig);          // Create a module and initialise data
   virtual TObject* Clone(const char* name="") const;       // Make a deep copy and provide its pointer
+  using AliSignal::SetSignal;
   virtual void SetSignal(Double_t sig,Int_t j=1);          // Set or change data for certain module
+  using AliSignal::AddSignal;
   virtual void AddSignal(Double_t sig,Int_t j=1);          // Add signal to a certain module
   void SetRow(Int_t i);                                    // Set the row number of the module
   void SetColumn(Int_t i);                                 // Set the column number of the module
@@ -29,6 +31,6 @@ class AliCalmodule : public AliSignal
   Int_t fCol;        // The current column number
   Float_t fSigc;     // The signal after clustering
  
- ClassDef(AliCalmodule,8) // Description of a module in a calorimeter system.
+ ClassDef(AliCalmodule,9) // Description of a module in a calorimeter system.
 };
 #endif
index ecae8ff9756c4599b4092dbc37f862065f214698..b69aceeae80fb9b54c40e9fce3996f0ca541972d 100644 (file)
@@ -36,6 +36,7 @@ class AliCalorimeter : public AliDevice
   void AddSignal(AliCalmodule* m);                       // Add module signal to current calorimeter
   void Reset(Int_t row,Int_t col);                       // Reset signal for a certain module
   virtual void Reset(Int_t mode=0);                      // Reset the complete calorimeter
+  using AliDevice::GetSignal;
   virtual Float_t GetSignal(Int_t row,Int_t col=0) { return GetSignal(row,col,0); }
   Float_t GetSignal(Int_t row,Int_t col,Int_t mode);     // Provide signal of a certain module
   Int_t GetNsignals() const;                             // Return number of modules with a signal
@@ -101,6 +102,6 @@ class AliCalorimeter : public AliDevice
   AliObjMatrix* fPositions;                  //! Matrix dbase of module position pointers
   void LoadMatrix();                         // Loading of matrix lookup table from the linear hit array
  
- ClassDef(AliCalorimeter,10) // Description of a modular calorimeter system.
+ ClassDef(AliCalorimeter,11) // Description of a modular calorimeter system.
 };
 #endif
index 1165fe24925209b916e34c8a3a186481020bbe00..dbf91caf6a9fb933a426b27f4af325ec076842ea 100644 (file)
@@ -43,6 +43,7 @@ class AliEvent : public AliVertex,public AliTimestamp
   Int_t GetRunNumber() const;             // Provide the run number
   Int_t GetEventNumber() const;           // Provide the event number
   virtual void HeaderData();              // Print the event header information
+  using AliVertex::Data;
   virtual void Data(TString f="car",TString u="rad"); // Print the event info within frame f and ang units u
   void SetDevCopy(Int_t j);               // (De)activate creation of private copies of the devices
   Int_t GetDevCopy() const;               // Provide DevCopy flag value      
@@ -87,6 +88,6 @@ class AliEvent : public AliVertex,public AliTimestamp
   TObject* fDisplay;                    //! Temp. pointer to hold objects which serve event displays
   TObjArray* fDevs;                     //! Temp. array to hold references to user selected devices
 
- ClassDef(AliEvent,21) // Creation and investigation of an Alice physics event.
+ ClassDef(AliEvent,22) // Creation and investigation of an Alice physics event.
 };
 #endif
index c0c34324a0e99b1d6d0cc91959de4cc6f627e7d3..0c3a103988ebed6a77238ce789ef788aaf538f75 100644 (file)
@@ -1002,7 +1002,10 @@ TObjArray* AliJet::SortTracks(Int_t mode,TObjArray* tracks)
     fSelected->AddAt(tx,j); // add track at the end
     break; // go for next track
    }
-   
+
+   val1=0;
+   val2=0;
+
    switch (abs(mode))
    {
     case 1:
index e4cbcd39c2ef02977c206d21c94dd6ae92be2381..1446c5832480ead181806be1254347a09afb6285 100644 (file)
@@ -1092,6 +1092,9 @@ TObjArray* AliVertex::SortJets(Int_t mode,TObjArray* jets)
     fSelected->AddAt(jx,j); // add jet at the end
     break; // go for next jet
    }
+
+   val1=0;
+   val2=0;
    
    switch (abs(mode))
    {
index 12ff83a6c7c86030576f8d71766c389d576a64cb..4905bc5a2f29052c2e06677efc679c1933b002e9 100644 (file)
@@ -29,6 +29,7 @@ class AliVertex : public AliJet,public AliPosition
   void AddVertex(AliVertex& v,Int_t connect=1); // Add (and connect) a (sec.) vertex to the current vertex
   void AddJet(AliJet* j,Int_t tracks=1)    { AddJet(*j,tracks); }
   void AddVertex(AliVertex* v,Int_t connect=1) { AddVertex(*v,connect); }
+  using AliPosition::Data;
   virtual void Data(TString f="car",TString u="rad"); // Print the vertex info within frame f and ang units u
   virtual void List(TString f="car",TString u="rad"); // Vertex prim. track info for frame f and ang units u
   virtual void ListAll(TString f="car",TString u="rad");// Prim.+sec. vtx full track info for frame f and ang units u
@@ -67,6 +68,6 @@ class AliVertex : public AliJet,public AliPosition
  private:
   void Dumps(AliVertex* v,Int_t n,TString f,TString u); // Recursively print all sec. vertices
  
- ClassDef(AliVertex,11) // Creation and investigation of an AliVertex.
+ ClassDef(AliVertex,12) // Creation and investigation of an AliVertex.
 };
 #endif
index 9c4d5288b2060a9ffc6f43bbb7d66471aa3a5e5b..8ac4a54485efadc7678d797918aa7666e856ced3 100644 (file)
 18-mar-2006 NvE Support for display of selected track array introduced in AliHelix.
                 Also copy ctor of AliHelix made complete for new datamembers.
 22-mar-2006 NvE Line attribute selections for displays extended in AliHelix.
+20-apr-2006 NvE Several small modifications to prevent gcc warnings.
index ca29f3dd4953dbc03e61c805a9bb63090c275739..244b1eb0aa5fbc4531d175ea432a5c1807cf6f0d 100644 (file)
@@ -9,6 +9,7 @@
 #include "TROOT.h"
 #include "TTask.h"
 #include "TString.h"
+#include "TFile.h"
 
 #include "AliJob.h"
 #include "IceEvent.h"
@@ -27,6 +28,6 @@ class IceCalibrate : public TTask
   TFile* fCalfile;     // The (optional) calibration input file in ROOT format
   AliObjMatrix* fOmdb; // The OM database object
 
- ClassDef(IceCalibrate,1) // TTask derived class to perform the various calibrations
+ ClassDef(IceCalibrate,2) // TTask derived class to perform the various calibrations
 };
 #endif
index 0f4d5e630237d626e0f881737f35942a8ecc5222..626ddcf4e78d8cfe8785b475f1317fd6182b3dae 100644 (file)
@@ -9,6 +9,7 @@
 #include "TROOT.h"
 #include "TTask.h"
 #include "TString.h"
+#include "TFile.h"
 
 #include "AliJob.h"
 #include "IceEvent.h"
@@ -31,6 +32,6 @@ class IceXtalk : public TTask
   Float_t fPmin;       // The minimal probability to induce cross talk 
   Float_t fPe;         // The nominal Xtalk signal in photo-electron equivalent
 
- ClassDef(IceXtalk,1) // TTask derived class to perform cross talk hit correction
+ ClassDef(IceXtalk,2) // TTask derived class to perform cross talk hit correction
 };
 #endif
index e7786be9eaa4511b08ff645a41dcf0b781b95a14..460d9b467678962c723dafdd4ef04e290cd199b9 100644 (file)
@@ -63,3 +63,5 @@
 29-mar-2006 NvE Modified numerical evaluation of pandel value in IcePandel to extend validity
                 range (by George and Dipo).
                 Also new memberfunction SetPenalty() introduced in IcePandel.
+21-apr-2006 NvE TFile.h included in header files of IceCalibrate and IceXtalk to prevent
+                compiler error with new ROOT 5.11 version.