JAPAn
Just Another Parity Analyzer
Loading...
Searching...
No Matches
QwExtractor.h
Go to the documentation of this file.
1/*!
2 * \file QwExtractor.h
3 * \brief Data extraction handler for output processing
4 * \author cameronc137
5 * \date 2019-11-22
6 */
7
8#pragma once
9
10// Parent Class
11#include "VQwDataHandler.h"
12
13/**
14 * \class QwExtractor
15 * \ingroup QwAnalysis_BL
16 * \brief Data handler that extracts values into output trees/files
17 *
18 * Connects to a source subsystem array and publishes selected values
19 * (event-level) to ROOT trees for downstream analysis.
20 */
21class QwExtractor:public VQwDataHandler, public MQwDataHandlerCloneable<QwExtractor>
22{
23 public:
24 /// \brief Constructor with name
25 QwExtractor(const TString& name);
26
27 /// \brief Copy constructor
28 QwExtractor(const QwExtractor &source);
29 /// Virtual destructor
30 ~QwExtractor() override;
31
32 Int_t LoadChannelMap(const std::string& mapfile) override;
33 /**
34 * \brief Connect to channels (event-only extraction).
35 * @param event Subsystem array providing per-MPS yields to extract.
36 * @return 0 on success; non-zero on failure.
37 */
38 Int_t ConnectChannels(QwSubsystemArrayParity& event) override;
40 QwRootFile *treerootfile,
41 const std::string& treeprefix = "",
42 const std::string& branchprefix = "") override;
43 void ProcessData() override;
45 void FillTreeBranches(QwRootFile *treerootfile) override;
46
47 protected:
48 /// Default constructor (Protected for child class access)
49
50 /// Error flag mask
52 const UInt_t* fErrorFlagPointer;
53 Int_t fLocalFlag = 0;
54
57 //TTree* fTree;
58
59 private:
60 // Default constructor
62
63}; // class QwExtractor
Virtual base class for data handlers accessing multiple subsystems.
A wrapper class for a ROOT file or memory mapped file.
Definition QwRootFile.h:827
QwSubsystemArrayParity * fSourceCopy
Definition QwExtractor.h:56
void SetPointer(QwSubsystemArrayParity *ptr)
Definition QwExtractor.h:44
const UInt_t * fErrorFlagPointer
Definition QwExtractor.h:52
Int_t ConnectChannels(QwSubsystemArrayParity &event) override
Connect to channels (event-only extraction).
Int_t fLocalFlag
Definition QwExtractor.h:53
void FillTreeBranches(QwRootFile *treerootfile) override
QwExtractor(const TString &name)
Constructor with name.
const QwSubsystemArrayParity * fSourcePointer
Definition QwExtractor.h:55
void ConstructTreeBranches(QwRootFile *treerootfile, const std::string &treeprefix="", const std::string &branchprefix="") override
void ProcessData() override
UInt_t fErrorFlagMask
Default constructor (Protected for child class access)
Definition QwExtractor.h:51
~QwExtractor() override
Virtual destructor.
Subsystem array container specialized for parity analysis with asymmetry calculations.
VQwDataHandler(const TString &name)