]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fix shadow warnings
authorakisiel <akisiel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 20 May 2008 08:18:06 +0000 (08:18 +0000)
committerakisiel <akisiel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 20 May 2008 08:18:06 +0000 (08:18 +0000)
PWG2/FEMTOSCOPY/AliFemto/AliFemtoEvent.cxx
PWG2/FEMTOSCOPY/AliFemto/AliFemtoSimpleAnalysis.h
PWG2/FEMTOSCOPY/AliFemto/AliFemtoTrack.cxx
PWG2/FEMTOSCOPY/AliFemto/AliFmLorentzVector.h
PWG2/FEMTOSCOPY/AliFemto/AliFmThreeVector.h

index 8795dcf587781d9613963308625e123a366fcace..756e5f2b6baf694460d97f7c51428d487e339176 100644 (file)
@@ -273,12 +273,12 @@ void AliFemtoEvent::SetEventNumber(const unsigned short& event){fEventNumber = e
 void AliFemtoEvent::SetRunNumber(const int& runNum){fRunNumber = runNum;}
 
 
-void AliFemtoEvent::SetZDCN1Energy(const float& ZDCN1Energy){fZDCN1Energy=ZDCN1Energy;}
-void AliFemtoEvent::SetZDCP1Energy(const float& ZDCP1Energy){fZDCP1Energy=ZDCP1Energy;}      
-void AliFemtoEvent::SetZDCN2Energy(const float& ZDCN2Energy){fZDCN2Energy=ZDCN2Energy;}      
-void AliFemtoEvent::SetZDCP2Energy(const float& ZDCP2Energy){fZDCP2Energy=ZDCP2Energy;}      
-void AliFemtoEvent::SetZDCEMEnergy(const float& ZDCEMEnergy){fZDCEMEnergy=ZDCEMEnergy;}    
-void AliFemtoEvent::SetZDCParticipants(const unsigned int& ZDCParticipants){fZDCParticipants=ZDCParticipants;}
+void AliFemtoEvent::SetZDCN1Energy(const float& aZDCN1Energy){fZDCN1Energy=aZDCN1Energy;}
+void AliFemtoEvent::SetZDCP1Energy(const float& aZDCP1Energy){fZDCP1Energy=aZDCP1Energy;}      
+void AliFemtoEvent::SetZDCN2Energy(const float& aZDCN2Energy){fZDCN2Energy=aZDCN2Energy;}      
+void AliFemtoEvent::SetZDCP2Energy(const float& aZDCP2Energy){fZDCP2Energy=aZDCP2Energy;}      
+void AliFemtoEvent::SetZDCEMEnergy(const float& aZDCEMEnergy){fZDCEMEnergy=aZDCEMEnergy;}    
+void AliFemtoEvent::SetZDCParticipants(const unsigned int& aZDCParticipants){fZDCParticipants=aZDCParticipants;}
     
 
 void AliFemtoEvent::SetNumberOfTracks(const unsigned short& tracks){fNumberOfTracks = tracks;}
@@ -288,8 +288,8 @@ void AliFemtoEvent::SetNumberOfTracks(const unsigned short& tracks){fNumberOfTra
 void AliFemtoEvent::SetPrimVertPos(const AliFemtoThreeVector& vp){fPrimVertPos = vp;}
 void AliFemtoEvent::SetMagneticField(const double& magF){fMagneticField = magF;}
 
-void AliFemtoEvent::SetTriggerMask(const unsigned long int& TriggerMask) {fTriggerMask=TriggerMask;}
-void AliFemtoEvent::SetTriggerCluster(const unsigned char& TriggerCluster) {fTriggerCluster=TriggerCluster;}
+void AliFemtoEvent::SetTriggerMask(const unsigned long int& aTriggerMask) {fTriggerMask=aTriggerMask;}
+void AliFemtoEvent::SetTriggerCluster(const unsigned char& aTriggerCluster) {fTriggerCluster=aTriggerCluster;}
 
 
 unsigned short AliFemtoEvent::EventNumber() const {return fEventNumber;}
index c3e8ff1c20b2c6591a50bb5b0560ab67bbde263f..a9a890332d75a7a9e386bc0e1bed401e111ce782 100644 (file)
@@ -80,19 +80,19 @@ class AliFemtoSimpleAnalysis : public AliFemtoAnalysis {
                 AliFemtoParticleCollection* ParticlesPassingCut1,
                 AliFemtoParticleCollection* ParticlesPssingCut2=0);
 
-  AliFemtoPicoEventCollectionVectorHideAway* fPicoEventCollectionVectorHideAway;  /* Mixing Buffer used for Analyses which wrap this one */
-
-  AliFemtoPairCut*             fPairCut;             /* cut applied to pairs */
-  AliFemtoCorrFctnCollection*  fCorrFctnCollection;  /* correlation functions of this analysis */
-  AliFemtoEventCut*            fEventCut;            /* cut to select events */
-  AliFemtoParticleCut*         fFirstParticleCut;    /* select particles of type #1 */
-  AliFemtoParticleCut*         fSecondParticleCut;   /* select particles of type #2 */
-  AliFemtoPicoEventCollection* fMixingBuffer;        /* mixing buffer used in this simplest analysis */
-  AliFemtoPicoEvent*           fPicoEvent;           /* The current event, in the small (pico) form */
-  unsigned int fNumEventsToMix;                      /* How many "previous" events get mixed with this one, to make background */
-  unsigned int fNeventsProcessed;                    /* How many events processed so far */
-
-  unsigned int fMinSizePartCollection;               /* Don't use event if it has fewer than this many particles passing ParticleCuts default 0*/
+  AliFemtoPicoEventCollectionVectorHideAway* fPicoEventCollectionVectorHideAway; //! Mixing Buffer used for Analyses which wrap this one 
+
+  AliFemtoPairCut*             fPairCut;             //  cut applied to pairs 
+  AliFemtoCorrFctnCollection*  fCorrFctnCollection;  //  correlation functions of this analysis 
+  AliFemtoEventCut*            fEventCut;            //  cut to select events 
+  AliFemtoParticleCut*         fFirstParticleCut;    //  select particles of type #1 
+  AliFemtoParticleCut*         fSecondParticleCut;   //  select particles of type #2 
+  AliFemtoPicoEventCollection* fMixingBuffer;        //  mixing buffer used in this simplest analysis 
+  AliFemtoPicoEvent*           fPicoEvent;           //! The current event, in the small (pico) form 
+  unsigned int fNumEventsToMix;                      //  How many "previous" events get mixed with this one, to make background 
+  unsigned int fNeventsProcessed;                    //  How many events processed so far 
+
+  unsigned int fMinSizePartCollection;               //  Don't use event if it has fewer than this many particles passing ParticleCuts default 0
 
 #ifdef __ROOT__
   ClassDef(AliFemtoSimpleAnalysis, 0)
index f145cf3539a6345a4279341ca0f1b7e6794c48ef..66250bb537fa2a3f9a81ad2bff0fb417ea7660f8 100644 (file)
@@ -195,19 +195,19 @@ void AliFemtoTrack::SetHelix(const AliFmPhysicalHelixD& h){fHelix = h;}
 void AliFemtoTrack::SetTrackId(const short & id) { fTrackId=id;}
 void AliFemtoTrack::SetFlags(const long int &flags) {fFlags=flags;}
 void AliFemtoTrack::SetLabel(const int &label) {fLabel=label;}
-void AliFemtoTrack::SetImpactD(const float& ImpactD){fImpactD=ImpactD;}
-void AliFemtoTrack::SetImpactZ(const float& ImpactZ){fImpactZ=ImpactZ;}
-void AliFemtoTrack::SetCdd(const float& Cdd){fCdd=Cdd;}
-void AliFemtoTrack::SetCdz(const float& Cdz){fCdz=Cdz;}
-void AliFemtoTrack::SetCzz(const float& Czz){fCzz=Czz;}
-void AliFemtoTrack::SetITSchi2(const float& ITSchi2){fITSchi2=ITSchi2;}    
-void AliFemtoTrack::SetITSncls(const int& ITSncls){fITSncls=ITSncls;}     
-void AliFemtoTrack::SetTPCchi2(const float& TPCchi2){fTPCchi2=TPCchi2;}       
-void AliFemtoTrack::SetTPCncls(const int& TPCncls){fTPCncls=TPCncls;}       
-void AliFemtoTrack::SetTPCnclsF(const short& TPCnclsF){fTPCnclsF=TPCnclsF;}      
-void AliFemtoTrack::SetTPCsignalN(const short& TPCsignalN){fTPCsignalN=TPCsignalN;}    
-void AliFemtoTrack::SetTPCsignalS(const float& TPCsignalS){fTPCsignalS=TPCsignalS;} 
-void AliFemtoTrack::SetSigmaToVertex(const float& Sigma){fSigmaToVertex=Sigma;} 
+void AliFemtoTrack::SetImpactD(const float& aImpactD){fImpactD=aImpactD;}
+void AliFemtoTrack::SetImpactZ(const float& aImpactZ){fImpactZ=aImpactZ;}
+void AliFemtoTrack::SetCdd(const float& aCdd){fCdd=aCdd;}
+void AliFemtoTrack::SetCdz(const float& aCdz){fCdz=aCdz;}
+void AliFemtoTrack::SetCzz(const float& aCzz){fCzz=aCzz;}
+void AliFemtoTrack::SetITSchi2(const float& aITSchi2){fITSchi2=aITSchi2;}    
+void AliFemtoTrack::SetITSncls(const int& aITSncls){fITSncls=aITSncls;}     
+void AliFemtoTrack::SetTPCchi2(const float& aTPCchi2){fTPCchi2=aTPCchi2;}       
+void AliFemtoTrack::SetTPCncls(const int& aTPCncls){fTPCncls=aTPCncls;}       
+void AliFemtoTrack::SetTPCnclsF(const short& aTPCnclsF){fTPCnclsF=aTPCnclsF;}      
+void AliFemtoTrack::SetTPCsignalN(const short& aTPCsignalN){fTPCsignalN=aTPCsignalN;}    
+void AliFemtoTrack::SetTPCsignalS(const float& aTPCsignalS){fTPCsignalS=aTPCsignalS;} 
+void AliFemtoTrack::SetSigmaToVertex(const float& aSigma){fSigmaToVertex=aSigma;} 
 
 
 short AliFemtoTrack::Charge() const {return fCharge;}  
index 048de88ad988d3f9ad8f08f6305302bbd8f2fa68..4bf7c006b21999317249ca9e2f7c1f5265c5e534 100644 (file)
@@ -183,8 +183,8 @@ protected:
 //        Implementation of member functions
 //
 template<class T>
-AliFmLorentzVector<T>::AliFmLorentzVector(T x, T y, T z, T t)
-    : mThreeVector(x, y, z), mX4(t) { /* nop */ }
+AliFmLorentzVector<T>::AliFmLorentzVector(T ax, T ay, T az, T at)
+    : mThreeVector(ax, ay, az), mX4(at) { /* nop */ }
 
 template<class T>
 AliFmLorentzVector<T>::~AliFmLorentzVector() { /* nopt */ }    
@@ -237,28 +237,28 @@ T AliFmLorentzVector<T>::mt() const
 }
 
 template<class T>
-void AliFmLorentzVector<T>::setPx(T x) {mThreeVector.setX(x);}
+void AliFmLorentzVector<T>::setPx(T ax) {mThreeVector.setX(ax);}
 
 template<class T>
-void AliFmLorentzVector<T>::setPy(T y) {mThreeVector.setY(y);}
+void AliFmLorentzVector<T>::setPy(T ay) {mThreeVector.setY(ay);}
 
 template<class T>
-void AliFmLorentzVector<T>::setPz(T z) {mThreeVector.setZ(z);}
+void AliFmLorentzVector<T>::setPz(T az) {mThreeVector.setZ(az);}
 
 template<class T>
-void AliFmLorentzVector<T>::setX(T x) {mThreeVector.setX(x);}
+void AliFmLorentzVector<T>::setX(T ax) {mThreeVector.setX(ax);}
 
 template<class T>
-void AliFmLorentzVector<T>::setY(T y) {mThreeVector.setY(y);}
+void AliFmLorentzVector<T>::setY(T ay) {mThreeVector.setY(ay);}
 
 template<class T>
-void AliFmLorentzVector<T>::setZ(T z) {mThreeVector.setZ(z);}
+void AliFmLorentzVector<T>::setZ(T az) {mThreeVector.setZ(az);}
 
 template<class T>
-void AliFmLorentzVector<T>::setT(T t) {mX4 = t;}
+void AliFmLorentzVector<T>::setT(T at) {mX4 = at;}
 
 template<class T>
-void AliFmLorentzVector<T>::setE(T e) {mX4 = e;}
+void AliFmLorentzVector<T>::setE(T ae) {mX4 = ae;}
 
 template<class T>
 T AliFmLorentzVector<T>::x() const {return mThreeVector.x();}
@@ -409,13 +409,13 @@ AliFmLorentzVector<T>& AliFmLorentzVector<T>::operator/= (double c)
 
 template<class T>
 template<class X>
-AliFmLorentzVector<T>::AliFmLorentzVector(const AliFmThreeVector<X> &vec, T t)
-       : mThreeVector(vec), mX4(t) { /* nop */ }
+AliFmLorentzVector<T>::AliFmLorentzVector(const AliFmThreeVector<X> &vec, T at)
+       : mThreeVector(vec), mX4(at) { /* nop */ }
 
 template<class T>
 template<class X>
-AliFmLorentzVector<T>::AliFmLorentzVector(T t, const AliFmThreeVector<X> &vec)
-       : mThreeVector(vec), mX4(t) { /* nop */ }
+AliFmLorentzVector<T>::AliFmLorentzVector(T at, const AliFmThreeVector<X> &vec)
+       : mThreeVector(vec), mX4(at) { /* nop */ }
 
 template<class T>
 template<class X>
index 5d908995a0cd9a308f23ae722cc599b8e9681911..0e6a6543fd382bc055431a25d544e2afafc48981 100644 (file)
@@ -217,39 +217,39 @@ protected:
 //        Implementation of member functions
 //
 template<class T>
-inline AliFmThreeVector<T>::AliFmThreeVector(T x, T y, T z)
-    : mX1(x), mX2(y), mX3(z) {/* nop */}
+inline AliFmThreeVector<T>::AliFmThreeVector(T ax, T ay, T az)
+    : mX1(ax), mX2(ay), mX3(az) {/* nop */}
 template<class T>
 inline AliFmThreeVector<T>::~AliFmThreeVector() {/* nop */}
 
 template<class T>
-inline void AliFmThreeVector<T>::setX(T x) {mX1 = x;}
+inline void AliFmThreeVector<T>::setX(T ax) {mX1 = ax;}
 
 template<class T>
-inline void AliFmThreeVector<T>::setY(T y) {mX2 = y;}
+inline void AliFmThreeVector<T>::setY(T ay) {mX2 = ay;}
 
 template<class T>
-inline void AliFmThreeVector<T>::setZ(T z) {mX3 = z;}
+inline void AliFmThreeVector<T>::setZ(T az) {mX3 = az;}
 
 template<class T>
-void AliFmThreeVector<T>::setPhi(T angle)
+void AliFmThreeVector<T>::setPhi(T aangle)
 {
     double  r = magnitude();
     double th = theta();
     
-    mX1 = r*sin(th)*cos(angle);
-    mX2 = r*sin(th)*sin(angle);
+    mX1 = r*sin(th)*cos(aangle);
+    mX2 = r*sin(th)*sin(aangle);
 }
 
 template <class T>
-void AliFmThreeVector<T>::setTheta(T angle)
+void AliFmThreeVector<T>::setTheta(T aangle)
 {
     double r  = magnitude();
     double ph = phi();
 
-    mX1 = r*sin(angle)*cos(ph);
-    mX2 = r*sin(angle)*sin(ph);
-    mX3 = r*cos(angle);
+    mX1 = r*sin(aangle)*cos(ph);
+    mX2 = r*sin(aangle)*sin(ph);
+    mX3 = r*cos(aangle);
 }
 
 template <class T>
@@ -264,9 +264,9 @@ void AliFmThreeVector<T>::setMagnitude(T r)
 }
 
 template <class T>
-void AliFmThreeVector<T>::setMag(T mag)
+void AliFmThreeVector<T>::setMag(T amag)
 {
-    setMagnitude(mag);
+    setMagnitude(amag);
 }
 
 template<class T>
@@ -325,44 +325,44 @@ AliFmThreeVector<T> AliFmThreeVector<T>::orthogonal() const
 {
     // Direct copy from CLHEP--it is probably better to
     // use your own dot/cross product code...
-    double x = (mX1 < 0.0) ? -mX1 : mX1;
-    double y = (mX2 < 0.0) ? -mX2 : mX2;
-    double z = (mX3 < 0.0) ? -mX3 : mX3;
+    double ax = (mX1 < 0.0) ? -mX1 : mX1;
+    double ay = (mX2 < 0.0) ? -mX2 : mX2;
+    double az = (mX3 < 0.0) ? -mX3 : mX3;
     
-    if(x<y)
-       return x < z ? AliFmThreeVector<T>(0,mX3,-mX2) :  AliFmThreeVector<T>(mX2,-mX1,0);
+    if(ax<ay)
+       return ax < az ? AliFmThreeVector<T>(0,mX3,-mX2) :  AliFmThreeVector<T>(mX2,-mX1,0);
     else
        return  mX2 < mX3 ? AliFmThreeVector<T>(-mX3,0,mX1) :  AliFmThreeVector<T>(mX2,-mX1,0);
 }
 
 template <class T>
-void AliFmThreeVector<T>::rotateX(T angle)
+void AliFmThreeVector<T>::rotateX(T aangle)
 {
     // may in the future make use of the AliFmRotation class!
-    double yPrime = cos(angle)*mX2 - sin(angle)*mX3;
-    double zPrime = sin(angle)*mX2 + cos(angle)*mX3;
+    double yPrime = cos(aangle)*mX2 - sin(aangle)*mX3;
+    double zPrime = sin(aangle)*mX2 + cos(aangle)*mX3;
 
     mX2 = yPrime;
     mX3 = zPrime;
 }
 
 template <class T>
-void AliFmThreeVector<T>::rotateY(T angle)
+void AliFmThreeVector<T>::rotateY(T aangle)
 {
     // may in the future make use of the AliFmRotation class!
-    double zPrime = cos(angle)*mX3 - sin(angle)*mX1;
-    double xPrime = sin(angle)*mX3 + cos(angle)*mX1;
+    double zPrime = cos(aangle)*mX3 - sin(aangle)*mX1;
+    double xPrime = sin(aangle)*mX3 + cos(aangle)*mX1;
 
     mX1 = xPrime;
     mX3 = zPrime;
 }
 
 template <class T>
-void AliFmThreeVector<T>::rotateZ(T angle)
+void AliFmThreeVector<T>::rotateZ(T aangle)
 {
     // may in the future make use of the AliFmRotation class!
-    double xPrime = cos(angle)*mX1 - sin(angle)*mX2;
-    double yPrime = sin(angle)*mX1 + cos(angle)*mX2;
+    double xPrime = cos(aangle)*mX1 - sin(aangle)*mX2;
+    double yPrime = sin(aangle)*mX1 + cos(aangle)*mX2;
 
     mX1 = xPrime;
     mX2 = yPrime;
@@ -462,9 +462,9 @@ inline AliFmThreeVector<T>& AliFmThreeVector<T>::operator/= (double c)
 
 template<class T>
 inline AliFmThreeVector<T>
-AliFmThreeVector<T>::pseudoProduct(double x,double y,double z) const
+AliFmThreeVector<T>::pseudoProduct(double ax,double ay,double az) const
 {
-    return AliFmThreeVector<T>(mX1*x,mX2*y,mX3*z);
+    return AliFmThreeVector<T>(mX1*ax,mX2*ay,mX3*az);
 }
 
 template<class T>