9 #ifndef __QWREGRESSIONSUBSYSTEM__
10 #define __QWREGRESSIONSUBSYSTEM__
13 #include <boost/shared_ptr.hpp>
82 void Scale(Double_t value);
113 if (element->second != NULL)
114 element->second->ClearEventData();
141 #endif // __QWREGRESSIONSUBSYSTEM__
#define QwMessage
Predefined log drain for regular messages.
void PrintValue() const
Print values for all channels.
VQwSubsystem & operator+=(VQwSubsystem *value)
void ConstructBranchAndVector(TTree *tree, TString &prefix, std::vector< Double_t > &values)
Construct the branch and tree vector.
Int_t ProcessEvBuffer(UInt_t, UInt_t, UInt_t *, UInt_t)
TODO: The non-event-type-aware ProcessEvBuffer routine should be replaced with the event-type-aware v...
Int_t ProcessConfigurationBuffer(UInt_t, UInt_t, UInt_t *, UInt_t)
Int_t LoadInputParameters(TString)
Mandatory parameter file definition.
VQwSubsystem & operator-=(VQwSubsystem *value)
virtual UInt_t UpdateErrorFlag()
Uses the error flags of contained data elements to update Returns the error flag to the top level rou...
std::vector< std::pair< VQwHardwareChannel *, VQwHardwareChannel * > > fDependentVar
void Difference(VQwSubsystem *value1, VQwSubsystem *value2)
void FillTreeVector(std::vector< Double_t > &values) const
Fill the tree vector.
void FillHistograms()
Fill the histograms for this subsystem.
Virtual base class for the parity subsystems.
void CalculateRunningAverage()
Calculate the average for all good events.
void LinearRegression(EQwRegType type)
Linear regression.
void PrintErrorCounters() const
Report the number of events failed due to HW and event cut failures.
VQwSubsystem & operator*=(VQwSubsystem *value)
virtual void ConstructHistograms()
Construct the histograms for this subsystem.
void Ratio(VQwSubsystem *value1, VQwSubsystem *value2)
void IncrementErrorCounters()
Increment the error counters.
VQwSubsystem & operator=(VQwSubsystem *value)
Overloaded Operators.
Virtual base class for the parity subsystems.
void DeaccumulateRunningSum(VQwSubsystem *value)
remove one entry from the running sums for devices
Bool_t ApplySingleEventCuts()
Apply the single event cuts.
QwRegressionSubsystem(TString name)
Constructor with just name. (use gQwOptions to initialize the QwRegression baseclass) ...
VQwSubsystem & operator/=(VQwSubsystem *value)
void Scale(Double_t value)
boost::shared_ptr< VQwSubsystem > GetSharedPointerToStaticObject()
void AccumulateRunningSum(VQwSubsystem *input)
Update the running sums.
void ConstructBranchAndVector(TTree *tree, std::vector< Double_t > &values)
Construct the tree and vector for this subsystem.
UInt_t GetEventcutErrorFlag()
Return the error flag to the top level routines related to stability checks and ErrorFlag updates...
The pure virtual base class of all subsystems.
QwRegressionSubsystem(QwOptions &options, TString name)
Constructor with only options.
static std::ostream & endl(std::ostream &)
End of the line.
void FillTreeVector(std::vector< Double_t > &values) const
Fill the vector for this subsystem.
Int_t LoadEventCuts(TString)
Load the event cuts file.
Int_t LoadChannelMap(TString)
Derived functions.
An options class which parses command line, config file and environment.
void ProcessOptions(QwOptions &options)
Process the configuration options.
void Sum(VQwSubsystem *value1, VQwSubsystem *value2)
QwRegressionSubsystem(QwOptions &options, QwSubsystemArrayParity &event, TString name)
Constructor with single event.
void ConstructBranch(TTree *tree, TString &prefix)
Construct the branch and tree vector.
void ProcessOptions(QwOptions &options)
Process the command line options.
QwRegressionSubsystem(const QwRegressionSubsystem &source)
std::vector< std::pair< VQwHardwareChannel *, VQwHardwareChannel * > >::iterator PairIterator