New mapping in agreement with the new instructions from Paolo and Giacinto
authordibari <dibari@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 15 Feb 2008 11:36:35 +0000 (11:36 +0000)
committerdibari <dibari@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 15 Feb 2008 11:36:35 +0000 (11:36 +0000)
HMPID/AliHMPIDDigit.cxx
HMPID/AliHMPIDDigit.h

index 01380fb..80d3670 100644 (file)
@@ -28,9 +28,9 @@ ClassImp(AliHMPIDDigit)
 /*
  Preface: all geometrical information (like left-right sides) is reported as seen from electronic side.
  
-     d10          d1    d10          d1 
+      d1          d10    d1           d10 
       _______________    _______________          
-r24  |               |  |               |126.16   r1
+r1   |               |  |               |126.16   r24
      |       4       |  |       5       | 
      |               |  |               | 
      |_______________|  |_______________|85.84 
@@ -43,7 +43,7 @@ r24  |               |  |               |126.16   r1
      |               |  |               |40.32
      |       0       |  |       1       |
      |               |  |               |
-r1   |_______________|  |_______________|0        r24
+r24  |_______________|  |_______________|0        r1        //updated: 15/02/2008
       0           64.0  66.6        130.6 
 
 
index e14b1bc..3dc0b3a 100644 (file)
@@ -137,11 +137,25 @@ void AliHMPIDDigit::Raw(UInt_t &w32,Int_t &ddl,Int_t &r,Int_t &d,Int_t &a)const
 //   Returns: none
   Int_t y2a[6]={5,3,1,0,2,4};
 
-                                    ddl=2*Ch()+Pc()%2;                     //DDL# 0..13
-  Int_t tmp=1+Pc()/2*8+PadPcY()/6;  r=(Pc()%2)? 25-tmp:tmp;              //row r=1..24
-                                    d=1+PadPcX()/8;                      //DILOGIC# 1..10
-                                    a=y2a[PadPcY()%6]+6*(PadPcX()%8);    //ADDRESS 0..47        
-      
+                                    ddl=2*Ch()+Pc()%2;                    //DDL# 0..13
+ // Int_t tmp=1+Pc()/2*8+PadPcY()/6;  r=(Pc()%2)? 25-tmp:tmp;               //row r=1..24
+    Int_t tmp=Pc()/2*8+PadPcY()/6;  r=(Pc()%2)? tmp:24-tmp;               //row r=1..24
+                                    d=1+PadPcX()/8;                       //DILOGIC# 1..10
+                                    a=y2a[PadPcY()%6]+6*(PadPcX()%8);     //ADDRESS 0..47        
+    
+   /*
+   Int_t a2y[6]={3,2,4,1,5,0};     //pady for a given padress (for single DILOGIC chip)
+                                  Int_t ch=ddl/2;
+  Int_t tmp=(24-row)/8;
+  Int_t pc=(ddl%2)?5-2*tmp:2*tmp;
+  Int_t px=(dil-1)*8+pad/6;
+
+  tmp=(ddl%2)?row-1:(24-row);
+  Int_t py=6*(tmp%8)+a2y[pad%6];
+
+   */                                 
+                                    
+                                      
   w32=0;   
   //Printf("+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++");
   //