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

BmntUtil.h File Reference

Go to the source code of this file.

Functions

int hadron_offset (int channel)
int hadron_index (int channel)
int hadron_cell (int row, int col)
double hadron_position (int rowcol)
int muon_offset (int channel)
int muon_index (int channel)
int muon_cell (int row, int col)


Function Documentation

int hadron_cell int  row,
int  col
 

Return the hardware channel corresponding to the given row,col ((1,1)->(7,7))

Definition at line 18 of file BmntUtil.cxx.

Referenced by dump_hadmu_monitor().

00019 {
00020     return col + (row-1)*7;
00021 }

int hadron_index int  channel  ) 
 

Like hadron_offset but return the index (0-48) into just the data area of the SWIC block of the data element corresponding to the given hardware channel.

Definition at line 10 of file BmntUtil.cxx.

References hadron_offset().

Referenced by dump_hadmu_monitor().

00011 {
00012     int o = hadron_offset(channel);
00013     if (o<0) return o;
00014     return o - 104;
00015 }

int hadron_offset int  channel  ) 
 

Return the offset into a SWIC data block array corresponding to the given hadron monitor hardware channel (1-49).

Definition at line 3 of file BmntUtil.cxx.

Referenced by hadron_index().

00004 {
00005     if (channel < 1 || channel > 49) return -1;
00006     if (channel == 49) return 104;
00007     return channel + 151;
00008 }

double hadron_position int  rowcol  ) 
 

Return the position of the center of the given row or column from the origin, in cm.

Definition at line 23 of file BmntUtil.cxx.

Referenced by dump_hadmu_monitor().

00024 {
00025     return (rowcol-4)*11.43;    // cm
00026 }

int muon_cell int  row,
int  col
 

Return the hardware channel corresponding to the given row,col ((1,1)->(7,7))

Definition at line 41 of file BmntUtil.cxx.

00042 {
00043     return col+(row-1)*9;
00044 }

int muon_index int  channel  ) 
 

Like muon_offset but return the index (0-80) into just the data area of the SWIC block of the data element corresponding to the given hardware channel.

Definition at line 35 of file BmntUtil.cxx.

References muon_offset().

00036 {
00037     int o = muon_offset(channel);
00038     if (o<0) return o;
00039     return o - 104;
00040 }

int muon_offset int  channel  ) 
 

Return the offset into a SWIC data block array corresponding to the given muon monitor hardware channel (1-81).

Definition at line 28 of file BmntUtil.cxx.

Referenced by muon_index().

00029 {
00030     if (channel < 1 || channel > 81) return -1;
00031     if (channel > 48) return channel+55;
00032     return channel + 151;
00033 }


Generated on Mon Nov 23 05:28:55 2009 for loon by  doxygen 1.3.9.1