ndstripcorrection.h File Reference

Go to the source code of this file.

Functions

int ndstripno (int plane, int strip, int view, int detector)

Function Documentation

int ndstripno ( int  plane,
int  strip,
int  view,
int  detector 
)

Definition at line 4 of file ndstripcorrection.h.

Referenced by MinosCompactEvent::MinosCompactEvent().

00004                                                            {
00005   if(detector==0x01){
00006     //U view
00007     if( view == 2 && (plane-1)%10!=0 ){
00008       return (strip+26);
00009     }
00010     if( view == 2 && (plane-1)%10==0 ){
00011       return (strip);
00012     }
00013     //V View
00014     if( view == 3 && (plane-6)%10!=0 ){
00015       return (strip+2);
00016     }
00017     if( view == 3 && (plane-6)%10==0 ){
00018       return (strip);
00019     }
00020   }else if(detector == 0x02){
00021     return strip; 
00022   }else if(detector == 0x04){
00023     return strip;
00024   }
00025 
00026   cout << "WARNING: Cannot recognize detector! "<<endl;
00027   assert(0);
00028 
00029 }


Generated on 22 Nov 2017 for loon by  doxygen 1.6.1