X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=MUON%2Fmapping%2FAliMpSlat.cxx;h=0d24c3cd39becf47ee8127e670bc786557a950ac;hb=dbeb013274a289e326d0b99b3fa481a23a0c4bb0;hp=ba2b1ebc97f4c551e47c31dcf322991f4a1ffb0a;hpb=2294822de2efdcc1a7d9f45ea363d0cc4188390d;p=u%2Fmrichter%2FAliRoot.git diff --git a/MUON/mapping/AliMpSlat.cxx b/MUON/mapping/AliMpSlat.cxx index ba2b1ebc97f..0d24c3cd39b 100644 --- a/MUON/mapping/AliMpSlat.cxx +++ b/MUON/mapping/AliMpSlat.cxx @@ -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;