X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;ds=sidebyside;f=MUON%2FAliMUONPainterHelper.cxx;h=a88ea263f2c8de9da2a2470c351ec7571a96956e;hb=05449db294cc29fcef2230fecffe4eaaff352a2b;hp=eca927efcfc49a986cf0c40dca5e346d24408ef4;hpb=fcabdc0c5b046c1447ef70a34c57adc87aebc4a7;p=u%2Fmrichter%2FAliRoot.git diff --git a/MUON/AliMUONPainterHelper.cxx b/MUON/AliMUONPainterHelper.cxx index eca927efcfc..a88ea263f2c 100644 --- a/MUON/AliMUONPainterHelper.cxx +++ b/MUON/AliMUONPainterHelper.cxx @@ -19,6 +19,7 @@ #include "AliMUONPainterHelper.h" #include "AliCodeTimer.h" +#include "AliDAQ.h" #include "AliLog.h" #include "AliMUONContour.h" #include "AliMUONContourHandler.h" @@ -37,6 +38,7 @@ #include "AliMpDDLStore.h" #include "AliMpDEIterator.h" #include "AliMpDEManager.h" +#include "AliMpDetElement.h" #include "AliMpExMap.h" #include "AliMpMotifMap.h" #include "AliMpMotifPosition.h" @@ -77,6 +79,8 @@ /// ///\author Laurent Aphecetche, Subatech +using std::cout; +using std::endl; ///\cond CLASSIMP ClassImp(AliMUONPainterHelper) ///\endcond @@ -463,10 +467,20 @@ AliMUONPainterHelper::DEPathName(Int_t detElemId) const Int_t chamberId = AliMpDEManager::GetChamberId(detElemId); - return Form("%s/%s/%s", + Int_t ddl(-1); + + AliMpDetElement* de = AliMpDDLStore::Instance()->GetDetElement(detElemId); + + if ( de ) + { + ddl = AliDAQ::DdlIDOffset("MUONTRK") + de->GetDdlId(); + } + + return Form("%s/%s/%s(DDL%4d)", StationName(chamberId/2).Data(), ChamberName(chamberId).Data(), - DEName(detElemId).Data()); + DEName(detElemId).Data(), + ddl); } //_____________________________________________________________________________