#include <TMuiHVMask.h>
Static Public Methods | |
double | get_effic_twopack (UShort_t arm, UShort_t plane, UShort_t panel, UShort_t orient, UShort_t twopack) |
double | get_effic_hvgroup (UShort_t arm, UShort_t plane, UShort_t panel, UShort_t orient, UShort_t hvgroup) |
void | set_run_number (ULong_t run_number) |
ULong_t | get_run_number () |
void | set_one_tube_effic (Float_t one_tube_effic) |
void | set_two_tube_effic (Float_t two_tube_effic) |
void | set_disabled (bool disabled) |
void | set_use_override (bool use_override) |
void | set_filename_north (const char *filename) |
void | set_filename_south (const char *filename) |
void | set_mask_plane (const int mask_plane) |
Private Types | |
typedef sgi::hash_map< ULong_t, double > | private_map |
Static Private Methods | |
bool | initialize () |
Static Private Attributes | |
private_map | _map |
ULong_t | _run_number |
bool | _use_override |
float | _one_tube_effic |
float | _two_tube_effic |
bool | _disabled |
int | _mask_plane |
std::string | _filename_north |
std::string | _filename_south |
|
Definition at line 88 of file TMuiHVMask.h. |
|
Definition at line 117 of file TMuiHVMask.cxx. References get_effic_twopack.
00118 { 00119 TMuiPanelGeo* panel_geo = TMuiGeometry::Geom()->getPanel(arm,plane,panel); 00120 EOrient_t muid_orient = (orient==0) ? kHORIZ : kVERT; 00121 UShort_t ntwopack = panel_geo->getTwoPackCount(muid_orient); 00122 00123 // Loop over two packs and return the effic for the first hv group 00124 // 00125 for(int twopack = 0; twopack<ntwopack; ++twopack){ 00126 TMuiChannelId channel_id(arm,plane,panel,muid_orient,twopack); 00127 if(channel_id.get_HV_chain_group() == hvgroup){ 00128 return get_effic_twopack(arm,plane,panel,orient,twopack); 00129 } 00130 } 00131 return 0.0; 00132 } |
|
Definition at line 98 of file TMuiHVMask.cxx. References _map, _two_tube_effic, TMuiKeyGen::get_key, initialize, and MUIOO::TRACE. Referenced by mMuiResponse::check_efficiency, and get_effic_hvgroup.
00099 { 00100 if(_disabled) return 1.0; 00101 00102 static bool init = initialize(); 00103 if(!init) return 1.0; 00104 00105 private_map::const_iterator iter = _map.find(TMuiKeyGen::get_key(arm,plane,panel,orient,twopack)); 00106 if(iter == _map.end()) { 00107 std::ostringstream msg; 00108 msg << "TMuiHVMask no entry " << arm << " " << panel << " " << orient << " " << twopack << " " << " entries"; 00109 MUIOO::TRACE(msg.str().c_str()); 00110 return _two_tube_effic; 00111 } else { 00112 return iter->second; 00113 } 00114 } |
|
Definition at line 55 of file TMuiHVMask.h. References _run_number.
00055 { return _run_number; } |
|
Referenced by get_effic_twopack. |
|
Definition at line 65 of file TMuiHVMask.h. References _disabled.
00065 { 00066 _disabled = disabled; 00067 } |
|
Definition at line 73 of file TMuiHVMask.h. References _filename_north.
00073 { 00074 _filename_north = std::string(filename); 00075 } |
|
Definition at line 77 of file TMuiHVMask.h. References _filename_south.
00077 { 00078 _filename_south = std::string(filename); 00079 } |
|
Definition at line 81 of file TMuiHVMask.h. References _mask_plane.
00081 { 00082 _mask_plane = mask_plane; 00083 } |
|
Definition at line 57 of file TMuiHVMask.h. References _one_tube_effic.
00057 { 00058 _one_tube_effic = one_tube_effic; 00059 } |
|
Definition at line 52 of file TMuiHVMask.h. References _run_number.
00052 { 00053 _run_number = run_number; 00054 } |
|
Definition at line 61 of file TMuiHVMask.h. References _two_tube_effic.
00061 { 00062 _two_tube_effic = two_tube_effic; 00063 } |
|
Definition at line 69 of file TMuiHVMask.h. References _use_override.
00069 { 00070 _use_override = use_override; 00071 } |
|
Definition at line 97 of file TMuiHVMask.h. Referenced by ClassImp, and set_disabled. |
|
Definition at line 99 of file TMuiHVMask.h. Referenced by set_filename_north. |
|
Definition at line 100 of file TMuiHVMask.h. Referenced by set_filename_south. |
|
Definition at line 89 of file TMuiHVMask.h. Referenced by ClassImp, and get_effic_twopack. |
|
Definition at line 98 of file TMuiHVMask.h. Referenced by ClassImp, and set_mask_plane. |
|
Definition at line 95 of file TMuiHVMask.h. Referenced by ClassImp, and set_one_tube_effic. |
|
Definition at line 92 of file TMuiHVMask.h. Referenced by ClassImp, get_run_number, and set_run_number. |
|
Definition at line 96 of file TMuiHVMask.h. Referenced by ClassImp, get_effic_twopack, and set_two_tube_effic. |
|
Definition at line 94 of file TMuiHVMask.h. Referenced by ClassImp, and set_use_override. |