#include <TMuiPseudoBLTO.h>
Inheritance diagram for TMuiPseudoBLTO_v1:
Public Methods | |
TMuiPseudoBLTO_v1 () | |
virtual | ~TMuiPseudoBLTO_v1 () |
TMuiPseudoBLTO_v1 (const Key &, UShort_t arm, UShort_t index) | |
TMuiPseudoBLTO_v1 (const TMuiPseudoBLTO *) | |
TMuiPseudoBLTO_v1 (const TMuiPseudoBLTO &) | |
void | fire_2D () |
void | fire_1D1S () |
void | fire_1D (const UShort_t iquad) |
void | fire_1S (const UShort_t iquad) |
bool | check_2D_trigger () const |
bool | check_1D1S_trigger () const |
bool | is_2D_fired () const |
bool | is_1D1S_fired () const |
bool | is_1D_fired (const UShort_t iquad) const |
bool | is_1S_fired (const UShort_t iquad) const |
void | fire_reco_2D () |
void | fire_reco_1D1S () |
void | fire_reco_1D (const UShort_t iquad) |
void | fire_reco_1S (const UShort_t iquad) |
bool | is_reco_2D_fired () const |
bool | is_reco_1D1S_fired () const |
bool | is_reco_1D_fired (const UShort_t iquad) const |
bool | is_reco_1S_fired (const UShort_t iquad) const |
bool | check_2D_with_reco () const |
bool | check_1D1S_with_reco () const |
void | set_arm (UShort_t arm) |
void | set_index (UShort_t index) |
UShort_t | get_arm () const |
UShort_t | get_index () const |
void | print (std::ostream &os=std::cout) const |
Private Attributes | |
UShort_t | _arm |
UShort_t | _index |
bool | _is_2D |
bool | _is_1D1S |
bool | _is_1D_quad0 |
bool | _is_1D_quad1 |
bool | _is_1D_quad2 |
bool | _is_1D_quad3 |
bool | _is_1S_quad0 |
bool | _is_1S_quad1 |
bool | _is_1S_quad2 |
bool | _is_1S_quad3 |
bool | _is_reco_2D |
bool | _is_reco_1D1S |
bool | _is_reco_1D_quad0 |
bool | _is_reco_1D_quad1 |
bool | _is_reco_1D_quad2 |
bool | _is_reco_1D_quad3 |
bool | _is_reco_1S_quad0 |
bool | _is_reco_1S_quad1 |
bool | _is_reco_1S_quad2 |
bool | _is_reco_1S_quad3 |
|
|
|
Definition at line 170 of file TMuiPseudoBLTO.h.
00170 {;} |
|
Definition at line 32 of file TMuiPseudoBLTO.cxx.
00034 : 00035 TMuiPseudoBLTO(key), 00036 _arm(arm), 00037 _index(index), 00038 _is_2D(false), 00039 _is_1D1S(false), 00040 _is_1D_quad0(false), 00041 _is_1D_quad1(false), 00042 _is_1D_quad2(false), 00043 _is_1D_quad3(false), 00044 _is_1S_quad0(false), 00045 _is_1S_quad1(false), 00046 _is_1S_quad2(false), 00047 _is_1S_quad3(false), 00048 _is_reco_2D(false), 00049 _is_reco_1D1S(false), 00050 _is_reco_1D_quad0(false), 00051 _is_reco_1D_quad1(false), 00052 _is_reco_1D_quad2(false), 00053 _is_reco_1D_quad3(false), 00054 _is_reco_1S_quad0(false), 00055 _is_reco_1S_quad1(false), 00056 _is_reco_1S_quad2(false), 00057 _is_reco_1S_quad3(false) 00058 {;} |
|
|
|
check if 1D1S trigger output is consistent with 1D triggers Reimplemented from TMuiPseudoBLTO. Definition at line 137 of file TMuiPseudoBLTO.cxx. References is_1D_fired, and is_1S_fired.
00137 { 00138 00139 // This is a self-consistency check between 1D/1S trigger decision 00140 // we get from emulator and 1D1S trigger decision we get from emulator. 00141 // The ideal is that if one can find one quadrant has 00142 // 1D trigger fired and another quadrant had 1S/1D trigger fired, 00143 // one should also find 1D1S trigger fired for this event. 00144 // Otherwise, SOMEONE SETS US AN ATOMIC BOMB !!! 00145 // 00146 bool consistency = false; 00147 00148 for( UShort_t iquad = 0; iquad < 4; iquad++) { 00149 if(is_1D_fired(iquad)) { 00150 for(UShort_t jquad = 0; jquad < 4; jquad++) { 00151 if((is_1D_fired(jquad)||is_1S_fired(jquad))&&(jquad!=iquad)) { 00152 consistency = true; 00153 return consistency; 00154 } 00155 } 00156 } 00157 } 00158 return consistency; 00159 } |
|
check if 1D1S trigger output is consistent with trigger decisions from reco hits Reimplemented from TMuiPseudoBLTO. Definition at line 337 of file TMuiPseudoBLTO.h. References _is_1D1S, and _is_reco_1D1S.
00337 { 00338 if(_is_reco_1D1S == _is_1D1S) return true; 00339 return false; 00340 } |
|
check if 2D trigger output is consistent with 1D triggers Reimplemented from TMuiPseudoBLTO. Definition at line 113 of file TMuiPseudoBLTO.cxx. References is_1D_fired.
00113 { 00114 00115 // This is a self-consistency check between 1D trigger decision 00116 // we get from emulator and 2D trigger decision we get from emulator. 00117 // The ideal is that if one can find two different quadrant both have 00118 // 1D trigger fired, one should also find 2D trigger fired for this event. 00119 // Otherwise, SOMEONE SETS US A BOMB !!! 00120 // 00121 bool consistency = false; 00122 00123 for( UShort_t iquad = 0; iquad < 3; iquad++) { 00124 if(is_1D_fired(iquad)) { 00125 for(UShort_t jquad = iquad+1; jquad < 4; jquad++) { 00126 if(is_1D_fired(jquad)) { 00127 consistency = true; 00128 return consistency; 00129 } 00130 } 00131 } 00132 } 00133 00134 return consistency; 00135 } |
|
check if 2D trigger output is consistent with trigger decisions from reco hits Reimplemented from TMuiPseudoBLTO. Definition at line 332 of file TMuiPseudoBLTO.h. References _is_2D, and _is_reco_2D.
00332 { 00333 if(_is_reco_2D == _is_2D) return true; 00334 return false; 00335 } |
|
set one deep pseudo_BLT trigger, 1D trigger is decided in a single quadrant. Reimplemented from TMuiPseudoBLTO. Definition at line 185 of file TMuiPseudoBLTO.h. References _is_1D_quad0, _is_1D_quad1, _is_1D_quad2, and _is_1D_quad3.
00185 { 00186 switch(iquad) 00187 { 00188 case 0: 00189 _is_1D_quad0 = true; 00190 break; 00191 case 1: 00192 _is_1D_quad1 = true; 00193 break; 00194 case 2: 00195 _is_1D_quad2 = true; 00196 break; 00197 case 3: 00198 _is_1D_quad3 = true; 00199 } 00200 } |
|
set deep-shallow pseudo_BLT trigger Reimplemented from TMuiPseudoBLTO. Definition at line 183 of file TMuiPseudoBLTO.h. References _is_1D1S.
00183 { _is_1D1S = true;} |
|
set one shallow pseudo_BLT trigger,, 1S trigger is decided in a single quadrant. Reimplemented from TMuiPseudoBLTO. Definition at line 202 of file TMuiPseudoBLTO.h. References _is_1S_quad0, _is_1S_quad1, _is_1S_quad2, and _is_1S_quad3.
00202 { 00203 switch(iquad) 00204 { 00205 case 0: 00206 _is_1S_quad0 = true; 00207 break; 00208 case 1: 00209 _is_1S_quad1 = true; 00210 break; 00211 case 2: 00212 _is_1S_quad2 = true; 00213 break; 00214 case 3: 00215 _is_1S_quad3 = true; 00216 } 00217 } |
|
set deep-deep pseudo_BLT trigger Reimplemented from TMuiPseudoBLTO. Definition at line 181 of file TMuiPseudoBLTO.h. References _is_2D.
00181 { _is_2D = true;} |
|
set one deep pseudo_BLT trigger, 1D trigger is decided in a single quadrant. Reimplemented from TMuiPseudoBLTO. Definition at line 262 of file TMuiPseudoBLTO.h. References _is_reco_1D_quad0, _is_reco_1D_quad1, _is_reco_1D_quad2, and _is_reco_1D_quad3.
00262 { 00263 switch(iquad) 00264 { 00265 case 0: 00266 _is_reco_1D_quad0 = true; 00267 break; 00268 case 1: 00269 _is_reco_1D_quad1 = true; 00270 break; 00271 case 2: 00272 _is_reco_1D_quad2 = true; 00273 break; 00274 case 3: 00275 _is_reco_1D_quad3 = true; 00276 } 00277 } |
|
set deep-shallow pseudo_BLT trigger Reimplemented from TMuiPseudoBLTO. Definition at line 260 of file TMuiPseudoBLTO.h. References _is_reco_1D1S.
00260 { _is_reco_1D1S = true;} |
|
set one shallow pseudo_BLT trigger,, 1S trigger is decided in a single quadrant. Reimplemented from TMuiPseudoBLTO. Definition at line 279 of file TMuiPseudoBLTO.h. References _is_reco_1S_quad0, _is_reco_1S_quad1, _is_reco_1S_quad2, and _is_reco_1S_quad3.
00279 { 00280 switch(iquad) 00281 { 00282 case 0: 00283 _is_reco_1S_quad0 = true; 00284 break; 00285 case 1: 00286 _is_reco_1S_quad1 = true; 00287 break; 00288 case 2: 00289 _is_reco_1S_quad2 = true; 00290 break; 00291 case 3: 00292 _is_reco_1S_quad3 = true; 00293 } 00294 } |
|
set deep-deep pseudo_BLT trigger Reimplemented from TMuiPseudoBLTO. Definition at line 258 of file TMuiPseudoBLTO.h. References _is_reco_2D.
00258 { _is_reco_2D = true;} |
|
Arm [0,1] Reimplemented from TMuiPseudoBLTO. Definition at line 346 of file TMuiPseudoBLTO.h. References _arm.
00346 {return _arm;} |
|
Index Reimplemented from TMuiPseudoBLTO. Definition at line 348 of file TMuiPseudoBLTO.h. References _index.
00348 {return _index;} |
|
look up if 1D1S Pseudo-BLT fires Reimplemented from TMuiPseudoBLTO. Definition at line 224 of file TMuiPseudoBLTO.h. References _is_1D1S.
00224 { return _is_1D1S;} |
|
look up if 1D Pseudo-BLT fires, 1D trigger is decided in a single quadrant. Reimplemented from TMuiPseudoBLTO. Definition at line 226 of file TMuiPseudoBLTO.h. References _is_1D_quad0. Referenced by check_1D1S_trigger, and check_2D_trigger.
00226 { 00227 switch(iquad) 00228 { 00229 case 0: 00230 return _is_1D_quad0; 00231 case 1: 00232 return _is_1D_quad0; 00233 case 2: 00234 return _is_1D_quad0; 00235 case 3: 00236 return _is_1D_quad0; 00237 default: 00238 return false; 00239 } 00240 } |
|
look up if 1S Pseudo-BLT fires, 1S trigger is also decided in a single quadrant Reimplemented from TMuiPseudoBLTO. Definition at line 242 of file TMuiPseudoBLTO.h. References _is_1S_quad0. Referenced by check_1D1S_trigger.
00242 { 00243 switch(iquad) 00244 { 00245 case 0: 00246 return _is_1S_quad0; 00247 case 1: 00248 return _is_1S_quad0; 00249 case 2: 00250 return _is_1S_quad0; 00251 case 3: 00252 return _is_1S_quad0; 00253 default: 00254 return false; 00255 } 00256 } |
|
look up if 2D Pseudo-BLT fires Reimplemented from TMuiPseudoBLTO. Definition at line 222 of file TMuiPseudoBLTO.h. References _is_2D.
00222 { return _is_2D;} |
|
look up if 1D1S fires according to muid reco hits Reimplemented from TMuiPseudoBLTO. Definition at line 298 of file TMuiPseudoBLTO.h. References _is_reco_1D1S.
00298 { return _is_reco_1D1S;} |
|
look up if 1D fires according to muid reco hits, 1D trigger is decided in a single quadrant. Reimplemented from TMuiPseudoBLTO. Definition at line 300 of file TMuiPseudoBLTO.h. References _is_reco_1D_quad0.
00300 { 00301 switch(iquad) 00302 { 00303 case 0: 00304 return _is_reco_1D_quad0; 00305 case 1: 00306 return _is_reco_1D_quad0; 00307 case 2: 00308 return _is_reco_1D_quad0; 00309 case 3: 00310 return _is_reco_1D_quad0; 00311 default: 00312 return false; 00313 } 00314 } |
|
look up if 1S fires according to muid reco hits, 1S trigger is also decided in a single quadrant Reimplemented from TMuiPseudoBLTO. Definition at line 316 of file TMuiPseudoBLTO.h. References _is_reco_1S_quad0.
00316 { 00317 switch(iquad) 00318 { 00319 case 0: 00320 return _is_reco_1S_quad0; 00321 case 1: 00322 return _is_reco_1S_quad0; 00323 case 2: 00324 return _is_reco_1S_quad0; 00325 case 3: 00326 return _is_reco_1S_quad0; 00327 default: 00328 return false; 00329 } 00330 } |
|
look up if 2D fires according to muid reco hits Reimplemented from TMuiPseudoBLTO. Definition at line 296 of file TMuiPseudoBLTO.h. References _is_reco_2D.
00296 { return _is_reco_2D;} |
|
Reimplemented from TMuiPseudoBLTO. Definition at line 350 of file TMuiPseudoBLTO.h. References _arm, _index, _is_1D1S, _is_1D_quad0, _is_1D_quad1, _is_1D_quad2, _is_1D_quad3, _is_1S_quad0, _is_1S_quad1, _is_1S_quad2, _is_1S_quad3, _is_2D, _is_reco_1D1S, _is_reco_1D_quad0, _is_reco_1D_quad1, _is_reco_1D_quad2, _is_reco_1D_quad3, _is_reco_1S_quad0, _is_reco_1S_quad1, _is_reco_1S_quad2, _is_reco_1S_quad3, _is_reco_2D, and MUIOO::PRINT.
00350 { 00351 MUIOO::PRINT(os,GetName()); 00352 os << " arm: " << _arm << std::endl; 00353 os << " index: " << _index << std::endl; 00354 os << " is_2D: " << _is_2D << std::endl; 00355 os << " is_1D1S: " << _is_1D1S << std::endl; 00356 os << " is_1D_quad0: " << _is_1D_quad0 << std::endl; 00357 os << " is_1D_quad1: " << _is_1D_quad1 << std::endl; 00358 os << " is_1D_quad2: " << _is_1D_quad2 << std::endl; 00359 os << " is_1D_quad3: " << _is_1D_quad3 << std::endl; 00360 os << " is_1S_quad0: " << _is_1S_quad0 << std::endl; 00361 os << " is_1S_quad1: " << _is_1S_quad1 << std::endl; 00362 os << " is_1S_quad2: " << _is_1S_quad2 << std::endl; 00363 os << " is_1S_quad3: " << _is_1S_quad3 << std::endl; 00364 os << " trigger decisions from reconstructed hits. " << std::endl; 00365 os << " is_reco_2D: " << _is_reco_2D << std::endl; 00366 os << " is_reco_1D1S: " << _is_reco_1D1S << std::endl; 00367 os << " is_reco_1D_quad0: " << _is_reco_1D_quad0 << std::endl; 00368 os << " is_reco_1D_quad1: " << _is_reco_1D_quad1 << std::endl; 00369 os << " is_reco_1D_quad2: " << _is_reco_1D_quad2 << std::endl; 00370 os << " is_reco_1D_quad3: " << _is_reco_1D_quad3 << std::endl; 00371 os << " is_reco_1S_quad0: " << _is_reco_1S_quad0 << std::endl; 00372 os << " is_reco_1S_quad1: " << _is_reco_1S_quad1 << std::endl; 00373 os << " is_reco_1S_quad2: " << _is_reco_1S_quad2 << std::endl; 00374 os << " is_reco_1S_quad3: " << _is_reco_1S_quad3 << std::endl; 00375 MUIOO::PRINT(os,"**"); 00376 } |
|
Arm [0,1] Reimplemented from TMuiPseudoBLTO. Definition at line 342 of file TMuiPseudoBLTO.h. References _arm.
00342 { _arm=arm;} |
|
Index Reimplemented from TMuiPseudoBLTO. Definition at line 344 of file TMuiPseudoBLTO.h. References _index.
00344 { _index=index;} |
|
Definition at line 380 of file TMuiPseudoBLTO.h. |
|
Definition at line 381 of file TMuiPseudoBLTO.h. |
|
Definition at line 384 of file TMuiPseudoBLTO.h. Referenced by check_1D1S_with_reco, fire_1D1S, is_1D1S_fired, and print. |
|
Definition at line 385 of file TMuiPseudoBLTO.h. Referenced by fire_1D, is_1D_fired, and print. |
|
Definition at line 386 of file TMuiPseudoBLTO.h. |
|
Definition at line 387 of file TMuiPseudoBLTO.h. |
|
Definition at line 388 of file TMuiPseudoBLTO.h. |
|
Definition at line 389 of file TMuiPseudoBLTO.h. Referenced by fire_1S, is_1S_fired, and print. |
|
Definition at line 390 of file TMuiPseudoBLTO.h. |
|
Definition at line 391 of file TMuiPseudoBLTO.h. |
|
Definition at line 392 of file TMuiPseudoBLTO.h. |
|
Definition at line 383 of file TMuiPseudoBLTO.h. Referenced by check_2D_with_reco, fire_2D, is_2D_fired, and print. |
|
Definition at line 395 of file TMuiPseudoBLTO.h. Referenced by check_1D1S_with_reco, fire_reco_1D1S, is_reco_1D1S_fired, and print. |
|
Definition at line 396 of file TMuiPseudoBLTO.h. Referenced by fire_reco_1D, is_reco_1D_fired, and print. |
|
Definition at line 397 of file TMuiPseudoBLTO.h. Referenced by fire_reco_1D, and print. |
|
Definition at line 398 of file TMuiPseudoBLTO.h. Referenced by fire_reco_1D, and print. |
|
Definition at line 399 of file TMuiPseudoBLTO.h. Referenced by fire_reco_1D, and print. |
|
Definition at line 400 of file TMuiPseudoBLTO.h. Referenced by fire_reco_1S, is_reco_1S_fired, and print. |
|
Definition at line 401 of file TMuiPseudoBLTO.h. Referenced by fire_reco_1S, and print. |
|
Definition at line 402 of file TMuiPseudoBLTO.h. Referenced by fire_reco_1S, and print. |
|
Definition at line 403 of file TMuiPseudoBLTO.h. Referenced by fire_reco_1S, and print. |
|
Definition at line 394 of file TMuiPseudoBLTO.h. Referenced by check_2D_with_reco, fire_reco_2D, is_reco_2D_fired, and print. |