]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONMathieson.cxx
Adding the cascade performance task (Antonin Maire)
[u/mrichter/AliRoot.git] / MUON / AliMUONMathieson.cxx
index 862b1f9894aa6bf972ffd80bf1edb53eee87349f..679ece9211fd6ca3a84b66e7e9b1f7919d2b06fd 100644 (file)
 
 /* $Id$ */
 
+//-----------------------------------------------------------------------------
+// Class AliMUONMathieson
+// -----------------------
+// Implementation of Mathieson response
+// Separated from other classes by CH. Finck with removing circular
+// dependencies 
+//-----------------------------------------------------------------------------
+
 #include "AliMUONMathieson.h"
 
 #include "AliLog.h"
-#include "AliMUONGeometrySegmentation.h"
 
 #include <TClass.h>
 #include <TMath.h>
 #include <TRandom.h>
 
+/// \cond CLASSIMP
 ClassImp(AliMUONMathieson)
+/// \endcond
        
 //__________________________________________________________________________
-  AliMUONMathieson::AliMUONMathieson() :
+AliMUONMathieson::AliMUONMathieson() :
     fSqrtKx3(0.),
     fKx2(0.),
     fKx4(0.),
@@ -37,17 +46,23 @@ ClassImp(AliMUONMathieson)
     fPitch(0.),
     fInversePitch(0.)
 {
-// Default constructor
+/// Default constructor
 
+}
+
+//__________________________________________________________________________
+AliMUONMathieson::~AliMUONMathieson()
+{
+/// Destructor
 }
 
   //__________________________________________________________________________
 void AliMUONMathieson::SetSqrtKx3AndDeriveKx2Kx4(Float_t SqrtKx3)
 {
-  // Set to "SqrtKx3" the Mathieson parameter K3 ("fSqrtKx3")
-  // in the X direction, perpendicular to the wires,
-  // and derive the Mathieson parameters K2 ("fKx2") and K4 ("fKx4")
-  // in the same direction
+/// Set to "SqrtKx3" the Mathieson parameter K3 ("fSqrtKx3")
+/// in the X direction, perpendicular to the wires,
+/// and derive the Mathieson parameters K2 ("fKx2") and K4 ("fKx4")
+/// in the same direction
   fSqrtKx3 = SqrtKx3;
   fKx2 = TMath::Pi() / 2. * (1. - 0.5 * fSqrtKx3);
   Float_t cx1 = fKx2 * fSqrtKx3 / 4. / TMath::ATan(Double_t(fSqrtKx3));
@@ -57,10 +72,10 @@ void AliMUONMathieson::SetSqrtKx3AndDeriveKx2Kx4(Float_t SqrtKx3)
   //__________________________________________________________________________
 void AliMUONMathieson::SetSqrtKy3AndDeriveKy2Ky4(Float_t SqrtKy3)
 {
-  // Set to "SqrtKy3" the Mathieson parameter K3 ("fSqrtKy3")
-  // in the Y direction, along the wires,
-  // and derive the Mathieson parameters K2 ("fKy2") and K4 ("fKy4")
-  // in the same direction
+/// Set to "SqrtKy3" the Mathieson parameter K3 ("fSqrtKy3")
+/// in the Y direction, along the wires,
+/// and derive the Mathieson parameters K2 ("fKy2") and K4 ("fKy4")
+/// in the same direction
   fSqrtKy3 = SqrtKy3;
   fKy2 = TMath::Pi() / 2. * (1. - 0.5 * fSqrtKy3);
   Float_t cy1 = fKy2 * fSqrtKy3 / 4. / TMath::ATan(Double_t(fSqrtKy3));
@@ -71,9 +86,8 @@ void AliMUONMathieson::SetSqrtKy3AndDeriveKy2Ky4(Float_t SqrtKy3)
 Float_t
 AliMUONMathieson::IntXY(Float_t xi1, Float_t yi1, Float_t xi2, Float_t yi2) const
 {
-  //
-  // Integrate the Mathieson over x and y
-  //
+/// Integrate the Mathieson over x and y
+
   xi1 *= fInversePitch;
   xi2 *= fInversePitch;
   yi1 *= fInversePitch;
@@ -91,26 +105,12 @@ AliMUONMathieson::IntXY(Float_t xi1, Float_t yi1, Float_t xi2, Float_t yi2) cons
                  fKy4*(TMath::ATan(uy2)-TMath::ATan(uy1)));
 }
 
-// -------------------------------------------
-Float_t AliMUONMathieson::IntXY(Int_t idDE, AliMUONGeometrySegmentation* segmentation)
-{
-// Calculate charge on current pad according to Mathieson distribution
-// using Detection elt
-//
-//  Integration limits defined by segmentation model
-//  
-    Float_t xi1, xi2, yi1, yi2;
-    segmentation->IntegrationLimits(idDE, xi1,xi2,yi1,yi2);
-    return IntXY(xi1,yi1,xi2,yi2);
-}
-
 //______________________________________________________________________________
 void 
 AliMUONMathieson::SetPitch(Float_t p1)
 {
-  //
-  // Defines the pitch, and store its inverse, which is what is used in fact.
-  //
+/// Defines the pitch, and store its inverse, which is what is used in fact.
+
   fPitch = p1;
   if ( fPitch )
   {