PandaRoot
PndPosCorrectorTask Class Reference

#include <PndPosCorrectorTask.h>

Inheritance diagram for PndPosCorrectorTask:

Public Member Functions

 PndPosCorrectorTask ()
 
 PndPosCorrectorTask (const char *name)
 
 PndPosCorrectorTask (TString inputBranch, TString outputBranch, TString folderName)
 
virtual ~PndPosCorrectorTask ()
 
virtual InitStatus Init ()
 
virtual InitStatus ReInit ()
 
virtual void Exec (Option_t *opt)
 
virtual void FinishEvent ()
 
virtual void FinishTask ()
 
void SetCorrectionValue (Int_t sensorId, Double_t xvalue, Double_t yvalue)
 
virtual void SetParContainers ()
 
void SetPersistance (Bool_t p=kTRUE)
 
Bool_t GetPersistance ()
 

Protected Member Functions

 PndPosCorrectorTask (const PndPosCorrectorTask &)
 
PndPosCorrectorTaskoperator= (const PndPosCorrectorTask &)
 
 ClassDef (PndPosCorrectorTask, 1)
 

Protected Attributes

Bool_t fPersistance
 
TString fInputBranch
 
TClonesArray * fInputArray
 
TString fOutputBranch
 
TString fFolder
 
TClonesArray * fOutputArray
 
Int_t fEntryNr
 
std::map< Int_t, std::pair< Double_t, Double_t > > fPosCorrectionMap
 

Detailed Description

Definition at line 26 of file PndPosCorrectorTask.h.

Constructor & Destructor Documentation

◆ PndPosCorrectorTask() [1/4]

PndPosCorrectorTask::PndPosCorrectorTask ( )
inline

Default constructor

Definition at line 29 of file PndPosCorrectorTask.h.

30  : FairTask("SorterTask"), fPersistance(kTRUE), fInputBranch("MVDHitsPixelCorrectedSorted_event"), fInputArray(nullptr), fOutputBranch("MVDHitsPixelPosCorrected"), fFolder(),
31  fOutputArray(nullptr), fEntryNr(0)
32  {
33  SetVerbose(2);
34  }
TClonesArray * fOutputArray
TClonesArray * fInputArray

◆ PndPosCorrectorTask() [2/4]

PndPosCorrectorTask::PndPosCorrectorTask ( const char *  name)
inline

Named constructor

Definition at line 37 of file PndPosCorrectorTask.h.

37  : FairTask(name), fPersistance(kTRUE), fInputBranch(), fInputArray(nullptr), fOutputBranch(), fFolder(), fOutputArray(nullptr), fEntryNr(0)
38  {
39  SetVerbose(2);
40  }
TClonesArray * fOutputArray
TClonesArray * fInputArray

◆ PndPosCorrectorTask() [3/4]

PndPosCorrectorTask::PndPosCorrectorTask ( TString  inputBranch,
TString  outputBranch,
TString  folderName 
)
inline

Definition at line 42 of file PndPosCorrectorTask.h.

43  : FairTask("Corrector"), fPersistance(kTRUE), fInputBranch(inputBranch), fInputArray(nullptr), fOutputBranch(outputBranch), fFolder(folderName), fOutputArray(nullptr),
44  fEntryNr(0)
45  {
46  SetVerbose(2);
47  }
TClonesArray * fOutputArray
TClonesArray * fInputArray

◆ ~PndPosCorrectorTask()

virtual PndPosCorrectorTask::~PndPosCorrectorTask ( )
inlinevirtual

Destructor

Definition at line 50 of file PndPosCorrectorTask.h.

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

50 {}

◆ PndPosCorrectorTask() [4/4]

PndPosCorrectorTask::PndPosCorrectorTask ( const PndPosCorrectorTask )
protected

Member Function Documentation

◆ ClassDef()

PndPosCorrectorTask::ClassDef ( PndPosCorrectorTask  ,
 
)
protected

◆ Exec()

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

Virtual method Exec

Referenced by ~PndPosCorrectorTask().

◆ FinishEvent()

virtual void PndPosCorrectorTask::FinishEvent ( )
virtual

Referenced by ~PndPosCorrectorTask().

◆ FinishTask()

virtual void PndPosCorrectorTask::FinishTask ( )
virtual

Referenced by ~PndPosCorrectorTask().

◆ GetPersistance()

Bool_t PndPosCorrectorTask::GetPersistance ( )
inline

Definition at line 66 of file PndPosCorrectorTask.h.

References fPersistance.

66 { return fPersistance; };

◆ Init()

virtual InitStatus PndPosCorrectorTask::Init ( )
virtual

Virtual method Init

Referenced by ~PndPosCorrectorTask().

◆ operator=()

PndPosCorrectorTask& PndPosCorrectorTask::operator= ( const PndPosCorrectorTask )
protected

◆ ReInit()

virtual InitStatus PndPosCorrectorTask::ReInit ( )
virtual

Referenced by ~PndPosCorrectorTask().

◆ SetCorrectionValue()

void PndPosCorrectorTask::SetCorrectionValue ( Int_t  sensorId,
Double_t  xvalue,
Double_t  yvalue 
)
inline

Definition at line 61 of file PndPosCorrectorTask.h.

References fPosCorrectionMap.

61 { fPosCorrectionMap[sensorId] = std::make_pair(xvalue, yvalue); }
std::map< Int_t, std::pair< Double_t, Double_t > > fPosCorrectionMap

◆ SetParContainers()

virtual void PndPosCorrectorTask::SetParContainers ( )
inlinevirtual

Definition at line 63 of file PndPosCorrectorTask.h.

63 {};

◆ SetPersistance()

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

Definition at line 65 of file PndPosCorrectorTask.h.

References fPersistance.

65 { fPersistance = p; };

Member Data Documentation

◆ fEntryNr

Int_t PndPosCorrectorTask::fEntryNr
protected

Definition at line 78 of file PndPosCorrectorTask.h.

◆ fFolder

TString PndPosCorrectorTask::fFolder
protected

Definition at line 76 of file PndPosCorrectorTask.h.

◆ fInputArray

TClonesArray* PndPosCorrectorTask::fInputArray
protected

Definition at line 73 of file PndPosCorrectorTask.h.

◆ fInputBranch

TString PndPosCorrectorTask::fInputBranch
protected

Input array of PndSdsPixelDigis

Definition at line 72 of file PndPosCorrectorTask.h.

◆ fOutputArray

TClonesArray* PndPosCorrectorTask::fOutputArray
protected

Definition at line 77 of file PndPosCorrectorTask.h.

◆ fOutputBranch

TString PndPosCorrectorTask::fOutputBranch
protected

Output array of sorted PndSdsDigis

Definition at line 75 of file PndPosCorrectorTask.h.

◆ fPersistance

Bool_t PndPosCorrectorTask::fPersistance
protected

switch to turn on/off storing the arrays to a file

Definition at line 66 of file PndPosCorrectorTask.h.

Referenced by GetPersistance(), and SetPersistance().

◆ fPosCorrectionMap

std::map<Int_t, std::pair<Double_t, Double_t> > PndPosCorrectorTask::fPosCorrectionMap
protected

Definition at line 79 of file PndPosCorrectorTask.h.

Referenced by SetCorrectionValue().


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