|
JAPAn
Just Another Parity Analyzer
|
Linear-regression corrector applying per-burst slopes to data. More...
#include <LRBCorrector.h>
Inheritance diagram for LRBCorrector:
Collaboration diagram for LRBCorrector:Public Member Functions | |
| LRBCorrector (const TString &name) | |
| Constructor with name. | |
| void | ParseConfigFile (QwParameterFile &file) override |
| Int_t | LoadChannelMap (const std::string &mapfile) override |
| Int_t | ConnectChannels (QwSubsystemArrayParity &asym, QwSubsystemArrayParity &diff) override |
| void | ProcessData () override |
| void | UpdateBurstCounter (Short_t burstcounter) override |
Public Member Functions inherited from VQwDataHandler | |
| VQwDataHandler (const TString &name) | |
| VQwDataHandler (const VQwDataHandler &source) | |
| void | SetPointer (QwHelicityPattern *ptr) |
| void | SetPointer (QwSubsystemArrayParity *ptr) |
| virtual Int_t | ConnectChannels (QwSubsystemArrayParity &, QwSubsystemArrayParity &asym, QwSubsystemArrayParity &diff) |
| virtual Int_t | ConnectChannels (QwSubsystemArrayParity &) |
| Int_t | ConnectChannels (QwHelicityPattern &helicitypattern) |
| virtual void | FinishDataHandler () |
| ~VQwDataHandler () override | |
| TString | GetName () |
| virtual void | ClearEventData () |
| void | InitRunningSum () |
| void | AccumulateRunningSum () |
| virtual void | AccumulateRunningSum (VQwDataHandler &value, Int_t count=0, Int_t ErrorMask=0xFFFFFFF) |
| void | CalculateRunningAverage () |
| void | PrintValue () const |
| void | WritePromptSummary (QwPromptSummary *ps, TString type) |
| virtual void | ConstructTreeBranches (QwRootFile *treerootfile, const std::string &treeprefix="", const std::string &branchprefix="") |
| virtual void | FillTreeBranches (QwRootFile *treerootfile) |
| virtual void | ConstructNTupleFields (QwRootFile *treerootfile, const std::string &treeprefix="", const std::string &branchprefix="") |
| RNTuple methods. | |
| virtual void | FillNTupleFields (QwRootFile *treerootfile) |
| virtual void | ConstructHistograms (TDirectory *, TString &) |
| Construct the histograms in a folder with a prefix. | |
| virtual void | FillHistograms () |
| Fill the histograms. | |
| void | FillTreeVector (QwRootTreeBranchVector &values) const |
| void | ConstructBranchAndVector (TTree *tree, TString &prefix, QwRootTreeBranchVector &values) |
| void | SetRunLabel (TString x) |
| Int_t | LoadChannelMap () |
| Bool_t | PublishInternalValues () const override |
| Publish all variables of the subsystem. | |
| Bool_t | PublishByRequest (TString device_name) override |
| Try to publish an internal variable matching the submitted name. | |
Public Member Functions inherited from MQwPublishable_child< QwDataHandlerArray, VQwDataHandler > | |
| MQwPublishable_child () | |
| Default constructor Initializes the child object and sets up self-reference for publishing. | |
| MQwPublishable_child (const MQwPublishable_child &source) | |
| Copy constructor. | |
| virtual | ~MQwPublishable_child () |
| Virtual destructor. | |
| void | SetParent (QwDataHandlerArray *parent) |
| Set the parent container for this child object. | |
| QwDataHandlerArray * | GetParent () const |
| Get the parent container for this child object. | |
Public Member Functions inherited from MQwCloneable< VQwDataHandler, LRBCorrector > | |
| ~MQwCloneable () override | |
| Virtual destructor. | |
| VQwDataHandler * | Clone () const override |
| Concrete clone method. | |
| const VQwFactory< VQwDataHandler > * | Factory () const override |
| Factory getter. | |
Public Member Functions inherited from VQwCloneable< VQwDataHandler > | |
| virtual | ~VQwCloneable () |
| Virtual destructor. | |
| std::string | GetClassName () const |
| Get demangled name of this class. | |
Protected Member Functions | |
| LRBCorrector () | |
Protected Member Functions inherited from VQwDataHandler | |
| VQwDataHandler () | |
| void | SetEventcutErrorFlagPointer (const UInt_t *errorflagptr) |
| UInt_t | GetEventcutErrorFlag () const |
| std::pair< EQwHandleType, std::string > | ParseHandledVariable (const std::string &variable) |
| void | CalcOneOutput (const VQwHardwareChannel *dv, VQwHardwareChannel *output, std::vector< const VQwHardwareChannel * > &ivs, std::vector< Double_t > &sens) |
Protected Member Functions inherited from MQwPublishable_child< QwDataHandlerArray, VQwDataHandler > | |
| Bool_t | RequestExternalValue (const TString &name, VQwHardwareChannel *value) const |
| Retrieve the variable name from other subsystem arrays Get the value corresponding to some variable name from a different data array. | |
| const VQwHardwareChannel * | RequestExternalPointer (const TString &name) const |
| Retrieve a pointer to an external variable by name Requests a direct pointer to a variable from sibling subsystems via the parent container. | |
| Bool_t | PublishInternalValue (const TString name, const TString desc, const VQwHardwareChannel *element) const |
| Publish a variable from this child into the parent container. | |
Protected Attributes | |
| std::string | fAlphaFileBase |
| std::string | fAlphaFileSuff |
| std::string | fAlphaFilePath |
| std::vector< EQwHandleType > | fIndependentType |
| std::vector< std::string > | fIndependentName |
| std::vector< std::string > | fIndependentFull |
| std::vector< const VQwHardwareChannel * > | fIndependentVar |
| std::vector< Double_t > | fIndependentValues |
| Short_t | fLastCycle |
| std::map< Short_t, std::vector< std::vector< Double_t > > > | fSensitivity |
Protected Attributes inherited from VQwDataHandler | |
| Int_t | fPriority |
| Short_t | fBurstCounter |
| When a datahandler array is processed, handlers with lower priority will be processed before handlers with higher priority. | |
| TString | fName |
| std::string | fMapFile |
| std::string | fTreeName |
| std::string | fTreeComment |
| std::string | fPrefix |
| TString | run_label |
| const UInt_t * | fErrorFlagPtr |
| Error flag pointer. | |
| QwSubsystemArrayParity * | fSubsystemArray |
| Single event pointer. | |
| QwHelicityPattern * | fHelicityPattern |
| Helicity pattern pointer. | |
| std::vector< std::string > | fDependentFull |
| std::vector< EQwHandleType > | fDependentType |
| std::vector< std::string > | fDependentName |
| std::vector< const VQwHardwareChannel * > | fDependentVar |
| std::vector< Double_t > | fDependentValues |
| std::vector< VQwHardwareChannel * > | fOutputVar |
| std::vector< Double_t > | fOutputValues |
| std::vector< std::vector< TString > > | fPublishList |
| std::string | ParseSeparator |
| Bool_t | fKeepRunningSum |
| Bool_t | fRunningsumFillsTree |
| VQwDataHandler * | fRunningsum |
Additional Inherited Members | |
Public Types inherited from VQwDataHandler | |
| enum | EQwHandleType { kHandleTypeUnknown =0 , kHandleTypeMps , kHandleTypeAsym , kHandleTypeDiff , kHandleTypeYield } |
| typedef std::vector< VQwHardwareChannel * >::iterator | Iterator_HdwChan |
| typedef std::vector< VQwHardwareChannel * >::const_iterator | ConstIterator_HdwChan |
Static Public Member Functions inherited from MQwCloneable< VQwDataHandler, LRBCorrector > | |
| static VQwDataHandler * | Create (const std::string &name) |
| Object creation. | |
| static LRBCorrector * | Cast (LRBCorrector *type) |
| Object dynamic cast. | |
Linear-regression corrector applying per-burst slopes to data.
Loads cycle-dependent sensitivities and applies linear regression corrections to monitored channels, selecting the appropriate set based on the current burst counter.
Definition at line 23 of file LRBCorrector.h.
| LRBCorrector::LRBCorrector | ( | const TString & | name | ) |
Constructor with name.
Definition at line 31 of file LRBCorrector.cc.
References VQwDataHandler::fKeepRunningSum, fLastCycle, VQwDataHandler::ParseSeparator, and VQwDataHandler::VQwDataHandler().
Here is the call graph for this function:
|
inlineprotected |
Definition at line 53 of file LRBCorrector.h.
|
overridevirtual |
Connect to external pointers for dependent variables from asym/diff subsystem arrays, creating corresponding output variables as clones.
Fill vector of pointers to the relevant data elements
Reimplemented from VQwDataHandler.
Definition at line 182 of file LRBCorrector.cc.
References VQwDataHandler::ConnectChannels(), QwLog::endl(), VQwDataHandler::fDependentVar, fIndependentFull, fIndependentName, fIndependentType, fIndependentVar, VQwDataHandler::kHandleTypeAsym, VQwDataHandler::kHandleTypeDiff, QwMessage, QwWarning, MQwPublishable< U, T >::RequestExternalPointer(), and MQwPublishable_child< QwDataHandlerArray, VQwDataHandler >::RequestExternalPointer().
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from VQwDataHandler.
Definition at line 46 of file LRBCorrector.cc.
References QwLog::endl(), fAlphaFileBase, fAlphaFilePath, fAlphaFileSuff, VQwDataHandler::fDependentFull, VQwDataHandler::fDependentName, VQwDataHandler::fDependentType, fIndependentFull, fIndependentName, fIndependentType, fLastCycle, fSensitivity, QwParameterFile::GetNextToken(), QwParameterFile::LineIsEmpty(), VQwDataHandler::ParseHandledVariable(), QwError, QwMessage, QwWarning, QwParameterFile::ReadNextLine(), VQwDataHandler::run_label, QwParameterFile::TrimComment(), and QwParameterFile::TrimWhitespace().
Here is the call graph for this function:
|
overridevirtual |
Parse configuration file for map file, priority, tree settings.
Reimplemented from VQwDataHandler.
Definition at line 38 of file LRBCorrector.cc.
References fAlphaFileBase, fAlphaFilePath, fAlphaFileSuff, VQwDataHandler::ParseConfigFile(), and QwParameterFile::PopValue().
Here is the call graph for this function:
|
overridevirtual |
Copy dependent variables to output variables (default processing).
Reimplemented from VQwDataHandler.
Definition at line 222 of file LRBCorrector.cc.
References VQwDataHandler::CalcOneOutput(), VQwDataHandler::fBurstCounter, VQwDataHandler::fDependentVar, fIndependentVar, VQwDataHandler::fOutputVar, and fSensitivity.
Here is the call graph for this function:
|
inlineoverridevirtual |
Reimplemented from VQwDataHandler.
Definition at line 36 of file LRBCorrector.h.
References QwLog::endl(), VQwDataHandler::fBurstCounter, fLastCycle, VQwDataHandler::GetName(), and QwWarning.
Here is the call graph for this function:
|
protected |
Definition at line 55 of file LRBCorrector.h.
Referenced by LoadChannelMap(), and ParseConfigFile().
|
protected |
Definition at line 57 of file LRBCorrector.h.
Referenced by LoadChannelMap(), and ParseConfigFile().
|
protected |
Definition at line 56 of file LRBCorrector.h.
Referenced by LoadChannelMap(), and ParseConfigFile().
|
protected |
Definition at line 61 of file LRBCorrector.h.
Referenced by ConnectChannels(), and LoadChannelMap().
|
protected |
Definition at line 60 of file LRBCorrector.h.
Referenced by ConnectChannels(), and LoadChannelMap().
|
protected |
Definition at line 59 of file LRBCorrector.h.
Referenced by ConnectChannels(), and LoadChannelMap().
|
protected |
Definition at line 64 of file LRBCorrector.h.
|
protected |
Definition at line 63 of file LRBCorrector.h.
Referenced by ConnectChannels(), and ProcessData().
|
protected |
Definition at line 66 of file LRBCorrector.h.
Referenced by LoadChannelMap(), LRBCorrector(), and UpdateBurstCounter().
|
protected |
Definition at line 67 of file LRBCorrector.h.
Referenced by LoadChannelMap(), and ProcessData().