PandaRoot
PndSorterTask Class Referenceabstract

#include <PndSorterTask.h>

Inheritance diagram for PndSorterTask:

Public Member Functions

 PndSorterTask ()
 
 PndSorterTask (const char *name)
 
 PndSorterTask (Int_t numberOfCells, Double_t widthOfCells, TString inputBranch, TString outputBranch, TString folderName)
 
virtual ~PndSorterTask ()
 
virtual InitStatus Init ()
 
virtual InitStatus ReInit ()
 
virtual void Exec (Option_t *opt)
 
virtual void FinishEvent ()
 
virtual void FinishTask ()
 
virtual void SetParContainers ()
 
void SetPersistance (Bool_t p=kTRUE)
 
Bool_t GetPersistance ()
 
virtual void AddNewDataToTClonesArray (FairTimeStamp *data)=0
 
virtual PndRingSorterInitSorter (Int_t numberOfCells, Double_t widthOfCells)=0
 

Protected Member Functions

 ClassDef (PndSorterTask, 2)
 

Protected Attributes

PndRingSorterfSorter
 
Bool_t fPersistance
 
Bool_t fDigiPixelMCInfo
 
Int_t fNumberOfCells
 
Double_t fWidthOfCells
 
TString fInputBranch
 
TClonesArray * fInputArray
 
TString fOutputBranch
 
TString fFolder
 
TClonesArray * fOutputArray
 
Int_t fEntryNr
 

Detailed Description

Definition at line 17 of file PndSorterTask.h.

Constructor & Destructor Documentation

◆ PndSorterTask() [1/3]

PndSorterTask::PndSorterTask ( )
inline

Default constructor

Definition at line 20 of file PndSorterTask.h.

References SetPersistance().

20  : FairTask("SorterTask"), fNumberOfCells(1000), fWidthOfCells(10), fEntryNr(0)
21  {
22  SetVerbose(3);
24  }
Double_t fWidthOfCells
Definition: PndSorterTask.h:71
void SetPersistance(Bool_t p=kTRUE)
Definition: PndSorterTask.h:58
Int_t fNumberOfCells
Definition: PndSorterTask.h:70

◆ PndSorterTask() [2/3]

PndSorterTask::PndSorterTask ( const char *  name)
inline

Named constructor

Definition at line 27 of file PndSorterTask.h.

References SetPersistance().

27  : FairTask(name), fNumberOfCells(1000), fWidthOfCells(10), fEntryNr(0)
28  {
29  SetVerbose(3);
31  };
Double_t fWidthOfCells
Definition: PndSorterTask.h:71
void SetPersistance(Bool_t p=kTRUE)
Definition: PndSorterTask.h:58
Int_t fNumberOfCells
Definition: PndSorterTask.h:70

◆ PndSorterTask() [3/3]

PndSorterTask::PndSorterTask ( Int_t  numberOfCells,
Double_t  widthOfCells,
TString  inputBranch,
TString  outputBranch,
TString  folderName 
)
inline

Definition at line 33 of file PndSorterTask.h.

References SetPersistance().

34  : FairTask("Sorter"), fNumberOfCells(numberOfCells), fWidthOfCells(widthOfCells), fInputBranch(inputBranch), fOutputBranch(outputBranch), fFolder(folderName)
35  {
36  SetVerbose(3);
38  }
TString fFolder
Definition: PndSorterTask.h:79
TString fOutputBranch
Definition: PndSorterTask.h:78
Double_t fWidthOfCells
Definition: PndSorterTask.h:71
TString fInputBranch
Definition: PndSorterTask.h:74
void SetPersistance(Bool_t p=kTRUE)
Definition: PndSorterTask.h:58
Int_t fNumberOfCells
Definition: PndSorterTask.h:70

◆ ~PndSorterTask()

virtual PndSorterTask::~PndSorterTask ( )
inlinevirtual

Destructor

Definition at line 41 of file PndSorterTask.h.

References Exec(), FinishEvent(), FinishTask(), fSorter, Init(), and ReInit().

42  {
43  if (fSorter != nullptr)
44  delete fSorter;
45  }
PndRingSorter * fSorter
Definition: PndSorterTask.h:65

Member Function Documentation

◆ AddNewDataToTClonesArray()

virtual void PndSorterTask::AddNewDataToTClonesArray ( FairTimeStamp *  data)
pure virtual

Referenced by GetPersistance().

◆ ClassDef()

PndSorterTask::ClassDef ( PndSorterTask  ,
 
)
protected

◆ Exec()

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

Virtual method Exec

Referenced by ~PndSorterTask().

◆ FinishEvent()

virtual void PndSorterTask::FinishEvent ( )
virtual

Referenced by ~PndSorterTask().

◆ FinishTask()

virtual void PndSorterTask::FinishTask ( )
virtual

Referenced by ~PndSorterTask().

◆ GetPersistance()

Bool_t PndSorterTask::GetPersistance ( )
inline

Definition at line 59 of file PndSorterTask.h.

References AddNewDataToTClonesArray(), fPersistance, and InitSorter().

59 { return fPersistance; };
Bool_t fPersistance
Definition: PndSorterTask.h:67

◆ Init()

virtual InitStatus PndSorterTask::Init ( )
virtual

Virtual method Init

Referenced by ~PndSorterTask().

◆ InitSorter()

virtual PndRingSorter* PndSorterTask::InitSorter ( Int_t  numberOfCells,
Double_t  widthOfCells 
)
pure virtual

Referenced by GetPersistance().

◆ ReInit()

virtual InitStatus PndSorterTask::ReInit ( )
virtual

Referenced by ~PndSorterTask().

◆ SetParContainers()

virtual void PndSorterTask::SetParContainers ( )
inlinevirtual

Definition at line 56 of file PndSorterTask.h.

56 {};

◆ SetPersistance()

void PndSorterTask::SetPersistance ( Bool_t  p = kTRUE)
inline

Definition at line 58 of file PndSorterTask.h.

References fPersistance.

Referenced by PndSorterTask().

58 { fPersistance = p; };
Bool_t fPersistance
Definition: PndSorterTask.h:67

Member Data Documentation

◆ fDigiPixelMCInfo

Bool_t PndSorterTask::fDigiPixelMCInfo
protected

Definition at line 68 of file PndSorterTask.h.

◆ fEntryNr

Int_t PndSorterTask::fEntryNr
protected

Definition at line 82 of file PndSorterTask.h.

◆ fFolder

TString PndSorterTask::fFolder
protected

Definition at line 79 of file PndSorterTask.h.

◆ fInputArray

TClonesArray* PndSorterTask::fInputArray
protected

Definition at line 75 of file PndSorterTask.h.

◆ fInputBranch

TString PndSorterTask::fInputBranch
protected

Input array of PndSdsPixelDigis

Definition at line 74 of file PndSorterTask.h.

◆ fNumberOfCells

Int_t PndSorterTask::fNumberOfCells
protected

Definition at line 70 of file PndSorterTask.h.

◆ fOutputArray

TClonesArray* PndSorterTask::fOutputArray
protected

Definition at line 80 of file PndSorterTask.h.

◆ fOutputBranch

TString PndSorterTask::fOutputBranch
protected

Output array of sorted PndSdsDigis

Definition at line 78 of file PndSorterTask.h.

◆ fPersistance

Bool_t PndSorterTask::fPersistance
protected

Definition at line 67 of file PndSorterTask.h.

Referenced by GetPersistance(), and SetPersistance().

◆ fSorter

PndRingSorter* PndSorterTask::fSorter
protected

Definition at line 65 of file PndSorterTask.h.

Referenced by ~PndSorterTask().

◆ fWidthOfCells

Double_t PndSorterTask::fWidthOfCells
protected

Definition at line 71 of file PndSorterTask.h.


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