PandaRoot
BSEmcPlotProcess Class Referenceabstract

Base Processclass for plotting. More...

#include <BSEmcPlotProcess.h>

Inheritance diagram for BSEmcPlotProcess:
PndProcess< BSEmcPlotData > BSEmcPlotAllRecoHits BSEmcPlotBarrelFwEndcapOverlap BSEmcPlotCluster BSEmcPlotDigis BSEmcPlotMCHits BSEmcPlotMCPoints BSEmcPlotMultiHitCluster BSEmcPlotRecoHits BSEmcPlotRecoHitVsMC BSEmcPlotSubCluster BSEmcPlotWaveforms

Public Member Functions

 BSEmcPlotProcess ()
 
 BSEmcPlotProcess (const std::string &t_processname)
 
virtual ~BSEmcPlotProcess ()
 
virtual void SetDetectorName (const std::string &t_detectorName)
 Set the Detector name. Important, as most EmcParameter need to know for which detector they need to be fetched (each Emc Subdetector has its own set of parameters) More...
 
virtual void SetData (BSEmcPlotData *t_data)
 Pass the data container ptrs to the process, and store pointers in class members. More...
 
virtual void SetupParameters (const PndParameterRegister *t_parameterRegister)
 Fetch all parameters from the PndParameterRegister. More...
 
void SetFolderPrefix (TString t_prefix)
 
virtual void InitHistos (const TString &t_folderprefix)=0
 
virtual void Process ()=0
 The actual data transformation (digitizing, clustering, etc.) should be defined here. More...
 
- Public Member Functions inherited from PndProcess< BSEmcPlotData >
 PndProcess ()
 
 PndProcess (const std::string &t_processname)
 
virtual ~PndProcess ()
 
const std::vector< std::string > & GetListOfRequiredParameters () const
 Get the List Of Required Parameters. More...
 
virtual void PreProcess ()
 PreProcess() is called before the actual Process() call in each event. More...
 
virtual void PostProcess ()
 Immediately after calling Process() PostProcess() is called for cleanup of internal process data, or if not needed, to end the time and memory increase measurement started by PreProcess() More...
 
virtual void TearDown ()
 Last actions at the end of the run. More...
 

Protected Member Functions

Double_t GetPhiOfInDeg (const TVector3 &t_pos) const
 
Double_t GetThetaOfInDeg (const TVector3 &t_pos) const
 

Protected Attributes

std::string fPositionParName
 
std::string fNeighbouringRelationParName
 
PndContainerI< PndMCTrack > * fMCTrackArray {nullptr}
 
PndContainerI< BSEmcMCPoint > * fMCPointArray {nullptr}
 
PndContainerI< BSEmcMCHit > * fMCHitArray {nullptr}
 
PndContainerI< BSEmcMultiWaveform > * fWaveformArray {nullptr}
 
PndContainerI< BSEmcDigi > * fDigiArray {nullptr}
 
PndContainerI< BSEmcCluster > * fClusterArray {nullptr}
 
PndContainerI< BSEmcSubCluster > * fSubClusterArray {nullptr}
 
PndContainerI< BSEmcRecoHit > * fRecoHitArray {nullptr}
 
BSEmcGeoNeighbouringRelationParfNeighbouringRelationPar {nullptr}
 
BSEmcCrystalPositionParfPositionPar {nullptr}
 
BSEmcHistogrammerfHistogrammer {nullptr}
 
TString fFolderprefix {""}
 
- Protected Attributes inherited from PndProcess< BSEmcPlotData >
std::vector< std::string > fParameterList
 Parameter names required by this PndProcess. Needs to be populated in derived class. More...
 
std::string fDetectorName
 Set Detector name this PndProcess transforms data for. Required for example by EMC Processes to fetch right parameters. More...
 
std::string fProcessName
 Name of current PndProcess (for debugging) More...
 
TStopwatch fTimer
 Timer to monitor Process() time. More...
 
Double_t fTotalTime
 Time taken by this Process' Process() More...
 
ProcInfo_t fProcInfo
 Helper to access cpu process Memory Info. More...
 
Long_t fLastMemSize
 

Detailed Description

Base Processclass for plotting.

Fetches and sets pointers to Emc-Detector Data Containers and fetches often used Emc Parameters

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 47 of file BSEmcPlotProcess.h.

Constructor & Destructor Documentation

◆ BSEmcPlotProcess() [1/2]

BSEmcPlotProcess::BSEmcPlotProcess ( )

◆ BSEmcPlotProcess() [2/2]

BSEmcPlotProcess::BSEmcPlotProcess ( const std::string &  t_processname)

◆ ~BSEmcPlotProcess()

virtual BSEmcPlotProcess::~BSEmcPlotProcess ( )
virtual

Member Function Documentation

◆ GetPhiOfInDeg()

Double_t BSEmcPlotProcess::GetPhiOfInDeg ( const TVector3 &  t_pos) const
protected

Referenced by SetFolderPrefix().

◆ GetThetaOfInDeg()

Double_t BSEmcPlotProcess::GetThetaOfInDeg ( const TVector3 &  t_pos) const
protected

Referenced by SetFolderPrefix().

◆ InitHistos()

◆ Process()

virtual void BSEmcPlotProcess::Process ( )
pure virtual

◆ SetData()

virtual void BSEmcPlotProcess::SetData ( BSEmcPlotData t_data)
virtual

Pass the data container ptrs to the process, and store pointers in class members.

Parameters
t_data

Implements PndProcess< BSEmcPlotData >.

◆ SetDetectorName()

virtual void BSEmcPlotProcess::SetDetectorName ( const std::string &  t_detectorname)
virtual

Set the Detector name. Important, as most EmcParameter need to know for which detector they need to be fetched (each Emc Subdetector has its own set of parameters)

Parameters
t_detectorname

Reimplemented from PndProcess< BSEmcPlotData >.

◆ SetFolderPrefix()

void BSEmcPlotProcess::SetFolderPrefix ( TString  t_prefix)
inline

Definition at line 56 of file BSEmcPlotProcess.h.

References fFolderprefix, GetPhiOfInDeg(), GetThetaOfInDeg(), InitHistos(), and Process().

56 { fFolderprefix = t_prefix; }

◆ SetupParameters()

virtual void BSEmcPlotProcess::SetupParameters ( const PndParameterRegister t_parameter)
virtual

Fetch all parameters from the PndParameterRegister.

Parameters
t_parameter

Implements PndProcess< BSEmcPlotData >.

Member Data Documentation

◆ fClusterArray

PndContainerI<BSEmcCluster>* BSEmcPlotProcess::fClusterArray {nullptr}
protected

Definition at line 71 of file BSEmcPlotProcess.h.

◆ fDigiArray

PndContainerI<BSEmcDigi>* BSEmcPlotProcess::fDigiArray {nullptr}
protected

Definition at line 70 of file BSEmcPlotProcess.h.

◆ fFolderprefix

TString BSEmcPlotProcess::fFolderprefix {""}
protected

Definition at line 78 of file BSEmcPlotProcess.h.

Referenced by SetFolderPrefix().

◆ fHistogrammer

BSEmcHistogrammer* BSEmcPlotProcess::fHistogrammer {nullptr}
protected

Definition at line 77 of file BSEmcPlotProcess.h.

◆ fMCHitArray

PndContainerI<BSEmcMCHit>* BSEmcPlotProcess::fMCHitArray {nullptr}
protected

Definition at line 68 of file BSEmcPlotProcess.h.

◆ fMCPointArray

PndContainerI<BSEmcMCPoint>* BSEmcPlotProcess::fMCPointArray {nullptr}
protected

Definition at line 67 of file BSEmcPlotProcess.h.

◆ fMCTrackArray

PndContainerI<PndMCTrack>* BSEmcPlotProcess::fMCTrackArray {nullptr}
protected

Definition at line 66 of file BSEmcPlotProcess.h.

◆ fNeighbouringRelationPar

BSEmcGeoNeighbouringRelationPar* BSEmcPlotProcess::fNeighbouringRelationPar {nullptr}
protected

Definition at line 75 of file BSEmcPlotProcess.h.

◆ fNeighbouringRelationParName

std::string BSEmcPlotProcess::fNeighbouringRelationParName
protected

Definition at line 65 of file BSEmcPlotProcess.h.

◆ fPositionPar

BSEmcCrystalPositionPar* BSEmcPlotProcess::fPositionPar {nullptr}
protected

Definition at line 76 of file BSEmcPlotProcess.h.

◆ fPositionParName

std::string BSEmcPlotProcess::fPositionParName
protected

Definition at line 64 of file BSEmcPlotProcess.h.

◆ fRecoHitArray

PndContainerI<BSEmcRecoHit>* BSEmcPlotProcess::fRecoHitArray {nullptr}
protected

Definition at line 73 of file BSEmcPlotProcess.h.

◆ fSubClusterArray

PndContainerI<BSEmcSubCluster>* BSEmcPlotProcess::fSubClusterArray {nullptr}
protected

Definition at line 72 of file BSEmcPlotProcess.h.

◆ fWaveformArray

PndContainerI<BSEmcMultiWaveform>* BSEmcPlotProcess::fWaveformArray {nullptr}
protected

Definition at line 69 of file BSEmcPlotProcess.h.


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