Bug correction (units fm/GeV). Removing compiler warnings
authorskowron <skowron@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 6 Aug 2003 16:40:19 +0000 (16:40 +0000)
committerskowron <skowron@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 6 Aug 2003 16:40:19 +0000 (16:40 +0000)
HBTAN/AliHBTLLWeights.cxx
HBTAN/AliHBTLLWeights.h

index e53acfd388fe063cb864252153e6a21bf54ccdf7..4b5a1aef411d6690c3ffdfbfd543ceb972adaaf3 100644 (file)
@@ -182,7 +182,7 @@ AliHBTLLWeights::AliHBTLLWeights():
  fColoumbSwitch(kTRUE),
  fQuantStatSwitch(kTRUE),
  fStrongInterSwitch(kTRUE),
  fColoumbSwitch(kTRUE),
  fQuantStatSwitch(kTRUE),
  fStrongInterSwitch(kTRUE),
- fColWithResidNuclSwitch(kTRUE),
+ fColWithResidNuclSwitch(kFALSE),
  fNuclMass(0.0),
  fNuclCharge(0.0),
  fRandomPosition(kFALSE),
  fNuclMass(0.0),
  fNuclCharge(0.0),
  fRandomPosition(kFALSE),
@@ -195,6 +195,34 @@ AliHBTLLWeights::AliHBTLLWeights():
 }
 /**************************************************************/
 
 }
 /**************************************************************/
 
+AliHBTLLWeights::AliHBTLLWeights(const AliHBTLLWeights &/*source*/):
+ TObject(),
+ fTest(kTRUE),
+ fColoumbSwitch(kTRUE),
+ fQuantStatSwitch(kTRUE),
+ fStrongInterSwitch(kTRUE),
+ fColWithResidNuclSwitch(kFALSE),
+ fNuclMass(0.0),
+ fNuclCharge(0.0),
+ fRandomPosition(kFALSE),
+ fRadius(0.0),
+ fPID1(0),
+ fPID2(0),
+ fSigma(0.0)
+{
+  //Copy ctor needed by the coding conventions but not used
+  Fatal("AliHBTLLWeights","copy ctor not implemented");
+}
+/************************************************************/
+
+AliHBTLLWeights& AliHBTLLWeights::operator=(const AliHBTLLWeights& /*source*/)
+{
+  //Assignment operator needed by the coding conventions but not used
+  Fatal("AliHBTLLWeights","assignment operator not implemented");
+  return * this;
+}
+/************************************************************/
+
 AliHBTLLWeights* AliHBTLLWeights::Instance()
 {     
 // returns instance of class 
 AliHBTLLWeights* AliHBTLLWeights::Instance()
 {     
 // returns instance of class 
@@ -214,6 +242,7 @@ Double_t AliHBTLLWeights::GetWeight(const AliHBTPair* partpair)
 {
 // calculates weight for a pair
   static const Double_t cmtofm = 1.e13;
 {
 // calculates weight for a pair
   static const Double_t cmtofm = 1.e13;
+  static const Double_t cmtoOneOverGeV = cmtofm*fgkWcons;  
   
   AliHBTParticle *part1 = partpair->Particle1();
   AliHBTParticle *part2 = partpair->Particle2();
   
   AliHBTParticle *part1 = partpair->Particle1();
   AliHBTParticle *part2 = partpair->Particle2();
@@ -249,14 +278,14 @@ Double_t AliHBTLLWeights::GetWeight(const AliHBTPair* partpair)
   FSI_MOM.P2Y = part2->Py();
   FSI_MOM.P2Z = part2->Pz();
 
   FSI_MOM.P2Y = part2->Py();
   FSI_MOM.P2Z = part2->Pz();
 
-  FSI_COOR.X1 = part1->Vx()*cmtofm;
-  FSI_COOR.Y1 = part1->Vy()*cmtofm;
-  FSI_COOR.Z1 = part1->Vz()*cmtofm;
+  FSI_COOR.X1 = part1->Vx()*cmtoOneOverGeV;
+  FSI_COOR.Y1 = part1->Vy()*cmtoOneOverGeV;
+  FSI_COOR.Z1 = part1->Vz()*cmtoOneOverGeV;
   FSI_COOR.T1 = part1->T();
 
   FSI_COOR.T1 = part1->T();
 
-  FSI_COOR.X2 = part2->Vx()*cmtofm;
-  FSI_COOR.Y2 = part2->Vy()*cmtofm;
-  FSI_COOR.Z2 = part2->Vz()*cmtofm;
+  FSI_COOR.X2 = part2->Vx()*cmtoOneOverGeV;
+  FSI_COOR.Y2 = part2->Vy()*cmtoOneOverGeV;
+  FSI_COOR.Z2 = part2->Vz()*cmtoOneOverGeV;
   FSI_COOR.T2 = part2->T();
   
   ltran12();
   FSI_COOR.T2 = part2->T();
   
   ltran12();
index 93cd15931c5cfb382eaf2c07e1e868137aec89fb..ee89e34349f398619078b87c4efd716b826f42e1 100644 (file)
@@ -64,6 +64,9 @@ class AliHBTLLWeights: public TObject
 
    private:
      AliHBTLLWeights();
 
    private:
      AliHBTLLWeights();
+     AliHBTLLWeights(const AliHBTLLWeights &/*source*/);
+     AliHBTLLWeights & operator=(const AliHBTLLWeights& /*source*/);
+     
      ClassDef(AliHBTLLWeights,1)
  };
 
      ClassDef(AliHBTLLWeights,1)
  };