/*
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
| | | |40.32
| 0 | | 1 |
| | | |
-r1 |_______________| |_______________|0 r24
+r24 |_______________| |_______________|0 r1 //updated: 15/02/2008
0 64.0 66.6 130.6
// 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("+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++");
//