76 #include <boost/random.hpp>
103 int main(
int argc,
char* argv[])
148 epicsevent.LoadChannelMap(
"compton_epics_table.map");
207 if (epicsevent.HasDataLoaded()) {
208 epicsevent.CalculateRunningValues();
323 rootfile->
Write(0,TObject::kOverwrite);
327 delete rootfile; rootfile = 0;
void ProcessOptions(QwOptions &options)
Process the configuration options.
#define QwMessage
Predefined log drain for regular messages.
static void SetDefaultDataFileStem(const std::string &stem)
virtual Bool_t CheckForEndOfBurst() const
static void AppendToSearchPath(const TString &searchdir)
Add a directory to the search path.
Bool_t FillSubsystemConfigurationData(QwSubsystemArray &subsystems)
Bool_t ApplySingleEventCuts()
Apply the single event cuts.
Int_t WriteParamFileList(const TString &name, T &object)
void ConstructHistograms(const std::string &name, T &object)
Construct the histograms of a generic object.
void DefineOptionsParity(QwOptions &options)
void CalculateBurstAverage()
void ProcessOptions(QwOptions &options)
Sets internal flags based on the QwOptions.
Int_t OpenNextStream()
Opens the event stream (file or ET) based on the internal flags.
static void SetCurrentRunNumber(const UInt_t runnumber)
Set the current run number for looking up the appropriate parameter file.
void ConstructIndices(const std::string &from, const std::string &to, bool reverse=true)
Construct indices from one tree to another tree.
Int_t CloseStream()
Closes a currently open event stream.
void CalculateRunningBurstAverage()
void ProcessOptions(QwOptions *options)
Process class options for QwOptions.
Bool_t IsBurstSumEnabled()
Status of burst sum calculation flag.
void CalculateAsymmetry()
Bool_t IsCompletePattern() const
void ProcessOptions(QwOptions &options)
Process configuration options (default behavior)
QwSubsystemArrayParity & GetBurstDifference()
Int_t FillTree(const std::string &name)
Fill the tree with name.
Virtual base class for the parity subsystems.
A wrapper class for a ROOT file or memory mapped file.
Int_t Write(const char *name=0, Int_t option=0, Int_t bufsize=0)
QwSubsystemArrayParity & GetBurstYield()
A logfile class, based on an identical class in the Hermes analyzer.
void AccumulateRunningBurstSum()
void ConstructTreeBranches(const std::string &name, const std::string &desc, T &object, const std::string &prefix="")
Construct the tree branches of a generic object.
Int_t GetRunNumber() const
Return CODA file run number.
Load the options for the parity subsystems.
void ProcessOptions(QwOptions &options)
Process the configuration options.
static void SetDefaultRootFileStem(const std::string &stem)
Set default ROOT file stem.
QwHistogramHelper gQwHists
Globally defined instance of the QwHistogramHelper class.
Bool_t FillSubsystemData(QwSubsystemArray &subsystems)
Bool_t IsRunningSumEnabled()
Status of running sum calculation flag.
QwSubsystemArrayParity & GetBurstAsymmetry()
static std::ostream & endl(std::ostream &)
End of the line.
void FillTreeBranches(const std::string &name, const T &object)
Fill the tree branches of a generic object by tree name.
void ProcessEvent()
Process the decoded data in this event.
const std::string getenv_safe_string(const char *name)
void FillHistograms(T &object)
Fill histograms of the subsystem array.
void LoadEventData(QwSubsystemArrayParity &event)
TString GetRunLabel() const
Returns a string like <run#> or <run#>.<file#>
Bool_t FillEPICSData(QwEPICSEvent &epics)
void PrintTrees() const
Print registered trees.
int main(int argc, char **argv)
void LoadHistParamsFromFile(const std::string &filename)
void PrintDirs() const
Print registered histogram directories.
void CalculateRunningAverage()
Bool_t IsROCConfigurationEvent()
#define QwError
Predefined log drain for errors.
void SetCommandLine(int argc, char *argv[], bool default_config_file=true)
Set the command line arguments.