8 #ifndef QWREGRESSION_H_
9 #define QWREGRESSION_H_
28 typedef std::vector< std::pair< VQwHardwareChannel*,VQwHardwareChannel*> >::iterator
PairIterator;
29 typedef std::vector< std::pair< VQwHardwareChannel*,VQwHardwareChannel*> >::const_iterator
PairConstIterator;
121 std::vector< std::pair< VQwHardwareChannel*, VQwHardwareChannel*> >
fDependentVar;
122 std::vector< std::vector< std::pair< Double_t, const VQwHardwareChannel* > > >
fIndependentVar;
132 default: stream <<
"Unknown";
138 #endif // QWREGRESSION_H_
std::vector< std::string > fDependentName
std::string fRegressionMapFile
Regression dependent and independent variable map.
std::pair< EQwRegType, std::string > ParseRegressionVariable(const std::string &variable)
Parse regression variable in type and name.
QwSubsystemArrayParity * fSubsystemArray
Single event pointer.
std::ostream & operator<<(std::ostream &out, const QwColor &color)
Output stream operator which uses the enum-to-escape-code mapping.
std::vector< std::vector< Double_t > > fSensitivity
virtual ~QwRegression()
Virtual destructor.
EQwRegType
Type of regression variable.
void AccumulateRunningSum(QwRegression value)
std::vector< std::pair< VQwHardwareChannel *, VQwHardwareChannel * > > fDependentVar
QwHelicityPattern * fHelicityPattern
Helicity pattern pointer.
void LinearRegression(EQwRegType type)
Linear regression.
std::vector< std::vector< std::pair< Double_t, const VQwHardwareChannel * > > > fIndependentVar
void CalculateRunningAverage()
Virtual base class for the parity subsystems.
std::vector< std::vector< std::string > > fIndependentName
void FillDB(QwParityDB *db, TString datatype)
bool fEnableRegression
Flag to enable regression.
static void DefineOptions(QwOptions &options)
Define the configuration options.
void ConstructBranchAndVector(TTree *tree, std::vector< Double_t > &values)
Construct the tree and vector for this subsystem.
Int_t ConnectChannels(QwSubsystemArrayParity &event, QwSubsystemArrayParity &asym, QwSubsystemArrayParity &diff)
Connect to channels.
void FillTreeVector(std::vector< Double_t > &values) const
Fill the vector for this subsystem.
void ProcessOptions(QwOptions &options)
Process the configuration options.
QwRegression()
Private default constructor.
Int_t LoadChannelMap(const std::string &mapfile)
Load the channels and sensitivities.
std::vector< std::vector< EQwRegType > > fIndependentType
std::vector< EQwRegType > fDependentVarType
std::vector< std::pair< VQwHardwareChannel *, VQwHardwareChannel * > >::const_iterator PairConstIterator
std::vector< EQwRegType > fDependentType
List of channels to use in the regression.
std::vector< std::pair< VQwHardwareChannel *, VQwHardwareChannel * > >::iterator PairIterator