]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Coding Violations Corrected.
authorskowron <skowron@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 22 Jan 2004 16:41:00 +0000 (16:41 +0000)
committerskowron <skowron@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 22 Jan 2004 16:41:00 +0000 (16:41 +0000)
HBTAN/AliHBTLLWeights.cxx
HBTAN/AliHBTLLWeights.h
HBTAN/AliHBTParticle.cxx
HBTAN/AliHBTParticle.h

index 32c19c7f266b1c2acb80de2dc71e1fbfe2f257cc..92e514364fb195ef43a894637a4c1456867caeb0 100644 (file)
@@ -166,7 +166,6 @@ extern "C" void type_of_call setpdist(Double_t& r);
 #include "AliHBTPair.h"
 #include "AliHBTParticle.h"
 #include "WLedCOMMONS.h"
-#include <TList.h>
 #include <TRandom.h>   
 #include <TMath.h>     
 #include <TPDGCode.h>
@@ -259,8 +258,8 @@ void AliHBTLLWeights::Set()
 Double_t AliHBTLLWeights::GetWeight(const AliHBTPair* partpair)
 {
 // calculates weight for a pair
-  static const Double_t cmtofm = 1.e13;
-  static const Double_t cmtoOneOverGeV = cmtofm*fgkWcons;  
+  static const Double_t kcmtofm = 1.e13;
+  static const Double_t kcmtoOneOverGeV = kcmtofm*fgkWcons;  
   
   AliHBTParticle *part1 = partpair->Particle1();
   AliHBTParticle *part2 = partpair->Particle2();
@@ -301,14 +300,14 @@ Double_t AliHBTLLWeights::GetWeight(const AliHBTPair* partpair)
   FSI_MOM.P2Y = part2->Py();
   FSI_MOM.P2Z = part2->Pz();
 
-  FSI_COOR.X1 = part1->Vx()*cmtoOneOverGeV;
-  FSI_COOR.Y1 = part1->Vy()*cmtoOneOverGeV;
-  FSI_COOR.Z1 = part1->Vz()*cmtoOneOverGeV;
+  FSI_COOR.X1 = part1->Vx()*kcmtoOneOverGeV;
+  FSI_COOR.Y1 = part1->Vy()*kcmtoOneOverGeV;
+  FSI_COOR.Z1 = part1->Vz()*kcmtoOneOverGeV;
   FSI_COOR.T1 = part1->T();
 
-  FSI_COOR.X2 = part2->Vx()*cmtoOneOverGeV;
-  FSI_COOR.Y2 = part2->Vy()*cmtoOneOverGeV;
-  FSI_COOR.Z2 = part2->Vz()*cmtoOneOverGeV;
+  FSI_COOR.X2 = part2->Vx()*kcmtoOneOverGeV;
+  FSI_COOR.Y2 = part2->Vy()*kcmtoOneOverGeV;
+  FSI_COOR.Z2 = part2->Vz()*kcmtoOneOverGeV;
   FSI_COOR.T2 = part2->T();
   
   ltran12();
index b625d54178a6cac99c7a0d5fc98501b2b83fb1e3..0508539f5dfef5b96f44dac9bbfdeb235c8d0135 100644 (file)
@@ -40,8 +40,8 @@ class AliHBTLLWeights: public AliHBTWeights
      
      Bool_t fTest;           //flag indicating if parameters listed below are to be calculated automatically (0)
                              //or 
-     Bool_t fColoumbSwitch; 
-     Bool_t fQuantStatSwitch; 
+     Bool_t fColoumbSwitch;   //switches on/off Coulumb effect
+     Bool_t fQuantStatSwitch; //switches on/off Quantum Statistics effect
      Bool_t fStrongInterSwitch;//Switches strong interactions TRUE=ON
      Bool_t fColWithResidNuclSwitch;//Switches couloumb interaction 
                                     //with residual nucleus TRUE=ON          
@@ -55,8 +55,8 @@ class AliHBTLLWeights: public AliHBTWeights
      
      Int_t fApproximationModel; //approximation used to calculate Bethe-Salpeter amplitude see SetApproxModel for more comments
 
-     Int_t fPID1;
-     Int_t fPID2;
+     Int_t fPID1;  //Pdg Code of the first particle in the pair
+     Int_t fPID2;  //Pdg Code of the second particle in the pair
      Double_t fSigma; //constants for spherical source model in cm
      static const Double_t fgkWcons; //constant for fm->GeV conversion 1/0.1973
 
index 23e8a2108e8930cdfdbcb1c3012eee7173756c54..eeced89f53dd225c010f3aa1baea97a7dbd254b7 100644 (file)
@@ -8,10 +8,13 @@
 // Simplified in order to minimize the size of object
 //  - we want to keep a lot of such a objects in memory
 // Additionaly adjusted for HBT Analysies purposes
+// + pointer to Track Points
+// + pointer to Cluster Map(s)
+//
+// Piotr.Skowronski@cern.ch
 //
 /////////////////////////////////////////////////////////////
 #include <TParticle.h>
-#include <TClass.h>
 #include "AliHBTTrackPoints.h"
 #include "AliHBTClusterMap.h"
 
@@ -232,8 +235,9 @@ void AliHBTParticle::SetPIDprobability(Int_t pdg, Float_t prob)
 }
 //______________________________________________________________________________
 
-Float_t AliHBTParticle::GetPIDprobability(Int_t pdg)
+Float_t AliHBTParticle::GetPIDprobability(Int_t pdg) const
 {
+//Returns probability that this particle is the type of pdg
   Int_t idx = GetPidSlot(pdg);
   if (idx < 0) return 0.0;//such pid was not specified for this particle
   return fPidProb[idx];
@@ -242,14 +246,14 @@ Float_t AliHBTParticle::GetPIDprobability(Int_t pdg)
 
 const Char_t* AliHBTParticle::GetName() const 
 {
+  //returns name of this particle 
    static char def[4] = "XXX";
    const TParticlePDG *ap = TDatabasePDG::Instance()->GetParticle(GetPdgCode());
    if (ap) return ap->GetName();
    else    return def;
 }
-
-
 //______________________________________________________________________________
+
 Int_t AliHBTParticle::GetPidSlot(Int_t pdg) const
 {
  //returns position of the given PID in fPids (and fPidProb) array.
index 9a4d6cee57871942009e6009654159a26b663c82..cd126ea3bd78b05d6dd24624a769b42c66fa7d79 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ALIHBTPARTICLE
-#define ALIHBTPARTICLE
+#ifndef ALIHBTPARTICLE_H
+#define ALIHBTPARTICLE_H
 //___________________________________________________________
 /////////////////////////////////////////////////////////////
 //
@@ -9,6 +9,10 @@
 // Simplified in order to minimize the size of object
 //  - we want to keep a lot of such a objects in memory
 // Additionaly adjusted for HBT Analysies purposes
+// + pointer to Track Points
+// + pointer to Cluster Map(s)
+//
+// Piotr.Skowronski@cern.ch
 //
 /////////////////////////////////////////////////////////////
 
@@ -17,7 +21,6 @@
 #include <TMath.h>
 #include <TDatabasePDG.h>
 
-#include "AliConst.h"
 
 class TParticle;
 class AliHBTTrackPoints;
@@ -25,7 +28,6 @@ class AliHBTClusterMap;
 
 class AliHBTParticle : public TObject
 {
-
 public:
                                 // ****** constructors and destructor
   AliHBTParticle();
@@ -44,7 +46,7 @@ public:
   AliHBTParticle& operator=(const AliHBTParticle& in); 
   
   void           SetPIDprobability(Int_t pdg, Float_t prob = 1.0);
-  Float_t        GetPIDprobability(Int_t pdg);
+  Float_t        GetPIDprobability(Int_t pdg) const;
   
   Int_t          GetPdgCode      () const { return (fPids)?fPids[fPdgIdx]:0;}
   Int_t          GetPid          () const { return GetPdgCode();}
@@ -64,7 +66,7 @@ public:
   Int_t          Beauty          ()  { return GetPDG()->Beauty(); }
   Int_t          Charm           ()  { return GetPDG()->Charm(); }
   Int_t          Strangeness     ()  { return GetPDG()->Strangeness();}
-  void ProductionVertex(TLorentzVector &v) { v.SetXYZT(fVx,fVy,fVz,fVt);}
+  void ProductionVertex(TLorentzVector &v) const { v.SetXYZT(fVx,fVy,fVz,fVt);}
 
 
   Double_t         Vx    () const { return fVx;}
@@ -78,7 +80,7 @@ public:
   Double_t         P     () const                 //momentum
     { return TMath::Sqrt(fPx*fPx+fPy*fPy+fPz*fPz); }
   
-  void Momentum(TLorentzVector &v) { v.SetPxPyPzE(fPx,fPy,fPz,fE);}
+  void Momentum(TLorentzVector &v) const { v.SetPxPyPzE(fPx,fPy,fPz,fE);}
     
   Double_t         Pt    () const  //transverse momentum
     { return TMath::Sqrt(fPx*fPx+fPy*fPy); }
@@ -121,7 +123,6 @@ public:
   
   static void    SetDebug(Int_t dbg=1){fgDebug=dbg;}
   static Int_t   GetDebug(){return fgDebug;}
-  static Int_t   fgDebug; //debug printout level
   
 protected:
   Int_t          GetPidSlot(Int_t pdg) const;//returns position of the given PID in fPids (and fPidProb) array.
@@ -148,6 +149,7 @@ private:
   AliHBTTrackPoints* fTrackPoints;      // track positions along trajectory - used by anti-merging cut
   AliHBTClusterMap*  fClusterMap;       // bit map of cluters occupation; 1 if has cluter on given layer/padrow/...
     
+  static Int_t   fgDebug; //debug printout level
   ClassDef(AliHBTParticle,3)  // TParticle vertex particle information
 };