/* Descripion: 1) Lets define a unique 'name' for any active element in EEMC name="ssTann" for towers, ss=sector 01-12, a=subsector='A' -'E' nn=tower in eta =01-12 "ssxkkk" for SMD x='U' or 'V' plain orientation, kkk=001-288 strip ID "ssPann" for Pres1 "ssQann" for Pres2 "ssRann" for Post "ssLann" for LED pixel 2) Lets define sector oriented index for any PMT/MAPMT pixel Index within sector: Tower 1- 60 =(sub-1)*5+eta, where sub=1-5, eta=1-12 Pre1 101-160 = 100+ the same Pre2 201-260 = 200+ the same Post 301-360 = 300+ the same smd-U 401-688 couting from the shortest at eta=2 smd-V 701-988 couting from the shortest at eta=2 Index jumps by 1000 from sector to sector --> add (sectorID-1)*1000 Index total range [0-11999], spare ~15% or ~180/sector */ //********************************************************************* int EEname2Index(char *name); void EEindex2Name(int index, char * name);