PandaRoot
PndPidCalorimeterInfo Class Referenceabstract

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

#include <PndPidCalorimeterInfo.h>

Inheritance diagram for PndPidCalorimeterInfo:
PndPidDetectorInfo PndBSPidCalorimeterInfo PndPidEmcInfo

Public Member Functions

 PndPidCalorimeterInfo ()
 Default constructor. More...
 
 ~PndPidCalorimeterInfo ()
 
virtual Int_t GetClusterCount ()
 Default destructor. More...
 
Bool_t SetParContainers (FairRuntimeDb *db)=0
 Set parameter containers. More...
 
void Reset ()=0
 
virtual Int_t SetDetectorHits (FairRootManager *manager)=0
 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)=0
 Include calorimeter information in neutral PndPidCandidate. More...
 
virtual Bool_t GetInfo (PndTrack *track, PndPidCandidate *pidCand)=0
 Add calorimeter information to PidCandidate. More...
 
 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...
 

Additional Inherited Members

- Protected Member Functions inherited from PndPidDetectorInfo
 ClassDef (PndPidDetectorInfo, 1)
 
- 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

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

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.1
Date
Jan 2021, update Sep 2021

Definition at line 34 of file PndPidCalorimeterInfo.h.

Constructor & Destructor Documentation

◆ PndPidCalorimeterInfo()

PndPidCalorimeterInfo::PndPidCalorimeterInfo ( )

Default constructor.

◆ ~PndPidCalorimeterInfo()

PndPidCalorimeterInfo::~PndPidCalorimeterInfo ( )
inline

Definition at line 37 of file PndPidCalorimeterInfo.h.

37 {};

Member Function Documentation

◆ ActivateDebugNtuple()

virtual void PndPidCalorimeterInfo::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 PndPidDetectorInfo.

Reimplemented in PndPidEmcInfo.

Referenced by GetClusterCount().

◆ ClassDef()

PndPidCalorimeterInfo::ClassDef ( PndPidCalorimeterInfo  ,
 
)

Referenced by GetClusterCount().

◆ GetClusterCount()

virtual Int_t PndPidCalorimeterInfo::GetClusterCount ( )
inlinevirtual

Default destructor.

Reimplemented in PndPidEmcInfo.

Definition at line 39 of file PndPidCalorimeterInfo.h.

References ActivateDebugNtuple(), ClassDef(), GetInfo(), GetNeutralInfo(), Reset(), SetDetectorHits(), SetParContainers(), and Setup().

39  {
40  LOG(warn) << "PndPidCalorimeterInfo::GetClusterCount: Function not implemented in base class.";
41  return 0;
42  };

◆ GetInfo()

virtual Bool_t PndPidCalorimeterInfo::GetInfo ( PndTrack track,
PndPidCandidate pidCand 
)
pure virtual

Add calorimeter 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 PndPidDetectorInfo.

Implemented in PndPidEmcInfo, and PndBSPidCalorimeterInfo.

Referenced by GetClusterCount().

◆ GetNeutralInfo()

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

Include calorimeter information in neutral PndPidCandidate.

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

Reimplemented from PndPidDetectorInfo.

Implemented in PndPidEmcInfo, and PndBSPidCalorimeterInfo.

Referenced by GetClusterCount().

◆ Reset()

void PndPidCalorimeterInfo::Reset ( )
pure virtual

Reimplemented from PndPidDetectorInfo.

Implemented in PndPidEmcInfo, and PndBSPidCalorimeterInfo.

Referenced by GetClusterCount().

◆ SetDetectorHits()

virtual Int_t PndPidCalorimeterInfo::SetDetectorHits ( FairRootManager *  manager)
pure virtual

Fill detector hit TCAs and adjust detector mode.

Returns
Adjusted detector mode.

Implements PndPidDetectorInfo.

Implemented in PndPidEmcInfo, and PndBSPidCalorimeterInfo.

Referenced by GetClusterCount().

◆ SetParContainers()

Bool_t PndPidCalorimeterInfo::SetParContainers ( FairRuntimeDb *  db)
pure virtual

Set parameter containers.

Parameters
dbRuntime data base.
Returns
kTRUE if successful.

Reimplemented from PndPidDetectorInfo.

Implemented in PndBSPidCalorimeterInfo, and PndPidEmcInfo.

Referenced by GetClusterCount().

◆ Setup()

Bool_t PndPidCalorimeterInfo::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 PndPidDetectorInfo.

Reimplemented in PndPidEmcInfo.

Referenced by GetClusterCount().


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