]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Default wise used dummy mapping for new segmentation (tmp solution) (Christian)
authormartinez <martinez@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 6 Jun 2005 08:13:55 +0000 (08:13 +0000)
committermartinez <martinez@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 6 Jun 2005 08:13:55 +0000 (08:13 +0000)
MUON/AliMUONRawData.cxx

index 892f3f3c1406ae00173869e83e4a095fc97bbc05..26ea0ece84182eaf62870fde9291cf9bc2bb35ed 100644 (file)
@@ -237,16 +237,15 @@ Int_t AliMUONRawData::WriteTrackerDDL(Int_t iCh)
   Int_t nDigits;
   const AliMUONDigit* digit;
 
-  AliMUON *pMUON;
-  AliMUONChamber* iChamber = 0x0;
-  AliMUONGeometrySegmentation* segmentation2[2];
+//   AliMUON *pMUON;
+//   AliMUONChamber* iChamber = 0x0;
+//   AliMUONGeometrySegmentation* segmentation2[2];
 
-  segmentation2[0]=iChamber->SegmentationModel2(1); // cathode 0
-  segmentation2[1]=iChamber->SegmentationModel2(2); // cathode 1
-
-   pMUON = (AliMUON*) gAlice->GetModule("MUON");
-   iChamber =  &(pMUON->Chamber(iCh));
+//   pMUON = (AliMUON*) gAlice->GetModule("MUON");
+//   iChamber =  &(pMUON->Chamber(iCh));
 
+//   segmentation2[0]=iChamber->SegmentationModel2(1); // cathode 0
+//   segmentation2[1]=iChamber->SegmentationModel2(2); // cathode 1
 
    AliDebug(1, Form("WriteDDL chamber %d\n", iCh+1));
 
@@ -274,24 +273,24 @@ Int_t AliMUONRawData::WriteTrackerDDL(Int_t iCh)
       detElemId = digit->DetElemId();
 
       // mapping
-      if (detElemId == 0) {
-       AliWarning("\ndetElemId = 0, old segmentation !\n");
-       GetDummyMapping(iCh, iCath, digit, busPatchId, manuId, channelId);
-      } else {
-      // mapping (not far from real one)
-       AliMUONSegmentManuIndex* connect = segmentation2[iCath]->GetMpConnection(detElemId, padX, padY);
-       if (connect != 0x0) {
-         busPatchId = connect->GetBusPatchId(); 
-         manuId     = connect->GetManuId();
-         channelId  = connect->GetManuChannelId();
-         AliDebug(3,Form("busPatchId %d, manuId: %d, channelId: %d\n", busPatchId, manuId, channelId));
-       } else {
-         busPatchId = 0; 
-         manuId     = 0;
-         channelId  = 0;
-       }
-
-      }
+//       if (detElemId == 0) {
+//     AliWarning("\ndetElemId = 0, old segmentation !\n");
+       GetDummyMapping(iCh, iCath, digit, busPatchId, manuId, channelId);
+//       } else {
+//       // mapping (not far from real one)
+//     AliMUONSegmentManuIndex* connect = segmentation2[iCath]->GetMpConnection(detElemId, padX, padY);
+//     if (connect != 0x0) {
+//       busPatchId = connect->GetBusPatchId(); 
+//       manuId     = connect->GetManuId();
+//       channelId  = connect->GetManuChannelId();
+//       AliDebug(3,Form("busPatchId %d, manuId: %d, channelId: %d\n", busPatchId, manuId, channelId));
+//     } else {
+//       busPatchId = 0; 
+//       manuId     = 0;
+//       channelId  = 0;
+//     }
+
+//       }
       //packing word
       AliBitPacking::PackWord((UInt_t)parity,word,29,31);
       AliBitPacking::PackWord((UInt_t)manuId,word,18,28);