JAPAn
Just Another Parity Analyzer
|
main(...) function for the qwanalysis feedback executable to set IA and/or PITA slopes More...
#include <iostream>
#include <fstream>
#include <vector>
#include <new>
#include <boost/shared_ptr.hpp>
#include "QwLog.h"
#include "QwRootFile.h"
#include "QwOptionsParity.h"
#include "QwEventBuffer.h"
#include "QwHistogramHelper.h"
#include "QwSubsystemArrayParity.h"
#include "QwHelicityCorrelatedFeedback.h"
#include "QwEventRing.h"
#include "QwEPICSEvent.h"
#include "QwHelicity.h"
#include "QwFakeHelicity.h"
#include "QwBeamLine.h"
#include "QwVQWK_Channel.h"
Go to the source code of this file.
Functions | |
Int_t | main (Int_t argc, Char_t *argv[]) |
main(...) function for the qwanalysis feedback executable to set IA and/or PITA slopes
Definition in file QwFeedback.cc.
Int_t main | ( | Int_t | argc, |
Char_t * | argv[] ) |
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.
Setup screen and file logging
Load the histogram parameter definitions (from parity_hists.txt) into the global histogram helper: QwHistogramHelper
Create the event buffer
Create the database connection
Start loop over all runs
Set the current event number for parameter file lookup
Create an EPICS event
Load the detectors from file
Create the helicity pattern
Create the event ring with the subsysten array
Create the running sum
Definition at line 42 of file QwFeedback.cc.
References QwSubsystemArrayParity::AccumulateRunningSum(), QwParameterFile::AppendToSearchPath(), QwHelicityCorrelatedFeedback::ApplyFeedbackCorrections(), QwSubsystemArrayParity::ApplySingleEventCuts(), QwHelicityCorrelatedFeedback::CalculateAsymmetry(), QwHelicityPattern::ClearEventData(), QwSubsystemArray::ClearEventData(), QwHelicityCorrelatedFeedback::ClearRunningSum(), QwEventBuffer::CloseStream(), QwHelicityCorrelatedFeedback::DefineOptions(), DefineOptionsParity(), QwLog::endl(), QwEventBuffer::FillSubsystemConfigurationData(), QwEventBuffer::FillSubsystemData(), getenv_safe_string(), QwEventBuffer::GetEventNumber(), QwEventBuffer::GetNextEvent(), QwEventBuffer::GetRunNumber(), gQwHists, gQwLog, gQwOptions, QwHelicityPattern::IsCompletePattern(), QwHelicityPattern::IsGoodAsymmetry(), QwEventBuffer::IsPhysicsEvent(), QwEventRing::IsReady(), QwEventBuffer::IsROCConfigurationEvent(), QwEPICSEvent::LoadChannelMap(), QwHelicityPattern::LoadEventData(), QwHelicityCorrelatedFeedback::LoadParameterFile(), QwEventBuffer::OpenNextStream(), QwEventRing::pop(), QwEventBuffer::PrintRunTimes(), QwSubsystemArray::ProcessEvent(), QwEventBuffer::ProcessOptions(), QwHelicityCorrelatedFeedback::ProcessOptions(), QwSubsystemArray::ProcessOptions(), QwEventRing::push(), QwMessage, QwEventBuffer::ReportRunSummary(), QwParameterFile::SetCurrentRunNumber(), and QwHelicityPattern::UpdateBlinder().