**************************************************************************/
// $Id$
-// $MpId: AliMpMotifSpecial.cxx,v 1.9 2005/09/26 16:11:20 ivana Exp $
+// $MpId: AliMpMotifSpecial.cxx,v 1.12 2006/05/24 13:58:41 ivana Exp $
// Category: motif
//
// Class AliMpMotifSpecial
// Included in AliRoot: 2003/05/02
// Authors: David Guez, Ivana Hrivnacova; IPN Orsay
-#include <TString.h>
-
#include "AliMpMotifSpecial.h"
#include "AliMpMotifType.h"
#include "AliMpIntPair.h"
#include "AliMpConstants.h"
+#include "AliLog.h"
+
+#include <TString.h>
+
+/// \cond CLASSIMP
ClassImp(AliMpMotifSpecial)
+/// \endcond
//______________________________________________________________________________
AliMpMotifSpecial::AliMpMotifSpecial():
AliMpVMotif(),
+ fDimensions(),
fPadDimensionsVector(),
fPadDimensionsVector2()
{
AliMpMotifSpecial::AliMpMotifSpecial(const TString &id,
AliMpMotifType *motifType)
: AliMpVMotif(id,motifType),
+ fDimensions(),
#ifdef WITH_STL
fPadDimensionsVector(),
#endif
/// Returns the i-th different pad dimensions
if (i<0 || i>GetNofPadDimensions()) {
- Fatal("GetPadDimensions(i)", "Index outside limits.");
+ AliFatal("Index outside limits.");
return TVector2();
}
}
//______________________________________________________________________________
-TVector2 AliMpMotifSpecial::Dimensions() const
+void AliMpMotifSpecial::CalculateDimensions()
{
- /// Give the dimension of the motif
-
+ /// Calculate motif dimensions and keep them in fDimensions data
Int_t i,j;
Double_t sizeY=0.;
delete [] tabSizeX;
- return TVector2(sizeX,sizeY);
+ fDimensions = TVector2(sizeX,sizeY);
+}
+
+//______________________________________________________________________________
+TVector2 AliMpMotifSpecial::Dimensions() const
+{
+ /// Give the dimension of the motif
+
+ return fDimensions;
}
//______________________________________________________________________________
void AliMpMotifSpecial::SetPadDimensions(const AliMpIntPair& localIndices,
const TVector2& dimensions)
{
- /// Set the dimensions of the pad located at <localIndices> to the given
- /// <dimensions>
+ /// Set the dimensions of the pad located at \a localIndices to the given
+ /// \a dimensions
if ( !GetMotifType()->HasPad(localIndices)){
Warning("SetPadDimensions","Pad indices outside limits");