QwAnalysis
|
Moller data analysis. More...
#include <iostream>
#include <math.h>
#include <sstream>
#include <boost/random.hpp>
#include <TROOT.h>
#include <TFile.h>
#include <TTree.h>
#include "QwLog.h"
#include "QwOptionsParity.h"
#include "QwEventBuffer.h"
#include "QwHelicity.h"
#include "QwHelicityPattern.h"
#include "QwHistogramHelper.h"
#include "QwSubsystemArrayParity.h"
#include "QwMollerDetector.h"
Go to the source code of this file.
Functions | |
void | setOptions () |
int | main (int argc, char *argv[]) |
Variables | |
static const int | scal_num = 96 |
float | gscalar [scal_num] |
float | gscaler_old [scal_num] |
float | gscaler_new [scal_num] |
float | gscaler_change [scal_num] |
static bool | bTree = true |
static bool | bHisto = true |
static bool | bHelicity = true |
Moller data analysis.
Definition in file QwMoller.cc.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Set the expected options, command line arguments and the configuration filename
Message logging facilities
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.
Create the running sum
System setup complete, Here's where we would loop over all specified runs
First, do processing of non-physics events...
Add event into the subsystem
Helicity pattern
Accumulate the running sum to calculate the event based running average
Print the helicity information
Fill the histograms
Fill the expert tree
Fill the tree
TODO We need another check here to test for pattern validity. Right now the first 24 cycles are also added to the histograms.
Periodically print event number
end of loop over events
Close ROOT file
Definition at line 54 of file QwMoller.cc.
References QwHelicityPattern::AccumulateRunningBurstSum(), QwSubsystemArrayParity::AccumulateRunningSum(), QwParameterFile::AppendToSearchPath(), bHelicity, bHisto, bTree, QwHelicityPattern::CalculateAsymmetry(), QwHelicityPattern::CalculateBurstAverage(), QwSubsystemArrayParity::CalculateRunningAverage(), QwHelicityPattern::CalculateRunningAverage(), QwHelicityPattern::CalculateRunningBurstAverage(), QwHelicityPattern::ClearBurstSum(), QwEventBuffer::CloseDataFile(), QwSubsystemArrayParity::ConstructBranchAndVector(), QwHelicityPattern::ConstructBranchAndVector(), QwHelicityPattern::ConstructHistograms(), QwSubsystemArray::ConstructHistograms(), QwSubsystemArray::ConstructTree(), DefineOptionsParity(), QwLog::endl(), QwSubsystemArrayParity::FillHistograms(), QwHelicityPattern::FillHistograms(), QwEventBuffer::FillSubsystemData(), QwSubsystemArray::FillTree(), QwSubsystemArrayParity::FillTreeVector(), getenv_safe(), getenv_safe_string(), QwEventBuffer::GetEvent(), QwEventBuffer::GetEventNumber(), QwOptions::GetValue(), gQwHists, gQwLog, gQwOptions, QwOptions::HasValue(), QwSubsystemArrayParity::IncrementErrorCounters(), QwLog::InitLogFile(), QwHelicityPattern::IsBurstSumEnabled(), QwHelicityPattern::IsCompletePattern(), QwHelicityPattern::IsEndOfBurst(), QwEventBuffer::IsPhysicsEvent(), QwEventBuffer::IsROCConfigurationEvent(), QwHelicityPattern::IsRunningSumEnabled(), QwLog::kDebug, QwLog::kMessage, QwLog::kTruncate, QwHelicityPattern::LoadEventData(), QwHistogramHelper::LoadHistParamsFromFile(), QwEventBuffer::OpenDataFile(), QwOptions::Parse(), QwHelicityPattern::PrintRunningAverage(), QwHelicityPattern::PrintRunningBurstAverage(), QwSubsystemArrayParity::PrintValue(), QwSubsystemArray::ProcessEvent(), QwSubsystemArray::ProcessOptions(), QwError, QwMessage, MQwCodaControlEvent::ReportRunSummary(), QwOptions::SetCommandLine(), QwOptions::SetConfigFile(), QwLog::SetFileThreshold(), setOptions(), QwLog::SetScreenThreshold(), and QwSubsystemArray::UpdateEventTypeMask().
void setOptions | ( | ) |
Definition at line 278 of file QwMoller.cc.
References QwOptions::AddOptions(), and gQwOptions.
Referenced by main().
|
static |
Definition at line 50 of file QwMoller.cc.
Referenced by main().
|
static |
Definition at line 49 of file QwMoller.cc.
Referenced by main().
|
static |
Definition at line 48 of file QwMoller.cc.
Referenced by main().
float gscalar[scal_num] |
Definition at line 45 of file QwMoller.cc.
float gscaler_change[scal_num] |
Definition at line 45 of file QwMoller.cc.
float gscaler_new[scal_num] |
Definition at line 45 of file QwMoller.cc.
float gscaler_old[scal_num] |
Definition at line 45 of file QwMoller.cc.
|
static |
Definition at line 44 of file QwMoller.cc.