Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

BmntUtil.cxx

Go to the documentation of this file.
00001 #include "BmntUtil.h"
00002 
00003 int hadron_offset(int channel)
00004 {
00005     if (channel < 1 || channel > 49) return -1;
00006     if (channel == 49) return 104;
00007     return channel + 151;
00008 }
00009 
00010 int hadron_index(int channel)
00011 {
00012     int o = hadron_offset(channel);
00013     if (o<0) return o;
00014     return o - 104;
00015 }
00016   
00017 
00018 int hadron_cell(int row, int col)
00019 {
00020     return col + (row-1)*7;
00021 }
00022 
00023 double hadron_position(int rowcol)
00024 {
00025     return (rowcol-4)*11.43;    // cm
00026 }
00027 
00028 int muon_offset(int channel)
00029 {
00030     if (channel < 1 || channel > 81) return -1;
00031     if (channel > 48) return channel+55;
00032     return channel + 151;
00033 }
00034 
00035 int muon_index(int channel)
00036 {
00037     int o = muon_offset(channel);
00038     if (o<0) return o;
00039     return o - 104;
00040 }
00041 int muon_cell(int row, int col)
00042 {
00043     return col+(row-1)*9;
00044 }
00045 

Generated on Mon Feb 15 11:06:26 2010 for loon by  doxygen 1.3.9.1