New method to create an empty status map
authormartinez <martinez@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 27 Feb 2007 09:18:14 +0000 (09:18 +0000)
committermartinez <martinez@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 27 Feb 2007 09:18:14 +0000 (09:18 +0000)
MUON/AliMUONPadStatusMapMaker.cxx
MUON/AliMUONPadStatusMapMaker.h

index 3183d4b..48a8f1d 100644 (file)
@@ -50,6 +50,7 @@
 #include "AliMUONPadStatusMapMaker.h"
 
 #include "AliLog.h"
+#include "AliMUON2DMap.h"
 #include "AliMUONCalibParam1I.h"
 #include "AliMUONObjectPair.h"
 #include "AliMUONV2DStore.h"
 #include "AliMpArea.h"
 #include "AliMpConstants.h"
 #include "AliMpDEManager.h"
+#include "AliMpManuList.h"
 #include "AliMpPad.h"
 #include "AliMpSegmentation.h"
 #include "AliMpStationType.h"
 #include "AliMpVPadIterator.h"
 #include "AliMpVSegmentation.h"
-#include "Riostream.h"
-#include "TMath.h"
-#include "TObjArray.h"
-#include "TStopwatch.h"
-
+#include <Riostream.h>
+#include <TMath.h>
+#include <TObjArray.h>
+#include <TStopwatch.h>
+#include <TList.h>
 #include <map>
 #include <utility>
 
@@ -166,6 +168,30 @@ AliMUONPadStatusMapMaker::IsValid(const AliMpPad& pad,
 
 //_____________________________________________________________________________
 AliMUONV2DStore*
+AliMUONPadStatusMapMaker::MakeEmptyPadStatusMap()
+{
+  AliMUONV2DStore* padStatusMap = new AliMUON2DMap(kTRUE);
+  
+  TList* list = AliMpManuList::ManuList();
+  
+  AliMpIntPair* pair;
+  
+  TIter next(list);
+  
+  while ( ( pair = static_cast<AliMpIntPair*>(next()) ) ) 
+  {
+    Int_t detElemId = pair->GetFirst();
+    Int_t manuId = pair->GetSecond();
+    padStatusMap->Set(detElemId,manuId,new AliMUONCalibParam1I(64,0),kFALSE);
+  }
+  
+  delete list;
+  
+  return padStatusMap;
+}
+
+//_____________________________________________________________________________
+AliMUONV2DStore*
 AliMUONPadStatusMapMaker::MakePadStatusMap(const AliMUONV2DStore& status,
                                            Int_t mask)
 {
index 160daf6..d165470 100644 (file)
@@ -33,6 +33,9 @@ public:
   
   AliMUONV2DStore* MakePadStatusMap(const AliMUONV2DStore& status,
                                     Int_t mask);
+  
+  static AliMUONV2DStore* MakeEmptyPadStatusMap();
+
 
 private:
   AliMUONPadStatusMapMaker(const AliMUONPadStatusMapMaker&);