PandaRoot
PndBranchBurstBuilder Class Referenceabstract

Basic Class for building bursts of events in the simulation. More...

#include <PndBranchBurstBuilder.h>

Inheritance diagram for PndBranchBurstBuilder:
PndBranchBurstBuilder_eventBased PndBranchBurstBuilder_timeCut PndBranchBurstBuilder_timeCut_STB

Public Member Functions

 PndBranchBurstBuilder ()
 
virtual ~PndBranchBurstBuilder ()
 
virtual InitStatus Init ()
 
virtual void Exec (Option_t *opt)
 
virtual TClonesArray * GetBurstData (size_t inBranchNum)=0
 
void SetOutputPrefix (TString prefix)
 Set OutputBranchName prefix. Default one is "Burst". More...
 
void AddInputBranch (TString branchName)
 Set and add the branches for which you want to combine events. More...
 
void SetPersistence (Bool_t val)
 Set Persistance to kTRUE if you want to store the combined Events. otherwise they are just buffered for the direct use of other tasks in the same run. More...
 

Protected Member Functions

 ClassDef (PndBranchBurstBuilder, 0)
 

Protected Attributes

std::vector< TString > fInBranchNames
 
std::vector< TClonesArray * > fInArrays
 
std::vector< TClonesArray * > fOutArrays
 
TString fOutputPrefix
 
Bool_t fPersistence
 

Detailed Description

Basic Class for building bursts of events in the simulation.

For the different simulation types (event based, semi time based, time based) the appropriate classes must be derived the pure virtual function "GetBurstData" must be implemented.

Date
July 12, 2017
Author
Dominik Steinschaden

Definition at line 20 of file PndBranchBurstBuilder.h.

Constructor & Destructor Documentation

◆ PndBranchBurstBuilder()

PndBranchBurstBuilder::PndBranchBurstBuilder ( )

Default constructor

◆ ~PndBranchBurstBuilder()

virtual PndBranchBurstBuilder::~PndBranchBurstBuilder ( )
virtual

Destructor

Member Function Documentation

◆ AddInputBranch()

void PndBranchBurstBuilder::AddInputBranch ( TString  branchName)
inline

Set and add the branches for which you want to combine events.

Definition at line 40 of file PndBranchBurstBuilder.h.

References fInBranchNames.

40 { fInBranchNames.push_back(branchName); };
std::vector< TString > fInBranchNames

◆ ClassDef()

PndBranchBurstBuilder::ClassDef ( PndBranchBurstBuilder  ,
 
)
protected

◆ Exec()

virtual void PndBranchBurstBuilder::Exec ( Option_t *  opt)
virtual

Virtual method Exec

◆ GetBurstData()

virtual TClonesArray* PndBranchBurstBuilder::GetBurstData ( size_t  inBranchNum)
pure virtual

◆ Init()

virtual InitStatus PndBranchBurstBuilder::Init ( )
virtual

◆ SetOutputPrefix()

void PndBranchBurstBuilder::SetOutputPrefix ( TString  prefix)
inline

Set OutputBranchName prefix. Default one is "Burst".

Definition at line 37 of file PndBranchBurstBuilder.h.

References fOutputPrefix.

37 { fOutputPrefix = prefix; };

◆ SetPersistence()

void PndBranchBurstBuilder::SetPersistence ( Bool_t  val)
inline

Set Persistance to kTRUE if you want to store the combined Events. otherwise they are just buffered for the direct use of other tasks in the same run.

Definition at line 43 of file PndBranchBurstBuilder.h.

References fInBranchNames, and fPersistence.

43 { fPersistence = val; };

Member Data Documentation

◆ fInArrays

std::vector<TClonesArray *> PndBranchBurstBuilder::fInArrays
protected

Definition at line 47 of file PndBranchBurstBuilder.h.

◆ fInBranchNames

std::vector<TString> PndBranchBurstBuilder::fInBranchNames
protected

Definition at line 43 of file PndBranchBurstBuilder.h.

Referenced by AddInputBranch(), and SetPersistence().

◆ fOutArrays

std::vector<TClonesArray *> PndBranchBurstBuilder::fOutArrays
protected

Definition at line 48 of file PndBranchBurstBuilder.h.

◆ fOutputPrefix

TString PndBranchBurstBuilder::fOutputPrefix
protected

Definition at line 50 of file PndBranchBurstBuilder.h.

Referenced by SetOutputPrefix().

◆ fPersistence

Bool_t PndBranchBurstBuilder::fPersistence
protected

Definition at line 51 of file PndBranchBurstBuilder.h.

Referenced by SetPersistence().


The documentation for this class was generated from the following file: