PandaRoot
PndPidEmcInfo Class Reference

Class for accessing PID detector information of calorimeter system (EMC, FSC). More...

#include <PndPidEmcInfo.h>

Inheritance diagram for PndPidEmcInfo:
PndPidCalorimeterInfo PndPidDetectorInfo

Public Member Functions

 PndPidEmcInfo ()
 Default constructor. More...
 
 ~PndPidEmcInfo ()
 
virtual Int_t GetClusterCount ()
 Default destructor. More...
 
Bool_t SetCalibrator ()
 Set cluster calibrator. More...
 
Bool_t SetGeoPar (FairRuntimeDb *db)
 Set geometry parameters. More...
 
Bool_t SetErrorMatrixPar (FairRuntimeDb *db)
 Set error matrix parameters. More...
 
Bool_t SetParContainers (FairRuntimeDb *db)
 Set geometry and error matrix parameters. More...
 
void Reset ()
 Reset fClusterList and fClusterQ. More...
 
void ResetEmcQ ()
 Reset all the quality values for track correlation to -1. More...
 
void SetupErrorMatrix ()
 Init fEmcErrorMatrix. More...
 
virtual Int_t SetDetectorHits (FairRootManager *manager)
 Fill detector hit TCAs and adjust detector mode. More...
 
Bool_t Setup (FairRootManager *manager, PndPropagator *propagator, PndPidDetectorParams::DetectorParams *params)
 Setup calorimeter info. More...
 
virtual void ActivateDebugNtuple (Bool_t debug_mode)
 Set debug mode of detector. More...
 
void GetNeutralInfo (Int_t nbr_tracks, TClonesArray *neutralArray)
 Include calorimeter information in neutral PndPidCandidate. More...
 
virtual Bool_t GetInfo (PndTrack *track, PndPidCandidate *pidCand)
 Add EMC information to PidCandidate. More...
 
- Public Member Functions inherited from PndPidCalorimeterInfo
 PndPidCalorimeterInfo ()
 Default constructor. More...
 
 ~PndPidCalorimeterInfo ()
 
 ClassDef (PndPidCalorimeterInfo, 2)
 
- Public Member Functions inherited from PndPidDetectorInfo
 PndPidDetectorInfo ()
 Default constructor. More...
 
virtual ~PndPidDetectorInfo ()
 
void SetDetectorMode (Short_t detector_mode)
 
void SetUsePropagator (Bool_t use_propagator)
 
void SetPropagator (PndPropagator *propagator)
 
void SetIdeal (Bool_t is_ideal)
 
void SetPidHypo (Int_t pid_hyp)
 
void SetVerbose (Int_t verbose)
 
void SetCorrPar (PndPidCorrPar *pid_corr_par)
 
TNtuple * GetDetCorr ()
 
Int_t GetDetectorMode ()
 
void Finish ()
 
virtual void Register ()
 
virtual Bool_t Propagate (TVector3 pos, FairTrackParH *helix, FairTrackParH *res, Int_t pdg_code, Int_t direction=1)
 Call propagator to propagate track to detector. More...
 
virtual Bool_t Propagate (std::string volume, FairTrackParH *helix, FairTrackParH *res, Int_t pdg_code)
 Call propagator to propagate track to detector. More...
 

Protected Member Functions

 ClassDef (PndPidEmcInfo, 1)
 
- Protected Member Functions inherited from PndPidDetectorInfo
 ClassDef (PndPidDetectorInfo, 1)
 

Protected Attributes

TClonesArray * fEmcCluster = nullptr
 Emc cluster TCA. More...
 
TClonesArray * fEmcBump = nullptr
 Emc bump TCA. More...
 
TClonesArray * fEmcDigi = nullptr
 Emc digi TCA. More...
 
PndEmcGeoParfEmcGeoPar = new PndEmcGeoPar()
 Emc geometry version. More...
 
PndEmcErrorMatrixParfEmcErrorMatrixPar = new PndEmcErrorMatrixPar()
 Emc error matrix parameters. More...
 
std::unique_ptr< PndEmcErrorMatrixfEmcErrorMatrix {new PndEmcErrorMatrix()}
 Calculate error matrix for emc cluster. More...
 
std::map< Int_t, Bool_t > fClusterList
 List of clusters for track correlation. More...
 
std::map< Int_t, Double_t > fClusterQ
 List of emc quality correlated to clusters. More...
 
std::unique_ptr< PndEmcAbsClusterCalibratorfEmcCalibrator {nullptr}
 Emc cluster calibrator. More...
 
- Protected Attributes inherited from PndPidDetectorInfo
Short_t fDetMode = -1
 Detector Mode. More...
 
Bool_t fUsePropagator = kFALSE
 kTRUE to use propagator like PndGeanePro. More...
 
PndPropagatorfPropagator = nullptr
 
Bool_t fIdeal = kFALSE
 Use MC information for ideal correlation. More...
 
Bool_t fDebugMode = kTRUE
 kTRUE to fill debug ntuples More...
 
Int_t fPidHyp = 0
 Particle Id hypothesis (pdg particle code) More...
 
Int_t fVerbose = 0
 Verbosity level. More...
 
Float_t fGLength = -1000
 
PndPidDetectorParams::DetectorParamsfDetectorParams = nullptr
 
TNtuple * fDetCorr = nullptr
 Debug ntuple. More...
 
PndPidCorrParfCorrPar = new PndPidCorrPar()
 Correlation parameters. More...
 

Detailed Description

Class for accessing PID detector information of calorimeter system (EMC, FSC).

This class includes attributes and functions that are shared by EMC and FSC. THIS REPRESENTS THE ORIGINAL VERSION OF THE EMC AND IS TO BE UPDATED BY BEN SALISBURY (BONN).

Author
Sarah Gaiser gaise.nosp@m.r@hi.nosp@m.skp.u.nosp@m.ni-b.nosp@m.onn.d.nosp@m.e, HISKP Bonn
Version
1.0
Date
Sep 2021

Definition at line 37 of file PndPidEmcInfo.h.

Constructor & Destructor Documentation

◆ PndPidEmcInfo()

PndPidEmcInfo::PndPidEmcInfo ( )

Default constructor.

◆ ~PndPidEmcInfo()

PndPidEmcInfo::~PndPidEmcInfo ( )
inline

Definition at line 40 of file PndPidEmcInfo.h.

40 {};

Member Function Documentation

◆ ActivateDebugNtuple()

virtual void PndPidEmcInfo::ActivateDebugNtuple ( Bool_t  debug_mode)
virtual

Set debug mode of detector.

Includes the setup of debug ntuples.

Parameters
debug_modeIf kTRUE create and fill debug ntuples.

Reimplemented from PndPidCalorimeterInfo.

Referenced by GetClusterCount().

◆ ClassDef()

PndPidEmcInfo::ClassDef ( PndPidEmcInfo  ,
 
)
protected

◆ GetClusterCount()

virtual Int_t PndPidEmcInfo::GetClusterCount ( )
inlinevirtual

Default destructor.

Reimplemented from PndPidCalorimeterInfo.

Definition at line 42 of file PndPidEmcInfo.h.

References ActivateDebugNtuple(), fEmcCluster, GetInfo(), GetNeutralInfo(), Reset(), ResetEmcQ(), SetCalibrator(), SetDetectorHits(), SetErrorMatrixPar(), SetGeoPar(), SetParContainers(), Setup(), and SetupErrorMatrix().

42 { return fEmcCluster->GetEntriesFast(); };
TClonesArray * fEmcCluster
Emc cluster TCA.

◆ GetInfo()

virtual Bool_t PndPidEmcInfo::GetInfo ( PndTrack track,
PndPidCandidate pidCand 
)
virtual

Add EMC information to PidCandidate.

Correlate given track and detector hit.

Parameters
trackOne of the detected tracks in current event.
pidCandPidCandidate belonging to track.
Returns
kTRUE if correlation successful.

Implements PndPidCalorimeterInfo.

Referenced by GetClusterCount().

◆ GetNeutralInfo()

void PndPidEmcInfo::GetNeutralInfo ( Int_t  nbr_tracks,
TClonesArray *  neutralArray 
)
virtual

Include calorimeter information in neutral PndPidCandidate.

Parameters
nbr_tracksNumber of tracks in event.
neutralArrayTClonesArray of neutral PndPidCandidates.

Implements PndPidCalorimeterInfo.

Referenced by GetClusterCount().

◆ Reset()

void PndPidEmcInfo::Reset ( )
virtual

Reset fClusterList and fClusterQ.

Implements PndPidCalorimeterInfo.

Referenced by GetClusterCount().

◆ ResetEmcQ()

void PndPidEmcInfo::ResetEmcQ ( )

Reset all the quality values for track correlation to -1.

Referenced by GetClusterCount().

◆ SetCalibrator()

Bool_t PndPidEmcInfo::SetCalibrator ( )

Set cluster calibrator.

Returns
kTRUE if successful.

Referenced by GetClusterCount().

◆ SetDetectorHits()

virtual Int_t PndPidEmcInfo::SetDetectorHits ( FairRootManager *  manager)
virtual

Fill detector hit TCAs and adjust detector mode.

Parameters
managerNeeded to get EmcCluster, EmcBump and EmcDigi TCAs of event.
Returns
Adjusted detector mode.

Implements PndPidCalorimeterInfo.

Referenced by GetClusterCount().

◆ SetErrorMatrixPar()

Bool_t PndPidEmcInfo::SetErrorMatrixPar ( FairRuntimeDb *  db)

Set error matrix parameters.

Parameters
dbRuntime data base.
Returns
kTRUE if successful.

Referenced by GetClusterCount().

◆ SetGeoPar()

Bool_t PndPidEmcInfo::SetGeoPar ( FairRuntimeDb *  db)

Set geometry parameters.

Parameters
dbRuntime data base.
Returns
kTRUE if successful.

Referenced by GetClusterCount().

◆ SetParContainers()

Bool_t PndPidEmcInfo::SetParContainers ( FairRuntimeDb *  db)
virtual

Set geometry and error matrix parameters.

Parameters
dbRuntime data base.
Returns
kTRUE if successful.

Implements PndPidCalorimeterInfo.

Referenced by GetClusterCount().

◆ Setup()

Bool_t PndPidEmcInfo::Setup ( FairRootManager *  manager,
PndPropagator propagator,
PndPidDetectorParams::DetectorParams params 
)
virtual

Setup calorimeter info.

Parameters
managerNeeded to get all relevant TCAs of event.
propagatorPropagator to be used in track-hit correlation.
paramsSet of detector and track parameters that is passed from PndPidCorrelator.
Returns
kTRUE if successful.

Reimplemented from PndPidCalorimeterInfo.

Referenced by GetClusterCount().

◆ SetupErrorMatrix()

void PndPidEmcInfo::SetupErrorMatrix ( )

Init fEmcErrorMatrix.

Referenced by GetClusterCount().

Member Data Documentation

◆ fClusterList

std::map<Int_t, Bool_t> PndPidEmcInfo::fClusterList
protected

List of clusters for track correlation.

Definition at line 134 of file PndPidEmcInfo.h.

◆ fClusterQ

std::map<Int_t, Double_t> PndPidEmcInfo::fClusterQ
protected

List of emc quality correlated to clusters.

Definition at line 135 of file PndPidEmcInfo.h.

◆ fEmcBump

TClonesArray* PndPidEmcInfo::fEmcBump = nullptr
protected

Emc bump TCA.

Definition at line 127 of file PndPidEmcInfo.h.

◆ fEmcCalibrator

std::unique_ptr<PndEmcAbsClusterCalibrator> PndPidEmcInfo::fEmcCalibrator {nullptr}
protected

Emc cluster calibrator.

Definition at line 136 of file PndPidEmcInfo.h.

◆ fEmcCluster

TClonesArray* PndPidEmcInfo::fEmcCluster = nullptr
protected

Emc cluster TCA.

Definition at line 126 of file PndPidEmcInfo.h.

Referenced by GetClusterCount().

◆ fEmcDigi

TClonesArray* PndPidEmcInfo::fEmcDigi = nullptr
protected

Emc digi TCA.

Definition at line 128 of file PndPidEmcInfo.h.

◆ fEmcErrorMatrix

std::unique_ptr<PndEmcErrorMatrix> PndPidEmcInfo::fEmcErrorMatrix {new PndEmcErrorMatrix()}
protected

Calculate error matrix for emc cluster.

Definition at line 132 of file PndPidEmcInfo.h.

◆ fEmcErrorMatrixPar

PndEmcErrorMatrixPar* PndPidEmcInfo::fEmcErrorMatrixPar = new PndEmcErrorMatrixPar()
protected

Emc error matrix parameters.

Definition at line 131 of file PndPidEmcInfo.h.

◆ fEmcGeoPar

PndEmcGeoPar* PndPidEmcInfo::fEmcGeoPar = new PndEmcGeoPar()
protected

Emc geometry version.

Definition at line 130 of file PndPidEmcInfo.h.


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