22 #ifndef StuJitterBug_hh
23 #define StuJitterBug_hh
25 #include "StEvent/StEvent.h"
26 #include "StEvent/StTriggerDetectorCollection.h"
27 #include "StEvent/StCtbTriggerDetector.h"
28 #include "StMessMgr.h"
30 Bool_t t0JitterAbort(
StEvent* event) {
35 event->triggerDetectorCollection();
37 gMessMgr->Error() <<
"t0JitterAbort finds no trigger data" << endl;
46 for( UInt_t slat=0; slat<ctb.numberOfSlats(); slat++ ) {
47 for( UInt_t tray=0; tray<ctb.numberOfTrays(); tray++) {
48 ctb_evt += ctb.mips( tray, slat, 0 );
49 ctb_pre += ctb.mips( tray, slat, ctb.numberOfPreSamples() );
53 Float_t ratio = (ctb_evt > 0.) ? ctb_pre/ctb_evt : 0.;
56 gMessMgr->Warning() <<
"t0JitterAbort ctb_evt = " << ctb_evt
57 <<
" ctb_pre = " << ctb_pre << endl;
62 return( (Bool_t) (ratio > 0.01) );