]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fixing the compilation warnings
authorkharlov <kharlov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 22 Oct 2009 09:13:32 +0000 (09:13 +0000)
committerkharlov <kharlov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 22 Oct 2009 09:13:32 +0000 (09:13 +0000)
PHOS/AliPHOSDATreeCluster.cxx
PHOS/AliPHOSDATreeCluster.h
PHOS/AliPHOSDATreeDigit.cxx
PHOS/AliPHOSDATreeDigit.h
PHOS/AliPHOSDATreeEvent.cxx
PHOS/AliPHOSDATreeEvent.h
PHOS/AliPHOSDApi0mip.cxx
PHOS/AliPHOSDApi0mip.h

index ad72d9b59397eccb636aa279b7d0d4f7fef860fc..e4e23bc5b8ee6949f56771bf98154566664de6c7 100644 (file)
@@ -1,3 +1,19 @@
+/**************************************************************************
+ * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ *                                                                        *
+ * Author: The ALICE Off-line Project.                                    *
+ * Contributors are mentioned in the code where appropriate.              *
+ *                                                                        *
+ * Permission to use, copy, modify and distribute this software and its   *
+ * documentation strictly for non-commercial purposes is hereby granted   *
+ * without fee, provided that the above copyright notice appears in all   *
+ * copies and that both the copyright notice and this permission notice   *
+ * appear in the supporting documentation. The authors make no claims     *
+ * about the suitability of this software for any purpose. It is          *
+ * provided "as is" without express or implied warranty.                  *
+ **************************************************************************/
+/* $Id:$*/
+
 // --
 // --
 // Implementation for TTree output in PHOS DA
@@ -52,7 +68,8 @@ AliPHOSDATreeCluster& AliPHOSDATreeCluster::operator=(const AliPHOSDATreeCluster
   return *this;
 }
 //------------------------------------------------------------------------
-void AliPHOSDATreeCluster::Print(char* opt){
+void AliPHOSDATreeCluster::Print(Option_t *opt) const
+{
   // Print out
   std::cout<<" AliPHOSDATreeCluster:: Energy="<<fEnergy<<" NDigits="<<fNDigits
           <<" (row,col)=("<<fRow<<","<<fCol<<")"<<std::endl;
index 29e3bfff60c8d3b2fd0bde959cd7e89408b7acea..3e4457cf72cf69ca5f9f7d5c46d262aac757b420 100644 (file)
@@ -1,3 +1,10 @@
+#ifndef AliPHOSDATreeCluster_H
+#define AliPHOSDATreeCluster_H
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
+/* $Id:$*/
+
 // --
 // --
 // Implementation for TTree output in PHOS DA
@@ -6,9 +13,6 @@
 // -- Author: Hisayuki Torii (Hiroshima Univ.)
 // --
 
-#ifndef AliPHOSDATreeCluster_H
-#define AliPHOSDATreeCluster_H
-
 #include <iostream>
 #include "AliPHOSDATreeDigit.h"
 
@@ -37,19 +41,17 @@ class AliPHOSDATreeCluster{
   bool CalculateProperty();
   int GetNDigits() const{ return fNDigits; };
   AliPHOSDATreeDigit& GetDigit(int ndigit){
-    if( ndigit >= 0 && ndigit < fNDigits ) return fDigits[ndigit];
-    else std::cout<<" AliPHOSDATreeCluster::GetDigit("<<ndigit<<")::Error. Out of range > "<<fNDigits<<std::endl;
+    return fDigits[ndigit];
   };
   AliPHOSDATreeDigit& GetMaxDigit(){
-    if( fNDigits >= 0 ) return fDigits[0];
-    else std::cout<<" AliPHOSDATreeCluster::GetMaxDigit()::Warning No digit information."<<std::endl;
+    return fDigits[0];
   };
   bool Append(AliPHOSDATreeDigit& digit);
   bool Append(AliPHOSDATreeCluster& cluster);
   bool IsNeighbor(const AliPHOSDATreeDigit& digit) const;
   bool IsNeighbor(const AliPHOSDATreeCluster& cluster) const;
   void Reset();
-  void Print(char* opt="");
+  void Print(Option_t *option="") const;
 
  private:
 
index adc26e0fd3c63e22f81e5b1bb61a88172f243f52..6fcd4c175bf8f645b51316aaf76edb6d5b294336 100644 (file)
@@ -1,3 +1,19 @@
+/**************************************************************************
+ * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ *                                                                        *
+ * Author: The ALICE Off-line Project.                                    *
+ * Contributors are mentioned in the code where appropriate.              *
+ *                                                                        *
+ * Permission to use, copy, modify and distribute this software and its   *
+ * documentation strictly for non-commercial purposes is hereby granted   *
+ * without fee, provided that the above copyright notice appears in all   *
+ * copies and that both the copyright notice and this permission notice   *
+ * appear in the supporting documentation. The authors make no claims     *
+ * about the suitability of this software for any purpose. It is          *
+ * provided "as is" without express or implied warranty.                  *
+ **************************************************************************/
+/* $Id:$*/
+
 // --
 // --
 // Implementation for TTree output in PHOS DA
@@ -21,7 +37,8 @@ bool AliPHOSDATreeDigit::IsNeighbor(const AliPHOSDATreeDigit& digit) const{
   return false;
 }
 //------------------------------------------------------------------------
-void AliPHOSDATreeDigit::Print(char* opt){
+void AliPHOSDATreeDigit::Print(Option_t *opt) const
+{
   // Print out
   std::cout<<" AliPHOSDATreeDigit:: "<<opt<<" E="<<fEnergy<<" (row,col)=("
           <<GetRow()<<","<<GetCol()<<") absid="<<fAbsId<<std::endl;
index c31f072aa5f59e21724282bcd197f87176b1cb5f..5f146013681129e215629e7fd1dad3210c8e95c9 100644 (file)
@@ -1,3 +1,10 @@
+#ifndef AliPHOSDATreeDigit_H
+#define AliPHOSDATreeDigit_H
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
+/* $Id:$*/
+
 // --
 // --
 // Implementation for TTree output in PHOS DA
@@ -6,8 +13,6 @@
 // -- Author: Hisayuki Torii (Hiroshima Univ.)
 // --
 
-#ifndef AliPHOSDATreeDigit_H
-#define AliPHOSDATreeDigit_H
 class AliPHOSDATreeDigit {
 
   friend std::ostream& operator<<(std::ostream& out,const AliPHOSDATreeDigit& digit);
@@ -28,7 +33,7 @@ class AliPHOSDATreeDigit {
   short GetDigitId() const{return fAbsId; };
   bool IsValid() const { if( fAbsId>=0 && fAbsId < 3584 ) return true; return false; };
   bool IsNeighbor(const AliPHOSDATreeDigit &digit) const;
-  void Print(char* opt="");
+  void Print(Option_t *opt="") const;
 
   //AliPHOSDATreeDigit(float energy,int mod,int row,int col):fEnergy(energy),fAbsId(mod*3584+row*56+col){/**/};
   //void Set(float energy,int mod,int row,int col){
index 3ef52a8612f71ddfb952315ea88feb472678311e..b0fb5c7d26a171eb6023ff8f21102891bcc0ac6a 100644 (file)
@@ -1,3 +1,19 @@
+/**************************************************************************
+ * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ *                                                                        *
+ * Author: The ALICE Off-line Project.                                    *
+ * Contributors are mentioned in the code where appropriate.              *
+ *                                                                        *
+ * Permission to use, copy, modify and distribute this software and its   *
+ * documentation strictly for non-commercial purposes is hereby granted   *
+ * without fee, provided that the above copyright notice appears in all   *
+ * copies and that both the copyright notice and this permission notice   *
+ * appear in the supporting documentation. The authors make no claims     *
+ * about the suitability of this software for any purpose. It is          *
+ * provided "as is" without express or implied warranty.                  *
+ **************************************************************************/
+/* $Id:$*/
+
 // --
 // --
 // Implementation for TTree output in PHOS DA
 #include "AliPHOSDATreeEvent.h"
 ClassImp(AliPHOSDATreeEvent)
 //------------------------------------------------------------------------
-AliPHOSDATreeEvent::AliPHOSDATreeEvent(const AliPHOSDATreeEvent& evt){
+AliPHOSDATreeEvent::AliPHOSDATreeEvent(const AliPHOSDATreeEvent& evt)
+: fTime(0),
+  fNDigits(0),
+  fDigits(0),
+  fNClusters(0),
+  fClusters(0)
+{
   // Copy Constructor
 
   fNDigits = evt.fNDigits;
@@ -166,7 +188,8 @@ bool AliPHOSDATreeEvent::ExecuteClustering(){
   return true;
 }
 //------------------------------------------------------------------------
-void AliPHOSDATreeEvent::Print(char* opt){
+void AliPHOSDATreeEvent::Print(Option_t *opt) const
+{
   // Print Out
   
   char* when = ctime(&fTime);
index 497339afc4e600d0185c9a7b783c2f68f5f2a774..2581f961d54511a6ddb62823f88766a2fa0c2d05 100644 (file)
@@ -1,3 +1,9 @@
+#ifndef AliPHOSDATreeEvent_H
+#define AliPHOSDATreeEvent_H
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
+/* $Id:$*/
 // --
 // --
 // Implementation for TTree output in PHOS DA
@@ -6,8 +12,6 @@
 // -- Author: Hisayuki Torii (Hiroshima Univ.)
 // --
 
-#ifndef AliPHOSDATreeEvent_H
-#define AliPHOSDATreeEvent_H
 #include <iostream>
 #include <Rtypes.h>
 #include <ctime>
@@ -31,10 +35,10 @@ class AliPHOSDATreeEvent{
   int GetNDigits() const{ return fNDigits; };
   int GetNClusters() const{ return fNClusters; };
   AliPHOSDATreeCluster& GetCluster(int nclusters){
-    if( nclusters < fNClusters ) return fClusters[nclusters];
+    return fClusters[nclusters];
   };
   AliPHOSDATreeDigit& GetDigit(int ndigits){
-    if( ndigits < fNDigits ) return fDigits[ndigits];
+    return fDigits[ndigits];
   };
   bool Fill(float fenergy,int row,int col);
   bool Fill(AliPHOSDATreeDigit& digit);
@@ -46,7 +50,7 @@ class AliPHOSDATreeEvent{
     fNDigits = 0;
     fNClusters = 0;
   };
-  void Print(char* opt="");
+  void Print(Option_t *option="") const;
 
  private:
   bool Clusterize(AliPHOSDATreeDigit& digit);
index d208950935e2cf4cdc9903fafd5166907028eec3..cd1c3d8049eb53af1ffe55f3e7e864bd5c3c9c24 100644 (file)
@@ -1,3 +1,19 @@
+/**************************************************************************
+ * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ *                                                                        *
+ * Author: The ALICE Off-line Project.                                    *
+ * Contributors are mentioned in the code where appropriate.              *
+ *                                                                        *
+ * Permission to use, copy, modify and distribute this software and its   *
+ * documentation strictly for non-commercial purposes is hereby granted   *
+ * without fee, provided that the above copyright notice appears in all   *
+ * copies and that both the copyright notice and this permission notice   *
+ * appear in the supporting documentation. The authors make no claims     *
+ * about the suitability of this software for any purpose. It is          *
+ * provided "as is" without express or implied warranty.                  *
+ **************************************************************************/
+/* $Id:$*/
+
 // --
 // --
 // Implementation for TTree output in PHOS DA
@@ -9,6 +25,7 @@
 #include <stdio.h>
 #include <iostream>
 #include <math.h>
+#include "AliLog.h"
 #include "AliPHOSDApi0mip.h"
 ClassImp(AliPHOSDApi0mip)
 //----------------------------------------------------------------
@@ -84,6 +101,13 @@ AliPHOSDApi0mip::AliPHOSDApi0mip(const AliPHOSDApi0mip& da):
   }
 }
 //-------------------------------------------------------------------
+AliPHOSDApi0mip& AliPHOSDApi0mip::operator= (const AliPHOSDApi0mip&)
+{
+  // Operator= is not implemented yet
+  AliFatal("Operator= is not implemented");  
+  return *this;
+}
+//-------------------------------------------------------------------
 AliPHOSDApi0mip::~AliPHOSDApi0mip(){
   // Destructor
 
@@ -308,14 +332,15 @@ void AliPHOSDApi0mip::FillHist(AliPHOSDATreeEvent* event){
   //
 }
 //-------------------------------------------------------------------
-void AliPHOSDApi0mip::Print(char* opt){
+void AliPHOSDApi0mip::Print(Option_t *option) const
+{
   // Print Out
 
   //fTFile->ls();
   //fTTree->Print();
   if( fEvent ){
     //fEvent->ExecuteClustering();
-    fEvent->Print(opt);
+    fEvent->Print(option);
   }
 }
 //-------------------------------------------------------------------
index d67a82cb08268b46b06d3ce779d5048a6b30021e..5f26cf3875baff21edc87db03764b9911f6d105d 100644 (file)
@@ -1,3 +1,10 @@
+#ifndef AliPHOSDApi0mip_H
+#define AliPHOSDApi0mip_H
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
+/* $Id:$*/
+
 // --
 // --
 // Implementation for TTree output in PHOS DA
@@ -5,8 +12,7 @@
 // --
 // -- Author: Hisayuki Torii (Hiroshima Univ.)
 // --
-#ifndef AliPHOSDApi0mip_H
-#define AliPHOSDApi0mip_H
+
 
 #include <time.h>
 
@@ -23,6 +29,7 @@ class AliPHOSDApi0mip : public TNamed {
  public:
   AliPHOSDApi0mip(int module,int iterid=0,char* fopt="RECREATE");
   AliPHOSDApi0mip(const AliPHOSDApi0mip& da);
+  AliPHOSDApi0mip& operator= (const AliPHOSDApi0mip&);
   ~AliPHOSDApi0mip();
   
   void NewEvent();
@@ -31,28 +38,27 @@ class AliPHOSDApi0mip : public TNamed {
   time_t GetTime(){return fTime;};
   void FillTree(AliPHOSDATreeEvent* event=0);
   void FillHist(AliPHOSDATreeEvent* event=0);
-  void Print(char* opt="");
+  void Print(Option_t *option="") const;
 
  private:
-  bool CreateTree();
-  bool CreateHist();
-  bool fCreateTree;           //! Flag of tree initialization
-  bool fCreateHist;           //! Flag of hist initialization
-  int fMod;                   // Module ID [0-4] ([2-4] for 2009)
-  int fIterId;                // Iteration step [0-*]
-  //
-  TFile* fTFile;              //! output file
-  TTree* fTTree;              //! output TTree
-  AliPHOSDATreeEvent* fEvent; //! Contents of TTree
-  bool fEventClustered;       //! Flag for
+  Bool_t CreateTree();
+  Bool_t CreateHist();
+  Bool_t fCreateTree;           //! Flag of tree initialization
+  Bool_t fCreateHist;           //! Flag of hist initialization
+  Int_t  fMod;                  // Module ID [0-4] ([2-4] for 2009)
+  Int_t  fIterId;               // Iteration step [0-*]
+  TFile* fTFile;                //! output file
+  TTree* fTTree;                //! output TTree
+  AliPHOSDATreeEvent* fEvent;   //! Contents of TTree
+  Bool_t fEventClustered;       //! Flag for
   time_t fTime;                 // time
-  TH1I* fH1Time;                // x:bin1=StartTime bin2=EndTime
-  TH1F* fH1DigitNum;            // x:Number of digits
-  TH1F* fH1ClusterNum;          // x:Number of clusters
-  TH2F* fH2EneDigitId;          // x:DigitId[0-3583] y:Digit Energy
-  TH2F* fH2MipDigitId;          // x:DigitId[0-3583] y:Cluster Energy
-  TH2F* fH2Pi0DigitId;          // x:DigitId[0-3583] y:Cluster Pair Mass
-  TH3F* fH3Pi0AsymPt;           // x:asym y:pT(GeV/c) z:Cluster Pair Mass
+  TH1I*  fH1Time;               // x:bin1=StartTime bin2=EndTime
+  TH1F*  fH1DigitNum;           // x:Number of digits
+  TH1F*  fH1ClusterNum;         // x:Number of clusters
+  TH2F*  fH2EneDigitId;         // x:DigitId[0-3583] y:Digit Energy
+  TH2F*  fH2MipDigitId;         // x:DigitId[0-3583] y:Cluster Energy
+  TH2F*  fH2Pi0DigitId;         // x:DigitId[0-3583] y:Cluster Pair Mass
+  TH3F*  fH3Pi0AsymPt;          // x:asym y:pT(GeV/c) z:Cluster Pair Mass
 
   ClassDef(AliPHOSDApi0mip,1)
 };