]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - LHC/AliLhcProcessIBS.cxx
Link all the libs. Shall be revised as soon as we get a way to steer the online reco...
[u/mrichter/AliRoot.git] / LHC / AliLhcProcessIBS.cxx
index 06d35810bd4069019929e688c5d4ccd4bc7fee60..4ad295aaa17f0f5bfb1765e60e77a6f94caac9f2 100644 (file)
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-/*
-$Log$
-*/
+/* $Id$ */
 
-#include "AliLhcProcessIBS.h"
-#include "AliLHC.h"
-#include "AliLhcIRegion.h"
-#include "AliLhcBeam.h"
+//
+// Realisation of AliLhcProcess for the fast simulation of the
+// Intra Beam Scattering process
+// in transverse and longitudinal direction.
+// Author: Andreas Morsch
+// andreas.morsch@cern.ch
+//
 
-#include <TF1.h>
-#include <TMath.h>
 #include <TCanvas.h>
+#include <TF1.h>
 #include <TGraph.h>
+#include <TH1F.h>
+#include <TMath.h>
 #include <TMultiGraph.h>
 
+#include "AliLhcProcessIBS.h"
+#include "AliLHC.h"
+#include "AliLhcIRegion.h"
+#include "AliLhcBeam.h"
+
 ClassImp(AliLhcProcessIBS)
 
   Double_t func(Double_t *x, Double_t *par);
 
 AliLhcProcessIBS::AliLhcProcessIBS(AliLHC* lhc, const char* name, const char* title)
-    :AliLhcProcess(lhc,name,title)
+    :AliLhcProcess(lhc,name,title),
+     fCrossSection(0.),
+     fIRegions(0),
+     fTaux(0.),
+     fTaue(0.),
+     fTauxArray(0),
+     fTaueArray(0)
 {
 // Constructor
 }
 
+AliLhcProcessIBS::AliLhcProcessIBS(const AliLhcProcessIBS& ibs):
+    AliLhcProcess(ibs),
+    fCrossSection(0.),
+    fIRegions(0),
+    fTaux(0.),
+    fTaue(0.),
+    fTauxArray(0),
+    fTaueArray(0)
+{
+// Copy Constructor
+}
+
 
 AliLhcProcessIBS::~AliLhcProcessIBS()
 {
@@ -64,6 +89,8 @@ void AliLhcProcessIBS::Init()
 
 void AliLhcProcessIBS::Evolve(Float_t dt)
 {
+//
+// Evolve by one time step dt
   printf("\n Here process %s %f:", GetName(), dt);
    for (Int_t i=0; i<2; i++) {
      // Density
@@ -169,7 +196,7 @@ void AliLhcProcessIBS::DrawPlots()
 
 
 
-AliLhcProcessIBS& AliLhcProcessIBS::operator=(const  AliLhcProcessIBS & rhs)
+AliLhcProcessIBS& AliLhcProcessIBS::operator=(const  AliLhcProcessIBS & /*rhs*/)
 {
 // Assignment operator
     return *this;
@@ -181,12 +208,12 @@ Double_t func(Double_t *x, Double_t *par)
   Double_t b  = par[1];
   Double_t cc = par[2];
 
-  const Double_t bc = 0.5772;
+  const Double_t kbc = 0.5772;
   Double_t xx = x[0];
   Double_t x2=xx*xx;
   Double_t x1=1.0-x2;
   Double_t p=1.0/TMath::Sqrt(x2+a*a*x1);
   Double_t q=1.0/TMath::Sqrt(x2+b*b*x1);
-  return (1.0-3.0*x2)*p*q*(2.0*TMath::Log(0.5*cc*(p+q))-bc);
+  return (1.0-3.0*x2)*p*q*(2.0*TMath::Log(0.5*cc*(p+q))-kbc);
 }