(mchview) Display the DDL number when DE is the responder
authorlaphecet <laphecet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 22 Aug 2011 08:52:07 +0000 (08:52 +0000)
committerlaphecet <laphecet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 22 Aug 2011 08:52:07 +0000 (08:52 +0000)
MUON/AliMUONPadStatusMaker.h
MUON/AliMUONPainterHelper.cxx

index 9c51c7e..525f863 100644 (file)
@@ -114,17 +114,17 @@ public:
   Int_t HVStatus(Int_t detElemId, Int_t manuId) const;
   
   Int_t OccupancyStatus(Int_t detElemId, Int_t manuId) const;
-  
+
+  static void DecodeStatus(Int_t status, Int_t& pedStatus, Int_t& hvStatus, 
+                           Int_t&  gainStatus, Int_t& otherStatus);
+  static Int_t BuildStatus(Int_t pedStatus, Int_t hvStatus, 
+                           Int_t gainStatus, Int_t otherStatus);  
 private:
   /// Not implemented
   AliMUONPadStatusMaker(const AliMUONPadStatusMaker&);
   /// Not implemented
   AliMUONPadStatusMaker& operator=(const AliMUONPadStatusMaker&);
 
-  static void DecodeStatus(Int_t status, Int_t& pedStatus, Int_t& hvStatus, 
-                           Int_t&  gainStatus, Int_t& otherStatus);
-  static Int_t BuildStatus(Int_t pedStatus, Int_t hvStatus, 
-                           Int_t gainStatus, Int_t otherStatus);
   
   AliMUONVCalibParam* ComputeStatus(Int_t detElemId, Int_t manuId) const;
 
index eca927e..9a8240b 100644 (file)
@@ -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"
@@ -463,10 +465,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);
 }
 
 //_____________________________________________________________________________