]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/mapping/AliMpSlat.cxx
- Use dedicated splines for MC periods for 2012 pp (LHC14e2*)
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpSlat.cxx
index ba2b1ebc97f4c551e47c31dcf322991f4a1ffb0a..0d24c3cd39becf47ee8127e670bc786557a950ac 100644 (file)
@@ -42,6 +42,8 @@
 /// \author Laurent Aphecetche
 //-----------------------------------------------------------------------------
 
+using std::cout;
+using std::endl;
 /// \cond CLASSIMP
 ClassImp(AliMpSlat)
 /// \endcond
@@ -57,7 +59,8 @@ AliMpSlat::AliMpSlat(TRootIOCtor* ioCtor)
   fMaxNofPadsY(0),
   fManuMap(ioCtor),
   fPCBs(),
-  fPosition(),
+  fPositionX(0.),
+  fPositionY(0.),
   fNofPads(0)
 {
     ///
@@ -80,7 +83,8 @@ AliMpSlat::AliMpSlat(const char* id, AliMp::PlaneType bendingOrNonBending)
   fMaxNofPadsY(0),
   fManuMap(),
   fPCBs(),
-  fPosition(),
+  fPositionX(0.),
+  fPositionY(0.),
   fNofPads(0)
 {
     ///
@@ -147,20 +151,11 @@ AliMpSlat::Add(const AliMpPCB& pcbType, const TArrayI& manuList)
       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
@@ -323,7 +318,7 @@ AliMpSlat::FindPCBIndexByMotifPositionID(Int_t manuId) const
 
 //_____________________________________________________________________________
 void
-AliMpSlat::ForcePosition(const TVector2& pos)
+AliMpSlat::ForcePosition(Double_t x, Double_t y)
 {
   ///
   /// Force the position to be different from (DX(),DY()).
@@ -331,7 +326,8 @@ AliMpSlat::ForcePosition(const TVector2& pos)
   /// 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;
 }
 
 //_____________________________________________________________________________
@@ -463,7 +459,7 @@ AliMpSlat::Print(Option_t* option) const
   /// 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;