Processor for copying data from one TClonesArray to another. More...
#include <TBranchCopyProcessor.h>
Public Member Functions | |
| TBranchCopyProcessor () | |
| Constructor. | |
| ~TBranchCopyProcessor () override | |
| Destructor. | |
| void | Init (TEventCollection *col) override |
| Initializes the processor with the given event collection. | |
| void | Process () override |
| Processes the data by copying from input to output collection. | |
Protected Attributes | |
| TClonesArray ** | fInData {nullptr} |
| ! Pointer to the input data | |
| TString | fInputColName {"origin"} |
| Name of the input collection. | |
| TClonesArray * | fOutData {nullptr} |
| ! Pointer to the output data. | |
| TString | fOutputColName {"copy"} |
| Name of the output collection. | |
Private Member Functions | |
| TBranchCopyProcessor (const TBranchCopyProcessor &)=delete | |
| ClassDefOverride (TBranchCopyProcessor, 2) | |
| ROOT class definition macro. | |
| TBranchCopyProcessor & | operator= (const TBranchCopyProcessor &)=delete |
Processor for copying data from one TClonesArray to another.
Definition at line 36 of file TBranchCopyProcessor.h.
| art::crib::TBranchCopyProcessor::TBranchCopyProcessor | ( | ) |
Constructor.
Definition at line 19 of file TBranchCopyProcessor.cc.
|
override |
Destructor.
Definition at line 26 of file TBranchCopyProcessor.cc.
|
privatedelete |
|
private |
ROOT class definition macro.
|
override |
Initializes the processor with the given event collection.
| col | Pointer to the event collection. |
Sets up the input and output collections by retrieving the input collection and preparing a corresponding output collection of the same class type.
Definition at line 36 of file TBranchCopyProcessor.cc.
|
privatedelete |
|
override |
Processes the data by copying from input to output collection.
Iterates over the entries in the input collection and creates a copy of each entry in the output collection using the Copy method of TDataObject.
Definition at line 64 of file TBranchCopyProcessor.cc.
|
protected |
! Pointer to the input data
Definition at line 63 of file TBranchCopyProcessor.h.
|
protected |
Name of the input collection.
Definition at line 61 of file TBranchCopyProcessor.h.
|
protected |
! Pointer to the output data.
Definition at line 64 of file TBranchCopyProcessor.h.
|
protected |
Name of the output collection.
Definition at line 62 of file TBranchCopyProcessor.h.