/// \author Laurent Aphecetche
//-----------------------------------------------------------------------------
+using std::cout;
+using std::endl;
/// \cond CLASSIMP
ClassImp(AliMpSlat)
/// \endcond
fMaxNofPadsY(0),
fManuMap(ioCtor),
fPCBs(),
- fPosition(),
+ fPositionX(0.),
+ fPositionY(0.),
fNofPads(0)
{
///
fMaxNofPadsY(0),
fManuMap(),
fPCBs(),
- fPosition(),
+ fPositionX(0.),
+ fPositionY(0.),
fNofPads(0)
{
///
AliError(Form("ManuID %d is duplicated for PCB %s",manuID,pcbType.GetID()));
}
}
- fPosition.Set(DX(),DY());
+ fPositionX = DX();
+ fPositionY = DY();
fNofPads += pcb->NofPads();
}
-//_____________________________________________________________________________
-TVector2
-AliMpSlat::Dimensions() const
-{
- ///
- /// Returns the half-sizes of the slat.
- ///
- return TVector2(DX(),DY());
-}
-
//_____________________________________________________________________________
Double_t
AliMpSlat::DX() const
//_____________________________________________________________________________
void
-AliMpSlat::ForcePosition(const TVector2& pos)
+AliMpSlat::ForcePosition(Double_t x, Double_t y)
{
///
/// Force the position to be different from (DX(),DY()).
/// Beware that this method must be called once all PCB have been added,
/// as the Add() method resets the position.
///
- fPosition = pos;
+ fPositionX = x;
+ fPositionY = y;
}
//_____________________________________________________________________________
/// Prints the slat characteristics.
///
cout << "SLAT " << GetID() << " 1/2 DIM = (" << DX() << "," << DY() << ")"
- << " POS = " << Position().X() << "," << Position().Y()
+ << " POS = " << GetPositionX() << "," << GetPositionY()
<< " NPADSX = " << GetNofPadsX()
<< " MAXNPADSY = " << GetMaxNofPadsY()
<< " NPCBs=" << GetSize() << endl;