JAPAn
Just Another Parity Analyzer
|
Data handler that extracts values into output trees/files. More...
#include <QwExtractor.h>
Public Member Functions | |
QwExtractor (const TString &name) | |
Constructor with name. | |
QwExtractor (const QwExtractor &source) | |
Copy constructor. | |
~QwExtractor () override | |
Virtual destructor. | |
Int_t | LoadChannelMap (const std::string &mapfile) override |
Int_t | ConnectChannels (QwSubsystemArrayParity &event) override |
Connect to channels (event-only extraction). | |
void | ConstructTreeBranches (QwRootFile *treerootfile, const std::string &treeprefix="", const std::string &branchprefix="") override |
void | ProcessData () override |
void | SetPointer (QwSubsystemArrayParity *ptr) |
void | FillTreeBranches (QwRootFile *treerootfile) override |
![]() | |
VQwDataHandler (const TString &name) | |
VQwDataHandler (const VQwDataHandler &source) | |
virtual void | ParseConfigFile (QwParameterFile &file) |
void | SetPointer (QwHelicityPattern *ptr) |
void | SetPointer (QwSubsystemArrayParity *ptr) |
virtual Int_t | ConnectChannels (QwSubsystemArrayParity &, QwSubsystemArrayParity &asym, QwSubsystemArrayParity &diff) |
Int_t | ConnectChannels (QwHelicityPattern &helicitypattern) |
virtual void | UpdateBurstCounter (Short_t burstcounter) |
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 | 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. | |
![]() | |
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. | |
![]() | |
~MQwCloneable () override | |
Virtual destructor. | |
VQwDataHandler * | Clone () const override |
Concrete clone method. | |
const VQwFactory< VQwDataHandler > * | Factory () const override |
Factory getter. | |
![]() | |
virtual | ~VQwCloneable () |
Virtual destructor. | |
std::string | GetClassName () const |
Get demangled name of this class. | |
Protected Attributes | |
UInt_t | fErrorFlagMask |
Default constructor (Protected for child class access) | |
const UInt_t * | fErrorFlagPointer |
Int_t | fLocalFlag = 0 |
const QwSubsystemArrayParity * | fSourcePointer |
QwSubsystemArrayParity * | fSourceCopy |
![]() | |
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 |
Private Member Functions | |
QwExtractor () | |
Additional Inherited Members | |
![]() | |
enum | EQwHandleType { kHandleTypeUnknown =0 , kHandleTypeMps , kHandleTypeAsym , kHandleTypeDiff , kHandleTypeYield } |
typedef std::vector< VQwHardwareChannel * >::iterator | Iterator_HdwChan |
typedef std::vector< VQwHardwareChannel * >::const_iterator | ConstIterator_HdwChan |
![]() | |
static VQwDataHandler * | Create (const std::string &name) |
Object creation. | |
static QwExtractor * | Cast (QwExtractor *type) |
Object dynamic cast. | |
![]() | |
VQwDataHandler () | |
virtual Int_t | ConnectChannels (QwSubsystemArrayParity &asym, QwSubsystemArrayParity &diff) |
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) |
![]() | |
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. | |
Data handler that extracts values into output trees/files.
Connects to a source subsystem array and publishes selected values (event-level) to ROOT trees for downstream analysis.
Definition at line 21 of file QwExtractor.h.
QwExtractor::QwExtractor | ( | const TString & | name | ) |
Constructor with name.
Definition at line 30 of file QwExtractor.cc.
References fErrorFlagMask, fErrorFlagPointer, VQwDataHandler::fKeepRunningSum, VQwDataHandler::fTreeComment, VQwDataHandler::fTreeName, VQwDataHandler::ParseSeparator, and VQwDataHandler::VQwDataHandler().
Referenced by QwExtractor().
QwExtractor::QwExtractor | ( | const QwExtractor & | source | ) |
Copy constructor.
Definition at line 42 of file QwExtractor.cc.
References fErrorFlagMask, fErrorFlagPointer, QwExtractor(), and VQwDataHandler::VQwDataHandler().
|
override |
Virtual destructor.
Destructor.
Definition at line 50 of file QwExtractor.cc.
References fSourceCopy.
|
private |
|
overridevirtual |
Connect to channels (event-only extraction).
event | Subsystem array providing per-MPS yields to extract. |
Connect to the dependent and independent channels (implementation)
Reimplemented from VQwDataHandler.
Definition at line 55 of file QwExtractor.cc.
References QwLog::endl(), fErrorFlagPointer, fSourceCopy, QwMessage, and SetPointer().
|
overridevirtual |
Construct TTree branches for output variables, using running sum if configured for statistics trees.
Reimplemented from VQwDataHandler.
Definition at line 69 of file QwExtractor.cc.
References QwRootFile::ConstructTreeBranches(), QwLog::endl(), fSourceCopy, VQwDataHandler::fTreeComment, VQwDataHandler::fTreeName, and QwWarning.
|
overridevirtual |
Reimplemented from VQwDataHandler.
Definition at line 104 of file QwExtractor.cc.
References QwRootFile::FillTree(), QwRootFile::FillTreeBranches(), fLocalFlag, fSourceCopy, and VQwDataHandler::fTreeName.
|
overridevirtual |
|
overridevirtual |
Copy dependent variables to output variables (default processing).
Reimplemented from VQwDataHandler.
Definition at line 86 of file QwExtractor.cc.
References fErrorFlagMask, fErrorFlagPointer, fLocalFlag, and fSourceCopy.
|
inline |
Definition at line 44 of file QwExtractor.h.
References fSourcePointer.
Referenced by ConnectChannels().
|
protected |
Default constructor (Protected for child class access)
Error flag mask
Definition at line 51 of file QwExtractor.h.
Referenced by ProcessData(), QwExtractor(), and QwExtractor().
|
protected |
Definition at line 52 of file QwExtractor.h.
Referenced by ConnectChannels(), ProcessData(), QwExtractor(), and QwExtractor().
|
protected |
Definition at line 53 of file QwExtractor.h.
Referenced by FillTreeBranches(), and ProcessData().
|
protected |
Definition at line 56 of file QwExtractor.h.
Referenced by ConnectChannels(), ConstructTreeBranches(), FillTreeBranches(), ProcessData(), and ~QwExtractor().
|
protected |
Definition at line 55 of file QwExtractor.h.
Referenced by SetPointer().