PandaRoot
BSEmcSorterTask< T > Class Template Reference

templated version of a sorter task More...

#include <BSEmcSorterTask.h>

Inheritance diagram for BSEmcSorterTask< T >:

Public Member Functions

 BSEmcSorterTask ()
 
 BSEmcSorterTask (Int_t t_numberOfCells, Double_t t_widthOfCells, const std::string &t_inputbranch, const std::string &t_outputbranch)
 
virtual ~BSEmcSorterTask ()
 
virtual void AddNewDataToTClonesArray (FairTimeStamp *t_data)
 
virtual FairRingSorter * InitSorter (Int_t t_numberOfCells, Double_t t_widthOfCells) const
 
void SetSourceBranch (const TString &t_branchname)
 
void SetTargetBranch (const TString &t_branchname)
 
 ClassDef (BSEmcSorterTask, 1)
 

Detailed Description

template<class T>
class BSEmcSorterTask< T >

templated version of a sorter task

sort Ts by time for later timebunching

Author
Ben Salisbury salis.nosp@m.bury.nosp@m.@hisk.nosp@m.p.un.nosp@m.i-bon.nosp@m.n.de, HISKP Bonn
Date
2021-02

Definition at line 25 of file BSEmcSorterTask.h.

Constructor & Destructor Documentation

◆ BSEmcSorterTask() [1/2]

template<class T >
BSEmcSorterTask< T >::BSEmcSorterTask ( )
inline

Definition at line 27 of file BSEmcSorterTask.h.

27 {};

◆ BSEmcSorterTask() [2/2]

template<class T >
BSEmcSorterTask< T >::BSEmcSorterTask ( Int_t  t_numberOfCells,
Double_t  t_widthOfCells,
const std::string &  t_inputbranch,
const std::string &  t_outputbranch 
)
inline

Definition at line 28 of file BSEmcSorterTask.h.

29  : FairRingSorterTask(t_numberOfCells, t_widthOfCells, TString{t_inputbranch}, TString{t_outputbranch}, "Emc")
30  {
31  fVerbose = 3;
32  };

◆ ~BSEmcSorterTask()

template<class T >
virtual BSEmcSorterTask< T >::~BSEmcSorterTask ( )
inlinevirtual

Definition at line 34 of file BSEmcSorterTask.h.

34 {};

Member Function Documentation

◆ AddNewDataToTClonesArray()

template<class T >
virtual void BSEmcSorterTask< T >::AddNewDataToTClonesArray ( FairTimeStamp *  t_data)
inlinevirtual

Definition at line 36 of file BSEmcSorterTask.h.

37  {
38  FairRootManager *ioman = FairRootManager::Instance();
39  TClonesArray *myArray = ioman->GetTClonesArray(fOutputBranch);
40  if (fVerbose > 1) {
41  std::cout << "-I- BSEmcSorterTask::AddNewDataToTClonesArray Data: ";
42  std::cout << *(T *)(t_data) << std::endl;
43  }
44  new ((*myArray)[myArray->GetEntries()]) T(*(dynamic_cast<T *>(t_data)));
45  };

◆ ClassDef()

template<class T >
BSEmcSorterTask< T >::ClassDef ( BSEmcSorterTask< T >  ,
 
)

◆ InitSorter()

template<class T >
virtual FairRingSorter* BSEmcSorterTask< T >::InitSorter ( Int_t  t_numberOfCells,
Double_t  t_widthOfCells 
) const
inlinevirtual

Definition at line 46 of file BSEmcSorterTask.h.

46 { return new BSEmcRingSorter<T>(t_numberOfCells, t_widthOfCells); };
templated version of a ring sorter

◆ SetSourceBranch()

template<class T >
void BSEmcSorterTask< T >::SetSourceBranch ( const TString &  t_branchname)
inline

Definition at line 47 of file BSEmcSorterTask.h.

47 { this->fInputBranch = t_branchname; }

◆ SetTargetBranch()

template<class T >
void BSEmcSorterTask< T >::SetTargetBranch ( const TString &  t_branchname)
inline

Definition at line 48 of file BSEmcSorterTask.h.

References BSEmcSorterTask< T >::ClassDef().

48 { this->fOutputBranch = t_branchname; }

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