]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliESDv0.cxx
Fixing the coding conventions (B. Hippolyte).
[u/mrichter/AliRoot.git] / STEER / AliESDv0.cxx
index eca54821b32f0e7583c99c800bc08fb03a274d61..f038831d2569969bc59c272cfcc1426f4131c932 100644 (file)
 //            and  Boris Hippolyte,IPHC, hippolyt@in2p3.fr 
 //-------------------------------------------------------------------------
 
-#include <Riostream.h>
 #include <TMath.h>
 #include <TDatabasePDG.h>
-#include <TPDGCode.h>
 #include <TParticlePDG.h>
 #include <TVector3.h>
 
 #include "AliLog.h"
 #include "AliESDv0.h"
-#include "AliExternalTrackParam.h"
+#include "AliESDV0Params.h"
 
 ClassImp(AliESDv0)
 
@@ -319,10 +317,10 @@ Double_t AliESDv0::AlphaV0() const {
   TVector3 momPos(fPmom[0],fPmom[1],fPmom[2]);
   TVector3 momTot(Px(),Py(),Pz());
 
-  Double_t QlNeg = momNeg.Dot(momTot)/momTot.Mag();
-  Double_t QlPos = momNeg.Dot(momTot)/momTot.Mag();
+  Double_t lQlNeg = momNeg.Dot(momTot)/momTot.Mag();
+  Double_t lQlPos = momNeg.Dot(momTot)/momTot.Mag();
 
-  return 1.-2./(1.+QlNeg/QlPos);
+  return 1.-2./(1.+lQlNeg/lQlPos);
 }
 
 Double_t AliESDv0::PtArmV0() const {
@@ -425,8 +423,7 @@ Float_t AliESDv0::GetD(Double_t x0, Double_t y0, Double_t z0) const {
   return d;
 }
 
-
-Float_t AliESDv0::GetV0CosineOfPointingAngle(Double_t& refPointX, Double_t& refPointY, Double_t& refPointZ) const {
+Float_t AliESDv0::GetV0CosineOfPointingAngle(Double_t refPointX, Double_t refPointY, Double_t refPointZ) const {
   // calculates the pointing angle of the V0 wrt a reference point
 
   Double_t momV0[3]; //momentum of the V0
@@ -641,7 +638,7 @@ Double_t AliESDv0::GetLikelihoodD(Int_t mode0, Int_t mode1){
 
 }
 
-Double_t AliESDv0::GetLikelihoodC(Int_t mode0, Int_t /*mode1*/){
+Double_t AliESDv0::GetLikelihoodC(Int_t mode0, Int_t /*mode1*/) const {
   //
   // get likelihood for Causality
   // !!!  Causality variables defined in AliITStrackerMI !!! 
@@ -676,7 +673,7 @@ void AliESDv0::SetCausality(Float_t pb0, Float_t pb1, Float_t pa0, Float_t pa1)
   fCausality[2] = pa0;     // probability - track 0 exist close after vertex
   fCausality[3] = pa1;     // probability - track 1 exist close after vertex
 }
-void  AliESDv0::SetClusters(Int_t *clp, Int_t *clm)
+void  AliESDv0::SetClusters(const Int_t *clp, const Int_t *clm)
 {
   //
   // Set its clusters indexes
@@ -685,7 +682,7 @@ void  AliESDv0::SetClusters(Int_t *clp, Int_t *clm)
   for (Int_t i=0;i<6;i++) fClusters[1][i] = clm[i]; 
 }
 
-Float_t AliESDv0::GetEffMass(UInt_t p1, UInt_t p2){
+Double_t AliESDv0::GetEffMass(UInt_t p1, UInt_t p2) const{
   //
   // calculate effective mass
   //
@@ -695,8 +692,8 @@ Float_t AliESDv0::GetEffMass(UInt_t p1, UInt_t p2){
   if (p2>4) return -1;
   Float_t mass1 = kpmass[p1]; 
   Float_t mass2 = kpmass[p2];   
-  Double_t *m1 = fPmom;
-  Double_t *m2 = fNmom;
+  const Double_t *m1 = fPmom;
+  const Double_t *m2 = fNmom;
   //
   //if (fRP[p1]+fRM[p2]<fRP[p2]+fRM[p1]){
   //  m1 = fPM;