ARTEMIS-CRIB
 
Loading...
Searching...
No Matches
art::crib::TBranchCopyProcessor Class Reference

Processor for copying data from one TClonesArray to another. More...

#include <TBranchCopyProcessor.h>

Inheritance diagram for art::crib::TBranchCopyProcessor:
[legend]
Collaboration diagram for art::crib::TBranchCopyProcessor:
[legend]

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.
 
TBranchCopyProcessoroperator= (const TBranchCopyProcessor &)=delete
 

Detailed Description

Processor for copying data from one TClonesArray to another.

Example Steering File

Processor:
- name: MyTBranchCopyProcessor
type: art::crib::TBranchCopyProcessor
parameter:
InputCollection: origin # [TString] name of the origin branch
OutputCollection: copy # [TString] output collection name
OutputTransparency: 0 # [Bool_t] Output is persistent if false (default)
Verbose: 1 # [Int_t] verbose level (default 1 : non quiet)

Definition at line 36 of file TBranchCopyProcessor.h.

Constructor & Destructor Documentation

◆ TBranchCopyProcessor() [1/2]

art::crib::TBranchCopyProcessor::TBranchCopyProcessor ( )

Constructor.

Definition at line 19 of file TBranchCopyProcessor.cc.

◆ ~TBranchCopyProcessor()

art::crib::TBranchCopyProcessor::~TBranchCopyProcessor ( )
override

Destructor.

Definition at line 26 of file TBranchCopyProcessor.cc.

◆ TBranchCopyProcessor() [2/2]

art::crib::TBranchCopyProcessor::TBranchCopyProcessor ( const TBranchCopyProcessor & )
privatedelete

Member Function Documentation

◆ ClassDefOverride()

art::crib::TBranchCopyProcessor::ClassDefOverride ( TBranchCopyProcessor ,
2  )
private

ROOT class definition macro.

◆ Init()

void art::crib::TBranchCopyProcessor::Init ( TEventCollection * col)
override

Initializes the processor with the given event collection.

Parameters
colPointer 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.

◆ operator=()

TBranchCopyProcessor & art::crib::TBranchCopyProcessor::operator= ( const TBranchCopyProcessor & )
privatedelete

◆ Process()

void art::crib::TBranchCopyProcessor::Process ( )
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.

Member Data Documentation

◆ fInData

TClonesArray** art::crib::TBranchCopyProcessor::fInData {nullptr}
protected

! Pointer to the input data

Definition at line 63 of file TBranchCopyProcessor.h.

◆ fInputColName

TString art::crib::TBranchCopyProcessor::fInputColName {"origin"}
protected

Name of the input collection.

Definition at line 61 of file TBranchCopyProcessor.h.

◆ fOutData

TClonesArray* art::crib::TBranchCopyProcessor::fOutData {nullptr}
protected

! Pointer to the output data.

Definition at line 64 of file TBranchCopyProcessor.h.

◆ fOutputColName

TString art::crib::TBranchCopyProcessor::fOutputColName {"copy"}
protected

Name of the output collection.

Definition at line 62 of file TBranchCopyProcessor.h.


The documentation for this class was generated from the following files:
return to the guide