// ------------------------------
// Segmentation for MUON station 1 using the external
// mapping package
+// Included in AliRoot 2003/01/28
-#include <Riostream.h>
#include <TError.h>
+#include <TF1.h>
#include <TObjArray.h>
#include <TVector2.h>
-#include <TF1.h>
-#include <AliMpPlane.h>
-#include <AliMpPlaneType.h>
-#include <AliMpPlaneSegmentation.h>
-#include <AliMpPlaneAreaPadIterator.h>
+#include "AliMpPad.h"
+#include "AliMpPlane.h"
+#include "AliMpPlaneAreaPadIterator.h"
+#include "AliMpPlaneSegmentation.h"
#include "AliMUONSt1Segmentation.h"
#include "AliRun.h"
#include "AliMUON.h"
#include "AliMUONChamber.h"
+#include "AliLog.h"
ClassImp(AliMUONSt1Segmentation)
fCorrA(0)
{
// Normal constructor
- fPlane = AliMpPlane::Create(planeType);
+ fPlane = AliMpPlane::Create(kStation1, planeType);
fPlaneSegmentation = new AliMpPlaneSegmentation(fPlane);
fCorrA = new TObjArray(3);
}
//______________________________________________________________________________
-AliMUONSt1Segmentation::AliMUONSt1Segmentation(const AliMUONSt1Segmentation& rhs) :AliSegmentation(rhs)
+AliMUONSt1Segmentation::AliMUONSt1Segmentation(const AliMUONSt1Segmentation& rhs)
+ : AliSegmentation(rhs)
{
// Copy constructor
- Fatal("Copy constructor",
- "Copy constructor is not implemented.");
+ AliFatal("Copy constructor is not implemented.");
}
//______________________________________________________________________________
// check assignement to self
if (this == &rhs) return *this;
- Fatal("operator=",
- "Assignment operator is not implemented.");
+ AliFatal("Assignment operator is not implemented.");
return *this;
}
// Set pad size Dx*Dy
// ---
- Fatal("SetPadSize", "Not uniform pad size.");
+ AliFatal("Not uniform pad size.");
}
//______________________________________________________________________________
// Get pad size in x
// ---
- Fatal("Dpx", "Not uniform pad size.");
+ AliFatal( "Not uniform pad size.");
return 0.;
}
// Get pad size in y
// ---
- Fatal("Dpy", "Not uniform pad size.");
+ AliFatal("Not uniform pad size.");
return 0.;
}
AliMpPad pad = fPlaneSegmentation->PadByIndices(AliMpIntPair(iX, iY));
if (!pad.IsValid())
- Fatal("Distance2AndOffset", "Cannot locate pad.");
+ AliFatal("Cannot locate pad.");
return (pad.Position()*fgkLengthUnit - TVector2(x, y)).Mod2();
}
// (specific to LYON, but mandatory for display)
// ---
- Fatal("GetNParallelAndOffset", "Not yet implemented.");
+ AliFatal( "Not yet implemented.");
}
// (Called from AliMUON::BuildGeometry)
// ---
- Warning("Draw", "Not yet implemented.");
+ AliWarning("Not yet implemented.");
}
//______________________________________________________________________________