]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Code cleaning, all wranings removed with new Makefile options
authorkir <kir@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 4 Aug 2003 13:48:49 +0000 (13:48 +0000)
committerkir <kir@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 4 Aug 2003 13:48:49 +0000 (13:48 +0000)
24 files changed:
RICH/AliRICHChamber.cxx
RICH/AliRICHChamber.h
RICH/AliRICHClusterFinder.cxx
RICH/AliRICHDetect.cxx
RICH/AliRICHDetect.h
RICH/AliRICHDetectV1.cxx
RICH/AliRICHDigitizer.cxx
RICH/AliRICHGeometry.h
RICH/AliRICHHitMapA1.cxx
RICH/AliRICHHitMapA1.h
RICH/AliRICHMerger.cxx
RICH/AliRICHPatRec.cxx
RICH/AliRICHPatRec.h
RICH/AliRICHRecHit1D.cxx
RICH/AliRICHRecHit3D.cxx
RICH/AliRICHResponseV0.h
RICH/AliRICHSegmentationV0.cxx
RICH/AliRICHSegmentationV0.h
RICH/AliRICHSegmentationV1.cxx
RICH/AliRICHSegmentationV1.h
RICH/AliRICHTresholdMap.cxx
RICH/AliRICHTresholdMap.h
RICH/AliRICHv1.cxx
RICH/AliRICHv3.cxx

index 7f4d671c44dbba77e228f4edc73e2a5bbabb5ca5..7dac4f5d9b407d769d9af46aa769b689fa2b9b4c 100644 (file)
@@ -215,7 +215,7 @@ void AliRICHChamber::GenerateTresholds()
   }      
 }//void AliRICHChamber::GenerateTresholds()
 //______________________________________________________________________________
-void AliRICHChamber::Print(Option_t *option) const
+void AliRICHChamber::Print(Option_t *) const
 {
   Info(fName.Data(),"r=%8.3f theta=%5.1f phi=%5.1f x=%8.3f y=%8.3f z=%8.3f",
                      Rho(), Theta()*r2d,Phi()*r2d ,   X(),    Y(),    Z());
index f9c8798b34cabb135d3f3ef439240ca3a355d432..669e4f0e05bf15c82209387a937b5280eadcee49 100644 (file)
@@ -33,7 +33,7 @@ public:
            AliRICHChamber(Int_t iModuleN,AliRICHParam *pParam);
            AliRICHChamber(const AliRICHChamber &chamber ) : TNamed(chamber) {}//copy ctor 
   virtual ~AliRICHChamber()                               {;}//dtor
-  AliRICHChamber& operator=(const AliRICHChamber& rhs){return *this;}
+  AliRICHChamber& operator=(const AliRICHChamber&){return *this;}
   void LocaltoGlobal(Float_t pos[3],Float_t Localpos[3]);//Transformation from local to global coordinates, chamber-dependant
   void GlobaltoLocal(Float_t pos[3],Float_t localpos[3]);//Transformation from Global to local coordinates, chamber-dependant 
   void GenerateTresholds();                              //Generate pad dependent tresholds
@@ -47,12 +47,12 @@ public:
   Float_t ROuter()            const{return frMax;}      // Return outer radius of sensitive volum  
   void    SetZPOS(Float_t p1)      {fzPos=p1;}
   Float_t ZPosition()         const{return fzPos;}
-  void              SetGeometryModel(AliRICHGeometry* pRICHGeometry)           {fGeometry=pRICHGeometry;}        
-  AliRICHGeometry*  GetGeometryModel()                                    const{return fGeometry;}
+  void              SetGeometryModel(AliRICHGeometry* pRICHGeometry)            {fGeometry=pRICHGeometry;}        
+  AliRICHGeometry*  GetGeometryModel()                                     const{return fGeometry;}
   void              SetResponseModel(AliRICHResponse* pRICHResponse)            {fResponse=pRICHResponse;}
   AliRICHResponse*  GetResponseModel()                                     const{return fResponse;}
-  void              SetSegmentationModel(AliSegmentation* pRICHSegmentation)   {fSegmentation=pRICHSegmentation;}
-  AliSegmentation*  GetSegmentationModel(Int_t i=0)                       const{return fSegmentation;}
+  void              SetSegmentationModel(AliSegmentation* pRICHSegmentation)    {fSegmentation=pRICHSegmentation;}
+  AliSegmentation*  GetSegmentationModel()                                 const{return fSegmentation;}
   void                  SetReconstructionModel(AliRICHClusterFinder *pRICHReconstruction)    {fReconstruction=pRICHReconstruction;}
   AliRICHClusterFinder* &GetReconstructionModel()                                            {return fReconstruction;}
   void   SigGenInit(Float_t x, Float_t y, Float_t z)   {fSegmentation->SigGenInit(x, y, z) ;}
index 722f45f64cc59a2aa4ca389cd1aef1aac08088a7..f4cafb7fbede58488e80c9a02430998344a8a99f 100644 (file)
@@ -90,6 +90,7 @@ AliRICHClusterFinder::AliRICHClusterFinder()
 }
 
 AliRICHClusterFinder::AliRICHClusterFinder(const AliRICHClusterFinder& ClusterFinder)
+                     :TObject(ClusterFinder)
 {
 // Copy Constructor
 }
@@ -1074,8 +1075,9 @@ Float_t DiscrCharge(Int_t i,Double_t *par)
 
 //
 // Minimisation function
-void fcn(Int_t &npar, Double_t *gin, Double_t &f, Double_t *par, Int_t iflag)
+void fcn(Int_t &npar, Double_t */*gin*/, Double_t &f, Double_t *par, Int_t /*iflag*/)
 {
+  npar=1;
     Int_t i;
     Float_t delta;
     Float_t chisq=0;
@@ -1104,7 +1106,7 @@ void AliRICHClusterFinder::SetDigits(TClonesArray *RICHdigits)
     fNdigits = fDigits->GetEntriesFast();
 }
 
-AliRICHClusterFinder& AliRICHClusterFinder::operator=(const AliRICHClusterFinder& rhs)
+AliRICHClusterFinder& AliRICHClusterFinder::operator=(const AliRICHClusterFinder& /*rhs*/)
 {
 // Assignment operator
     return *this;
index 4ace753ff23c1b40b3e390d44e8906e106bbb918..93a0df871ef9f0f469c4f9abddb3e26d034e6abd 100644 (file)
@@ -38,7 +38,8 @@
 
 ClassImp(AliRICHDetect)
 //___________________________________________
-AliRICHDetect::AliRICHDetect() : TObject()
+AliRICHDetect::AliRICHDetect() 
+              :TNamed()
 {
 
 // Default constructor 
@@ -51,7 +52,7 @@ AliRICHDetect::AliRICHDetect() : TObject()
 
 //___________________________________________
 AliRICHDetect::AliRICHDetect(const char *name, const char *title)
-    : TObject()
+              :TNamed(name,title)
 {
 
   TStyle *mystyle=new TStyle("Plain","mystyle");
@@ -100,7 +101,7 @@ void AliRICHDetect::Detect(Int_t nev, Int_t type)
   AliRICHGeometry*  geometry;
   
   iChamber = &(pRICH->Chamber(0));
-  segmentation=(AliRICHSegmentationV0*) iChamber->GetSegmentationModel(0);
+  segmentation=(AliRICHSegmentationV0*) iChamber->GetSegmentationModel();
   geometry=iChamber->GetGeometryModel();
  
   
@@ -744,8 +745,8 @@ Int_t ***AliRICHDetect::i3tensor(long nrl, long nrh, long ncl, long nch, long nd
 }
 
 void AliRICHDetect::free_i3tensor(int ***t, long nrl, long nrh, long ncl, long nch,long ndl, long ndh)
-// free a Int_t f3tensor allocated by i3tensor()
-{
+{// free a Int_t f3tensor allocated by i3tensor()
+  nrh++;ndh++;nch++;
   int NR_END=1; 
 
   free((char*) (t[nrl][ncl]+ndl-NR_END));
index 04533f2f37b577cf2dbaace945a77291759251d8..d430b22f01d3e8cb72b24d6a0d7be2293f51a5d5 100644 (file)
@@ -15,7 +15,8 @@
 
 class AliRICHDetect;
 
-class AliRICHDetect : public TObject {
+class AliRICHDetect : public TNamed
+{
     
  public:
   AliRICHDetect();
@@ -39,9 +40,6 @@ class AliRICHDetect : public TObject {
   TCanvas *fc4;                   //Online mesh activation data
 
   ClassDef(AliRICHDetect,1)  //Reconstruction module for :RICH version 0
-       };
-
-
-       
-       
+};
+               
 #endif
index a5869b346f7fcb85dcfbaaea6c554b59f4d24477..7bec7c583730d66b038aa2b801abfa75538ad67d 100644 (file)
@@ -53,7 +53,7 @@ AliRICHDetectV1::AliRICHDetectV1() : AliRICHDetect()
 
 //___________________________________________
 AliRICHDetectV1::AliRICHDetectV1(const char *name, const char *title)
-    : AliRICHDetect()
+                :AliRICHDetect(name,title)
 {
 
   TStyle *mystyle=new TStyle("Plain","mystyle");
@@ -104,7 +104,7 @@ void AliRICHDetectV1::Detect(Int_t nev, Int_t type)
   AliRICHGeometry*  geometry;
   
   iChamber = &(pRICH->Chamber(0));
-  segmentation=(AliRICHSegmentationV0*) iChamber->GetSegmentationModel(0);
+  segmentation=(AliRICHSegmentationV0*) iChamber->GetSegmentationModel();
   geometry=iChamber->GetGeometryModel();
  
   
@@ -727,6 +727,7 @@ Int_t ***AliRICHDetectV1::i3tensor(long nrl, long nrh, long ncl, long nch, long
 void AliRICHDetectV1::free_i3tensor(int ***t, long nrl, long nrh, long ncl, long nch,long ndl, long ndh)
 // free a Int_t f3tensor allocated by i3tensor()
 {
+  nrh++;ndh++;nch++;//to remove warning
   int NR_END=1; 
 
   free((char*) (t[nrl][ncl]+ndl-NR_END));
index 338014f895f0afeb331bda46f4939fafd535aa18..fdd86a1bc27ea54a2a020a5aeab5958687bae671 100644 (file)
@@ -184,7 +184,7 @@ void AliRICHDigitizer::Exec(Option_t* option)
         
   for (Int_t i =0; i<kNCH; i++) {
     iChamber= &(pRICH->Chamber(i));
-    segmentation=iChamber->GetSegmentationModel(1);
+    segmentation=iChamber->GetSegmentationModel();
     fHitMap[i] = new AliRICHHitMapA1(segmentation, fTDList);
   }
 
index fa1adfff5c996dba9a9594dcd9350f2e095584ac..a354d3f7ffc60ff2117fa79f81fd8588ee4fba5a 100644 (file)
@@ -106,7 +106,7 @@ inline AliRICHGeometry::AliRICHGeometry()
 
 inline void AliRICHGeometry::Print(Option_t *option)const
 {
-   TObject::Print();
+   TObject::Print(option);
    cout<<"Radiator Gap thickness:  "<<GetGapThickness()          <<endl;
    cout<<"Proximity Gap thickness: "<<GetProximityGapThickness() <<endl;
    cout<<"Quartz window length:    "<<GetQuartzLength()          <<endl;
index b680992f6bfa4b9ad1ed3000a8308f39ee0eb0f6..1ee6e6d64912d427b9a170b5bd8245d68b8cb7ab 100644 (file)
@@ -62,7 +62,7 @@ AliRICHHitMapA1::~AliRICHHitMapA1()
     if (fHitMap) delete[] fHitMap;
 }
 
-void AliRICHHitMapA1::Clear(const char *opt)
+void AliRICHHitMapA1::Clear(const char */*opt*/)
 {
 
 // Clear contents of hit map
index 5e31a99b6f3548abdba89e61f75ac68b3f0b84ef..832bae5186d6f8f3e5823c3997361080bf2afd47 100644 (file)
@@ -27,7 +27,7 @@ public AliHitMap
     virtual Int_t    GetHitIndex(Int_t ix, Int_t iy) const;
     virtual TObject* GetHit(Int_t ix, Int_t iy) const;
     virtual  void    FlagHit(Int_t ix, Int_t iy);
-    virtual  Bool_t  ValidateHit(Int_t ix, Int_t iy) {return 1;}
+    virtual  Bool_t  ValidateHit(Int_t, Int_t) {return 1;}
     virtual FlagType TestHit(Int_t ix, Int_t iy);
  private:
     Int_t CheckedIndex(Int_t ix, Int_t iy) const;
index 43105dcc3bbc89f95f7fe24a2676bfcc12734ea1..a254a2bbb50f1b8d40810a913395ee243205faa5 100644 (file)
@@ -149,7 +149,7 @@ void AliRICHMerger::Digitise(Int_t nev, Int_t flag)
 
   // keep galice.root for signal and name differently the file for 
   // background when add! otherwise the track info for signal will be lost !
-
+  nev++;//to remove warning
   Int_t particle;
 
   AliRICHChamber*       iChamber;
@@ -192,7 +192,7 @@ void AliRICHMerger::Digitise(Int_t nev, Int_t flag)
     
   for (Int_t i =0; i<kNCH; i++) {
     iChamber= &(pRICH->Chamber(i));
-    segmentation=iChamber->GetSegmentationModel(1);
+    segmentation=iChamber->GetSegmentationModel();
     fHitMap[i] = new AliRICHHitMapA1(segmentation, fList);
   }
   //
index 2b4ee521792dcf95c4c7306eb01dd7a63b639d2c..2753717e4976e6695c2087bfa88d37b0f0a6cd0a 100644 (file)
@@ -42,7 +42,7 @@
 
 ClassImp(AliRICHPatRec)
 //___________________________________________
-AliRICHPatRec::AliRICHPatRec() : TObject()
+AliRICHPatRec::AliRICHPatRec() : TNamed()
 {
   // Default constructor
   
@@ -50,7 +50,7 @@ AliRICHPatRec::AliRICHPatRec() : TObject()
 }
 //___________________________________________
 AliRICHPatRec::AliRICHPatRec(const char *name, const char *title)
-    : TObject()
+    : TNamed(name,title)
 {
     //Constructor for Bari's pattern recogniton method object
 }
@@ -354,7 +354,9 @@ void AliRICHPatRec::PhotonSelection(Int_t track, Int_t &nphot, Float_t &thetamea
 {
 
 // not implemented yet
-
+  track++;
+  nphot=10;
+  thetamean=4;
   printf("Calling PhotonSelection\n");
 }
 
@@ -472,7 +474,7 @@ void AliRICHPatRec::FlagPhotons(Int_t track, Float_t theta)
 {
 
 // not implemented yet
-
+  track++;theta++;
   printf("Calling FlagPhotons\n");
 }
 
index cb45080986fef417cb205ca8ea56f66abc07de31..79760cf9f4a146a123ff567f53c003647e0e5def 100644 (file)
@@ -19,7 +19,8 @@
 
 class AliRICHPatRec;
 
-class AliRICHPatRec : public TObject {
+class AliRICHPatRec : public TNamed
+{
     
  public:
   AliRICHPatRec();
index 9f1ffde7be38531f710dee3eb871a97ae98b6815..22ab4a7fe07780a7a44ed262be8bae5d5554eb95 100644 (file)
 ClassImp(AliRICHRecHit1D)
 
 AliRICHRecHit1D::AliRICHRecHit1D(Int_t id, Float_t *rechit, Float_t *photons, Int_t *padsx, Int_t* padsy)
-{
-    //
-    // Creates a RICH rec. hit object
-    //
-    fTheta        = rechit[0];
-    fPhi          = rechit[1];
-    fOmega        = rechit[2];
-    fX            = rechit[3];
-    fY            = rechit[4];
-    fEmissPoint   = rechit[5];
-    fGoodPhotons  = (Int_t)rechit[6];
-    for(Int_t i=0; i<100; i++) {
+{// Creates a RICH rec. hit object
+  id++;//to remove warning
+  fTheta        = rechit[0];
+  fPhi          = rechit[1];
+  fOmega        = rechit[2];
+  fX            = rechit[3];
+  fY            = rechit[4];
+  fEmissPoint   = rechit[5];
+  fGoodPhotons  = (Int_t)rechit[6];
+  for(Int_t i=0; i<100; i++) {
        fCerPerPhoton[i]  = photons[i];
        fPadsUsedX[i]    = padsx[i];
        fPadsUsedY[i]    = padsy[i];
-    }
-    
+  }    
 }
-
-
index a687ac23a94617970e71eda91b28146576c1a4ca..1d3edf86c8b4a25493a0f64cb34b87158383d534 100644 (file)
@@ -25,6 +25,7 @@ AliRICHRecHit3D::AliRICHRecHit3D(Int_t id, Float_t *rechit, Float_t omega, Float
     //
     // Creates a RICH rec. hit object
     //
+    id++;//to remove warning
     fTheta        = rechit[0];
     fPhi          = rechit[1];
     fOmega        = rechit[2];
index ab14d5b74fa0ce57414b9ce8345a511992e6cccf..e49f8fb434423143c6490a1cc95e7a8d9141c0a7 100644 (file)
@@ -87,7 +87,7 @@ public:
     
 inline void AliRICHResponseV0::Print(Option_t* option) const
 {
-   TObject::Print();
+   TObject::Print(option);
    cout<<"Slope of the charge distribution               "<<fChargeSlope                             <<endl;
    cout<<"Width of the charge distribution in x          "<<fChargeSpreadX                   <<endl;
    cout<<"Width of the charge distribution in y          "<<fChargeSpreadY                   <<endl;
index d9f4e9005da313f7c84bed78cd759057629f2a6c..ae37f1481fb806859d6c900439357c12e9e46fae 100644 (file)
@@ -252,13 +252,9 @@ Neighbours(Int_t iX, Int_t iY, Int_t* Nlist, Int_t Xlist[7], Int_t Ylist[7])
 */
 }
 
-Float_t AliRICHSegmentationV0::Distance2AndOffset(Int_t iX, Int_t iY, Float_t X, Float_t Y
-, Int_t *dummy)
-
-{
-// Returns the square of the distance between 1 pad
-// labelled by its Channel numbers and a coordinate
-
+Float_t AliRICHSegmentationV0::Distance2AndOffset(Int_t iX, Int_t iY, Float_t X, Float_t Y,Int_t *dummy)
+{// Returns the square of the distance between 1 pad labelled by its Channel numbers and a coordinate
+  dummy=0;
   Float_t x,y;
   GetPadC(iX,iY,x,y);
   return (x-X)*(x-X) + (y-Y)*(y-Y);
@@ -277,7 +273,7 @@ void  AliRICHSegmentationV0::GiveTestPoints(Int_t &n, Float_t *x, Float_t *y) co
 
 void AliRICHSegmentationV0::Draw(const char* opt) const
 {
-
+  Info("Draw","%s",opt);
 // Dummy draw routine
 
 /*
index e6c2c669a86775d62816235b470f66bfd46d7449..f71de8b1cdef9416b80152bdb1ad8aacdd68bd66 100644 (file)
@@ -29,8 +29,7 @@ public AliSegmentation {
     virtual Float_t GetAnod(Float_t xhit) const;
     // Transform from pad to real coordinates
     virtual void    GetPadI(Float_t x, Float_t y , Int_t &ix, Int_t &iy);
-    virtual void    GetPadI(Float_t x, Float_t y , Float_t z, Int_t &ix, Int_t &iy)  
-       {GetPadI(x, y, ix, iy);}
+    virtual void    GetPadI(Float_t x, Float_t y , Float_t /*z*/, Int_t &ix, Int_t &iy) {GetPadI(x, y, ix, iy);}
     // Transform from real to pad coordinates
     virtual void    GetPadC(Int_t ix, Int_t iy, Float_t &x, Float_t &y);
     virtual void    GetPadC(Int_t ix, Int_t iy, Float_t &x, Float_t &y, Float_t &z) 
@@ -66,14 +65,12 @@ public AliSegmentation {
     virtual void     SetPad(Int_t ix, Int_t iy);
     // set hit position
     virtual void     SetHit(Float_t xhit , Float_t yhit);
-    virtual void     SetHit(Float_t xhit, Float_t yhit, Float_t zhit)
-       {SetHit(xhit, yhit);}
+    virtual void     SetHit(Float_t xhit, Float_t yhit, Float_t /*zhit*/){SetHit(xhit, yhit);}
     //
     // Iterate over pads
     // Initialiser
     virtual void  FirstPad(Float_t xhit, Float_t yhit, Float_t dx, Float_t dy);
-    virtual void  FirstPad(Float_t xhit, Float_t yhit, Float_t zhit, Float_t dx, Float_t dy)
-       {FirstPad(xhit, yhit, dx, dy);}
+    virtual void  FirstPad(Float_t xhit, Float_t yhit, Float_t /*zhit*/, Float_t dx, Float_t dy){FirstPad(xhit, yhit, dx, dy);}
     // Stepper
     virtual void  NextPad();
     // Condition
@@ -84,11 +81,9 @@ public AliSegmentation {
                                       dummy);
     // Number of pads read in parallel and offset to add to x 
     // (specific to LYON, but mandatory for display)
-    virtual void GetNParallelAndOffset(Int_t iX, Int_t iY,
-                                      Int_t *Nparallel, Int_t *Offset) {*Nparallel=1;*Offset=0;}
+    virtual void GetNParallelAndOffset(Int_t /*iX*/, Int_t /*iY*/,Int_t *Nparallel, Int_t *Offset) {*Nparallel=1;*Offset=0;}
     // Get next neighbours 
-    virtual void Neighbours
-       (Int_t iX, Int_t iY, Int_t* Nlist, Int_t Xlist[10], Int_t Ylist[10]);
+    virtual void Neighbours    (Int_t iX, Int_t iY, Int_t* Nlist, Int_t Xlist[10], Int_t Ylist[10]);
     //
     // Current Pad during Integration
     // x-coordinate
@@ -98,8 +93,8 @@ public AliSegmentation {
     // current sector
     virtual Int_t  ISector() {return 1;}
     // calculate sector from x-y coordinates
-    virtual Int_t  Sector(Int_t ix, Int_t iy) {return 1;}
-    virtual Int_t  Sector(Float_t x, Float_t y) {return 1;}
+    virtual Int_t  Sector(Int_t,Int_t) {return 1;}
+    virtual Int_t  Sector(Float_t,Float_t) {return 1;}
     //
     // Signal Generation Condition during Stepping
     virtual Int_t SigGenCond(Float_t x, Float_t y, Float_t z);
@@ -113,7 +108,7 @@ public AliSegmentation {
     // Debugging utilities
     virtual void Draw(const char* = "") const; 
     // Function for systematic corrections
-    virtual void SetCorrFunc(Int_t dum, TF1* func) {fCorr=func;}
+    virtual void SetCorrFunc(Int_t /*dum*/, TF1* func) {fCorr=func;}
 
     virtual TF1* CorrFunc(Int_t) const {return fCorr;} 
     ClassDef(AliRICHSegmentationV0,1)
index 2ee94e81bfb13060c4a4496a99cdec168eff2db2..5df7eb0dc153a02b869e9522c49e58fece337360 100644 (file)
@@ -34,10 +34,9 @@ AliRICHSegmentationV1::AliRICHSegmentationV1()
    Init(0);       // ??? remove 0
 }
 
-void AliRICHSegmentationV1::Init(Int_t id)
-{
-// Recalculates all the values after some of them have been changed
-
+void AliRICHSegmentationV1::Init(Int_t /*id*/)
+{//Recalculates all the values after some of them have been changed
+    
    Float_t csi_length = fNpy*fDpy + fDeadZone;
    Float_t csi_width = fNpx*fDpx + 2*fDeadZone;
 
index 86ad65e94816af0ce96b1c2d52c271facfa17f1c..2cd9600389934c99bf096dc97acb43fd8153954a 100644 (file)
@@ -21,7 +21,7 @@ public:
    virtual Int_t  Sector(Float_t x, Float_t y);    // calculate sector from x-y coordinates
 
    virtual void    GetPadI(Float_t x ,Float_t y ,Int_t   &ix,Int_t   &iy);         // Transform from pad to real coordinates
-   virtual void    GetPadI(Float_t x, Float_t y , Float_t z, Int_t &ix, Int_t &iy)  {GetPadI(x, y, ix, iy);}
+   virtual void    GetPadI(Float_t x, Float_t y , Float_t /*z*/, Int_t &ix, Int_t &iy)  {GetPadI(x, y, ix, iy);}
     
    virtual void    GetPadC(Int_t   ix,Int_t   iy,Float_t &x ,Float_t &y );    // Transform from real to pad coordinates
    virtual void    GetPadC(Int_t ix, Int_t iy, Float_t &x, Float_t &y, Float_t &z) {z=0; GetPadC(ix, iy, x , y);}
@@ -38,7 +38,7 @@ private:
 
 inline void AliRICHSegmentationV1::Print(Option_t *option)const
 {
-   TObject::Print();
+   TObject::Print(option);
    cout<<"Pad width in cm:         "<<fDpx                 <<endl;
    cout<<"Pad heights in cm:       "<<fDpy                 <<endl;
    cout<<"Pad number along x:      "<<fNpx                 <<endl;
index cb06090c14a6d7577ebc5a7a47f89710def390cb..9f9f72ca91834a25c2cffe0e28b4b03fd1a8559b 100644 (file)
@@ -48,7 +48,7 @@ AliRICHTresholdMap::~AliRICHTresholdMap()
     if (fHitMap) delete[] fHitMap;
 }
 
-void AliRICHTresholdMap::Clear(const char *opt)
+void AliRICHTresholdMap::Clear(const char */*opt*/)
 {
 
 // Clear contents of hit map
index 8fb77b5cf17b009f916d267abb254ff0e18675dc..5efc312ffeb08cf0cbcd06165ab03c96987d7619 100644 (file)
@@ -30,7 +30,7 @@ class AliRICHTresholdMap : public AliHitMap
   virtual Int_t    GetHitIndex(Int_t ix, Int_t iy) const;
   virtual TObject* GetHit(Int_t ix, Int_t iy) const;
   virtual  void    FlagHit(Int_t ix, Int_t iy);
-  virtual  Bool_t  ValidateHit(Int_t ix, Int_t iy) {return 1;}
+  virtual  Bool_t  ValidateHit(Int_t,Int_t) {return 1;}
   virtual FlagType TestHit(Int_t ix, Int_t iy);
  private:
   Int_t CheckedIndex(Int_t ix, Int_t iy) const;
index 2fd5bfef752eb947f08f4ab3d49f427f27054240..802bd5897ee4d721f47eef64cf1705ed563ae3c5 100644 (file)
@@ -149,7 +149,7 @@ void AliRICHv1::Init()
     ((AliRICHChamber*)fChambers->At(6))->SetGid(7);  
 
 
-    segmentation=Chamber(0).GetSegmentationModel(0);
+    segmentation=Chamber(0).GetSegmentationModel();
     geometry=Chamber(0).GetGeometryModel();
     response=Chamber(0).GetResponseModel();
     
index 0750fc3ab0d3cec80f3bcce13b361835d7ddf328..c77b48a5fb26dfe4a8b7666f6209a511ac155f49 100644 (file)
@@ -94,7 +94,7 @@ void AliRICHv3::CreateGeometry()
   AliRICHChamber*       iChamber;
 
   iChamber = &(pRICH->Chamber(0));
-  segmentation=(AliRICHSegmentationV0*) iChamber->GetSegmentationModel(0);
+  segmentation=(AliRICHSegmentationV0*) iChamber->GetSegmentationModel();
   geometry=iChamber->GetGeometryModel();
 
   Float_t distance;
@@ -574,7 +574,7 @@ void AliRICHv3::BuildGeometry()
     AliRICHGeometry*  geometry;
  
     iChamber = &(pRICH->Chamber(0));
-    AliRICHSegmentationV1* segmentation=(AliRICHSegmentationV1*) iChamber->GetSegmentationModel(0);
+    AliRICHSegmentationV1* segmentation=(AliRICHSegmentationV1*) iChamber->GetSegmentationModel();
     geometry=iChamber->GetGeometryModel();
     
     new TBRIK("S_RICH","S_RICH","void",71.09999,11.5,73.15);