31 out_file = fopen(
"Ring_log.txt",
"wt");
40 po::value<int>()->default_value(4800),
41 "QwEventRing: ring/buffer size");
44 po::value<int>()->default_value(10),
45 "QwEventRing: burp extent");
48 po::value<int>()->default_value(5),
49 "QwEventRing: burp precut");
52 po::value<int>()->default_value(10),
53 "QwEventRing: burp holdoff");
56 po::value<double>()->default_value(1),
57 "QwEventRing: Stability ON/OFF");
58 options.
AddOptions()(
"ring.print-after-unwind",
59 po::value<bool>()->default_bool_value(
false),
60 "QwEventRing: print rolling avg after unwind");
62 po::value<int>()->default_value(200),
63 "QwEventRing: number of events ignored after the beam trips");
70 Double_t stability = 0.0;
83 <<
") is larger than the burp extent ("
85 <<
"; this may not be what you meant to do."
91 QwWarning <<
"Forcing ring size to be " << tmpval
92 <<
" to accommodate a burp extent of " <<
fBurpExtent
101 if (
gQwOptions.HasValue(
"ring.stability_cut"))
102 stability=
gQwOptions.GetValue<
double>(
"ring.stability_cut");
#define QwWarning
Predefined log drain for warnings.
#define QwMessage
Predefined log drain for regular messages.
static const UInt_t kBCMErrorFlag
static const UInt_t kPreserveError
static const UInt_t kBeamTripError
Event ring buffer for burp detection and stability monitoring.
static std::ostream & endl(std::ostream &)
End of the line.
Command-line and configuration file options processor.
po::options_description_easy_init AddOptions(const std::string &blockname="Specialized options")
Add an option to a named block or create new block.
static void SetBurpHoldoff(Int_t holdoff)
QwSubsystemArrayParity & pop()
Return the last subsystem in the ring.
QwSubsystemArrayParity fRollingAvg
QwSubsystemArrayParity fBurpAvg
std::vector< QwSubsystemArrayParity > fEvent_Ring
void push(QwSubsystemArrayParity &event)
Add the subsystem to the ring.
Bool_t IsReady()
Return the read status of the ring.
void ProcessOptions(QwOptions &options)
Process options.
static const Bool_t bDEBUG_Write
void CheckBurpCut(Int_t thisevent)
static void DefineOptions(QwOptions &options)
Define options.
static const Bool_t bDEBUG
Subsystem array container specialized for parity analysis with asymmetry calculations.