With help from Vince, I calculate the dead time of Right HRS in un-Buffer mode. To use NormAna_R class, I added following code into replay_R.C in my own directory://////////////////////////////////////// // Norm Ana //////////////////////////////////////// char buff[1000]=""; sprintf(buff,"./summaryfiles/RNormAna%d.log",runnumber); NormAna_R* norm = new NormAna_R("N","Normalization Analysis",buff,8); gHaPhysics->Add(norm);
//cout<<"replay: Adding NormAna & saving result to "<
Add(norm); Vince found that someone edited that class and compiled it one week ago. But none of us know who did that. Since the result from that class is consistent with the one from replay_scalar.C which was maintained by Bo, We believe it works.
------------ NormAna_R Trigger Summary ---------------- Trigger Prescale Num evt Num in Livetime --- Factor CODA file Scalers
Irrespective of helicity 1 1 94497 108720 0.859 2 1 6004 9692 0.612 3 16777215 0 28873 0.000 4 16777215 0 18033 0.000 5 65535 0 33609 0.000 6 65535 0 9678 0.000 7 65535 8 911845 0.568 8 100 1562 164643 0.938 ;Warning: T2 livetime is significantly different than the average. ;Warning: T8 livetime is significantly different than the average.
Weighted averaged livetime = 0.820 +- 0.103
Number of events = 100000 Correction for non-synch of scalers = 1.01157 Target Spin: + Beam Helicity + 1 1 44902 53456 0.861 2 1 2822 4782 0.605 3 16777215 0 14257 0.000 4 16777215 0 8982 0.000 5 65535 0 16630 0.000 6 65535 0 4749 0.000 7 65535 1 449959 0.149 8 100 734 81218 0.926 ;Warning: T2 livetime is significantly different than the average. ;Warning: T8 livetime is significantly different than the average.
Weighted averaged livetime = 0.818 +- 0.110
Number of events = 47455 Correction for non-synch of scalers = 0.975637 Target Spin: - Beam Helicity + 1 1 0 0 0.000 2 1 0 0 0.000 3 16777215 0 0 0.000 4 16777215 0 0 0.000 5 65535 0 0 0.000 6 65535 0 0 0.000 7 65535 0 0 0.000 8 100 0 0 0.000
Weighted averaged livetime = nan +- nan
Number of events = 0 Correction for non-synch of scalers = 0 Target Spin: + Beam Helicity - 1 1 44574 53657 0.858 2 1 2826 4774 0.611 3 16777215 0 14167 0.000 4 16777215 0 8804 0.000 5 65535 0 16479 0.000 6 65535 0 4766 0.000 7 65535 7 450610 1.051 8 100 745 81118 0.949 ;Warning: T2 livetime is significantly different than the average. ;Warning: T8 livetime is significantly different than the average.
Weighted averaged livetime = 0.824 +- 0.104
Number of events = 47200 Correction for non-synch of scalers = 0.968245 Target Spin: - Beam Helicity - 1 1 0 0 0.000 2 1 0 0 0.000 3 16777215 0 0 0.000 4 16777215 0 0 0.000 5 65535 0 0 0.000 6 65535 0 0 0.000 7 65535 0 0 0.000 8 100 0 0 0.000
Weighted averaged livetime = nan +- nan