#ifndef ALIMPPCB_H
#define ALIMPPCB_H
-#ifndef ROOT_TObject
-# include "TObject.h"
+#ifndef ALI_MP_VPAD_ITERATOR_H
+# include "AliMpVPadIterator.h"
#endif
-#ifndef ROOT_TString
-# include "TString.h"
+#ifndef ALI_MP_AREA_H
+# include "AliMpArea.h"
#endif
-# ifndef ROOT_TArraI
-# include "TArrayI.h"
-# endif
-#include "AliMpContainers.h"
+#ifndef ROOT_TObject
+# include "TObject.h"
+#endif
-#ifdef WITH_ROOT
-# ifndef ROOT_TObjArray
-# include "TObjArray.h"
-# endif
-#else
-# include <vector>
+#ifndef ROOT_TString
+# include "TString.h"
#endif
-#ifndef ALI_MP_VPAD_ITERATOR_H
-# include "AliMpVPadIterator.h"
+#ifndef ROOT_TArraI
+# include "TArrayI.h"
#endif
-#ifndef ALI_MP_AREA_H
-# include "AliMpArea.h"
+#ifndef ROOT_TObjArray
+# include "TObjArray.h"
#endif
class AliMpSlatMotifMap;
{
public:
-#ifdef WITH_ROOT
- /// Type def for the array size
- typedef Int_t Size_t;
-#else
- /// Type def for the array size
- typedef UInt_t Size_t;
-#endif
-
AliMpPCB();
/** Ctor. The sizes are given in mm.
See full doc for the meaning of enveloppe parameters.
/** Returns the i-th motifPosition of this PCB.
i : [0..GetSize()-1]
*/
- AliMpMotifPosition* GetMotifPosition(Size_t i) const;
+ AliMpMotifPosition* GetMotifPosition(Int_t i) const;
/// Returns the motifPosition which contains the pad at (ix,iy).
AliMpMotifPosition* FindMotifPosition(Int_t ix, Int_t iy) const;
AliMpMotifPosition* FindMotifPosition(Double_t x, Double_t y) const;
/// The number of motifs, aka manus.
- Size_t GetSize() const;
+ Int_t GetSize() const;
Int_t GetNofPadsX() const;
Int_t GetNofPadsY() const;
Int_t fIxmax; ///< max pad index in x
Int_t fIymin; ///< min pad index in y
Int_t fIymax; ///< max pad index in y
-#ifdef WITH_ROOT
TObjArray fMotifPositions; ///< array of motifs
-#else
- std::vector<AliMpMotifPosition*> fMotifPositions; ///< array of motif positions
-#endif
Int_t fNofPads; ///< number of pads in this PCB
AliMpSlatMotifMap* fMotifMap; ///< to keep track of things to avoid duplications of motif and motiftypes, and get proper deletion