QwAnalysis
|
main(...) function for the qwanalysis executable More...
#include <iostream>
#include <fstream>
#include <vector>
#include <new>
#include <boost/shared_ptr.hpp>
#include "Rtypes.h"
#include "TROOT.h"
#include "TFile.h"
#include "QwLog.h"
#include "QwRootFile.h"
#include "QwOptionsParity.h"
#include "QwEventBuffer.h"
#include "QwParityDB.h"
#include "QwHistogramHelper.h"
#include "QwSubsystemArrayParity.h"
#include "QwHelicityPattern.h"
#include "QwEventRing.h"
#include "QwEPICSEvent.h"
#include "QwRegression.h"
#include "QwRegressionSubsystem.h"
#include "QwPromptSummary.h"
#include "QwHelicity.h"
#include "QwFakeHelicity.h"
#include "QwBeamLine.h"
#include "QwMainCerenkovDetector.h"
#include "QwScanner.h"
#include "QwLumi.h"
#include "QwBeamMod.h"
#include "QwIntegratedRaster.h"
Go to the source code of this file.
Functions | |
Int_t | main (Int_t argc, Char_t *argv[]) |
main(...) function for the qwanalysis executable
Definition in file QwParity.cc.
Int_t main | ( | Int_t | argc, |
Char_t * | argv[] | ||
) |
without anything, print usage
First, fill the search paths for the parameter files; this sets a static variable within the QwParameterFile class which will be used by all instances. The "scratch" directory should be first.
Then, we set the command line arguments and the configuration filename, and we define the options that can be used in them (using QwOptions).
Define the command line options
Load command line options for the histogram/tree helper class
Setup screen and file logging
Create the event buffer
Create the database connection
Start loop over all runs
Begin processing for the first run
Set the current event number for parameter file lookup
Create an EPICS event
Load the detectors from file
Create event-based linear regression subsystem
Create the helicity pattern
Create the asymmetry-based linear regression
Create the event ring with the subsystem array
Create the running sum
Start loop over events
Definition at line 51 of file QwParity.cc.
References QwHelicityPattern::AccumulateRunningBurstSum(), QwSubsystemArrayParity::AccumulateRunningSum(), QwRegression::AccumulateRunningSum(), QwOptions::AddConfigFile(), QwOptions::AddOptions(), QwDatabase::AllowsWriteAccess(), QwParameterFile::AppendToSearchPath(), QwSubsystemArrayParity::ApplySingleEventCuts(), QwSubsystemArray::AtEndOfEventLoop(), QwHelicityPattern::CalculateAsymmetry(), QwHelicityPattern::CalculateBurstAverage(), QwRegression::CalculateRunningAverage(), QwSubsystemArrayParity::CalculateRunningAverage(), QwHelicityPattern::CalculateRunningAverage(), QwHelicityPattern::CalculateRunningBurstAverage(), QwHelicityPattern::ClearBurstSum(), QwSubsystemArray::ClearEventData(), QwHelicityPattern::ClearEventData(), QwHelicityPattern::ClearRunningSum(), QwEventBuffer::CloseStream(), QwRootFile::ConstructHistograms(), QwRootFile::ConstructTreeBranches(), default_bool_value, DefineOptionsParity(), QwLog::endl(), QwRegression::FillDB(), QwHelicityPattern::FillDB(), QwSubsystemArrayParity::FillDB_MPS(), QwEventBuffer::FillEPICSData(), QwHelicityPattern::FillErrDB(), QwRootFile::FillHistograms(), QwParityDB::FillParameterFiles(), QwEventBuffer::FillSubsystemConfigurationData(), QwEventBuffer::FillSubsystemData(), QwRootFile::FillTree(), QwRootFile::FillTreeBranches(), QwHelicityPattern::GetBurstAsymmetry(), QwHelicityPattern::GetBurstDifference(), QwHelicityPattern::GetBurstYield(), getenv_safe_string(), QwEventBuffer::GetEventNumber(), QwEventBuffer::GetNextEvent(), QwEventBuffer::GetRunLabel(), QwEventBuffer::GetRunNumber(), QwEventBuffer::GetSegmentNumber(), QwOptions::GetValue(), gQwHists, gQwLog, gQwOptions, QwSubsystemArrayParity::IncrementErrorCounters(), QwHelicityPattern::IsBurstSumEnabled(), QwHelicityPattern::IsCompletePattern(), QwHelicityPattern::IsEndOfBurst(), QwEventBuffer::IsEPICSEvent(), QwHelicityPattern::IsGoodAsymmetry(), QwEventBuffer::IsPhysicsEvent(), QwEventRing::IsReady(), QwEventBuffer::IsROCConfigurationEvent(), QwHelicityPattern::IsRunningSumEnabled(), QwRegression::kRegTypeAsym, QwRegression::LinearRegression(), QwOptions::ListConfigFiles(), QwSubsystemArray::ListPublishedValues(), QwHelicityPattern::LoadEventData(), QwEventBuffer::OpenNextStream(), QwEventRing::pop(), QwSubsystemArrayParity::PrintErrorCounters(), QwSubsystemArray::PrintParamFileList(), QwEventBuffer::PrintRunTimes(), QwRegression::PrintValue(), QwSubsystemArrayParity::PrintValue(), QwSubsystemArray::ProcessEvent(), QwHistogramHelper::ProcessOptions(), QwEPICSEvent::ProcessOptions(), QwHelicityPattern::ProcessOptions(), QwEventBuffer::ProcessOptions(), QwLog::ProcessOptions(), QwSubsystemArray::ProcessOptions(), QwEventRing::push(), QwMessage, QwEventBuffer::ReOpenStream(), MQwCodaControlEvent::ReportRunSummary(), QwOptions::SetCommandLine(), QwParameterFile::SetCurrentRunNumber(), QwParityDB::SetupOneRun(), QwSubsystemArray::ShareHistograms(), QwHelicityPattern::UpdateBlinder(), QwOptions::Usage(), QwRootFile::Write(), QwRootFile::WriteParamFileList(), and QwHelicityPattern::WritePromptSummary().