PandaRoot
PndPidMuonSystemInfo Class Reference

Base class for accessing PID detector information of muon system (MDT, FMDT). More...

#include <PndPidMuonSystemInfo.h>

Inheritance diagram for PndPidMuonSystemInfo:
PndPidDetectorInfo PndPidFmdtInfo PndPidMdtInfo

Public Member Functions

 PndPidMuonSystemInfo ()
 Default constructor. More...
 
 ~PndPidMuonSystemInfo ()
 Default destructor. More...
 
void Register ()
 
void ResetMdtTrack ()
 
void RegisterMdtTrack ()
 
Int_t SetDetectorHits (FairRootManager *manager)
 Fill detector hit TCAs and adjust detector mode. More...
 
Bool_t SetMdtRefit (Bool_t mdt_refit)
 Set fMdtRefit and perform refit. More...
 
Bool_t Setup (FairRootManager *manager, PndPropagator *propagator, PndPidDetectorParams::DetectorParams *params)
 Setup muon system info. More...
 
void Reset ()
 Clear MDT hit maps, call ResetMdtTrack() and refill hit maps calling MdtMapping(). More...
 
PndTrackAddMdtTrack (PndTrack *track)
 Creates a new hit in the fMdtTrack TCA. More...
 
Bool_t MdtMapping ()
 Fill fMapMdtBarrel, fMapMdtEndcap and fMapMdtForward. More...
 
Bool_t MdtGeometry ()
 Fill fMdtLayerPos and fMdtIronThickness. More...
 
- Public Member Functions inherited from PndPidDetectorInfo
 PndPidDetectorInfo ()
 Default constructor. More...
 
virtual ~PndPidDetectorInfo ()
 
virtual Bool_t GetInfo (PndTrack *track, PndPidCandidate *pidCand)=0
 Include detector information in charged PidCandidate. More...
 
virtual void GetNeutralInfo (Int_t, TClonesArray *)
 Include detector information in neutral PidCandidate. More...
 
virtual void ActivateDebugNtuple (Bool_t debug_mode)
 Set debug mode of detector. More...
 
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)
 
virtual Bool_t SetParContainers (FairRuntimeDb *)
 
TNtuple * GetDetCorr ()
 
Int_t GetDetectorMode ()
 
void Finish ()
 
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 (PndPidMuonSystemInfo, 1)
 
- Protected Member Functions inherited from PndPidDetectorInfo
 ClassDef (PndPidDetectorInfo, 1)
 

Protected Attributes

TClonesArray * fMdtHit = nullptr
 Mdt hit TCA. More...
 
TClonesArray * fMdtPoint = nullptr
 Mdt point TCA. More...
 
TClonesArray * fMdtTrk = nullptr
 Mdt trk TCA. More...
 
TClonesArray * fMdtTrack = nullptr
 Mdt track TCA. More...
 
Bool_t fMdtRefit
 kTRUE if refit Mdt track. More...
 
std::unique_ptr< PndRecoKalmanFitfFitter {nullptr}
 Fitter for refit of Mdt track. More...
 
Float_t fMdtLayerPos [3][20]
 position of MDT layers More...
 
Float_t fMdtIronThickness [3][20]
 thickness of iron layers More...
 
std::map< Int_t, std::vector< Int_t > > fMapMdtBarrel
 map of MDT barrel hits -> not used at the moment More...
 
std::map< Int_t, std::vector< Int_t > > fMapMdtEndcap
 map of MDT endcap+muon filter hits -> not used at the moment More...
 
std::map< Int_t, std::vector< Int_t > > fMapMdtForward
 map of MDT forward hits -> used for Fmdt 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

Base class for accessing PID detector information of muon system (MDT, FMDT).

This class includes attributes and functions that are shared by MDT and FMDT.

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
Jan 2021

Definition at line 27 of file PndPidMuonSystemInfo.h.

Constructor & Destructor Documentation

◆ PndPidMuonSystemInfo()

PndPidMuonSystemInfo::PndPidMuonSystemInfo ( )

Default constructor.

◆ ~PndPidMuonSystemInfo()

PndPidMuonSystemInfo::~PndPidMuonSystemInfo ( )

Default destructor.

Member Function Documentation

◆ AddMdtTrack()

PndTrack* PndPidMuonSystemInfo::AddMdtTrack ( PndTrack track)

Creates a new hit in the fMdtTrack TCA.

Parameters
trackTrack to be added.
Returns
TCA including track.

Referenced by RegisterMdtTrack().

◆ ClassDef()

PndPidMuonSystemInfo::ClassDef ( PndPidMuonSystemInfo  ,
 
)
protected

◆ MdtGeometry()

Bool_t PndPidMuonSystemInfo::MdtGeometry ( )

Fill fMdtLayerPos and fMdtIronThickness.

Returns
kTRUE if successful.

Referenced by RegisterMdtTrack().

◆ MdtMapping()

Bool_t PndPidMuonSystemInfo::MdtMapping ( )

Fill fMapMdtBarrel, fMapMdtEndcap and fMapMdtForward.

Returns
kTRUE if successful.

Referenced by RegisterMdtTrack().

◆ Register()

void PndPidMuonSystemInfo::Register ( )
inlinevirtual

Reimplemented from PndPidDetectorInfo.

Definition at line 32 of file PndPidMuonSystemInfo.h.

References fMdtRefit, and RegisterMdtTrack().

33  {
35  };
Bool_t fMdtRefit
kTRUE if refit Mdt track.

◆ RegisterMdtTrack()

void PndPidMuonSystemInfo::RegisterMdtTrack ( )
inline

Definition at line 40 of file PndPidMuonSystemInfo.h.

References AddMdtTrack(), fMdtTrack, MdtGeometry(), MdtMapping(), Reset(), SetDetectorHits(), SetMdtRefit(), and Setup().

Referenced by Register().

41  {
42  FairRootManager::Instance()->Register("MdtTrack", "Pid", fMdtTrack, kTRUE);
43  LOG(INFO) << "PndPidCorrelator::Register(): "
44  << "registered branch "
45  << "MdtTrack";
46  };
TClonesArray * fMdtTrack
Mdt track TCA.

◆ Reset()

void PndPidMuonSystemInfo::Reset ( )
virtual

Clear MDT hit maps, call ResetMdtTrack() and refill hit maps calling MdtMapping().

Reimplemented from PndPidDetectorInfo.

Referenced by RegisterMdtTrack().

◆ ResetMdtTrack()

void PndPidMuonSystemInfo::ResetMdtTrack ( )
inline

Definition at line 36 of file PndPidMuonSystemInfo.h.

References fMdtRefit, and fMdtTrack.

37  {
38  if (fMdtRefit) fMdtTrack->Delete();
39  };
Bool_t fMdtRefit
kTRUE if refit Mdt track.
TClonesArray * fMdtTrack
Mdt track TCA.

◆ SetDetectorHits()

Int_t PndPidMuonSystemInfo::SetDetectorHits ( FairRootManager *  manager)
virtual

Fill detector hit TCAs and adjust detector mode.

Parameters
managerNeeded to get FtofHit and FtofPoint TCAs of event.
Returns
Adjusted detector mode.

Implements PndPidDetectorInfo.

Referenced by RegisterMdtTrack().

◆ SetMdtRefit()

Bool_t PndPidMuonSystemInfo::SetMdtRefit ( Bool_t  mdt_refit)

Set fMdtRefit and perform refit.

Parameters
mdt_refitPerform refit if kTRUE.
Returns
kTRUE if successful.

Referenced by RegisterMdtTrack().

◆ Setup()

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

Setup muon system 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.

Referenced by RegisterMdtTrack().

Member Data Documentation

◆ fFitter

std::unique_ptr<PndRecoKalmanFit> PndPidMuonSystemInfo::fFitter {nullptr}
protected

Fitter for refit of Mdt track.

Definition at line 103 of file PndPidMuonSystemInfo.h.

◆ fMapMdtBarrel

std::map<Int_t, std::vector<Int_t> > PndPidMuonSystemInfo::fMapMdtBarrel
protected

map of MDT barrel hits -> not used at the moment

Definition at line 106 of file PndPidMuonSystemInfo.h.

◆ fMapMdtEndcap

std::map<Int_t, std::vector<Int_t> > PndPidMuonSystemInfo::fMapMdtEndcap
protected

map of MDT endcap+muon filter hits -> not used at the moment

Definition at line 107 of file PndPidMuonSystemInfo.h.

◆ fMapMdtForward

std::map<Int_t, std::vector<Int_t> > PndPidMuonSystemInfo::fMapMdtForward
protected

map of MDT forward hits -> used for Fmdt

Definition at line 108 of file PndPidMuonSystemInfo.h.

◆ fMdtHit

TClonesArray* PndPidMuonSystemInfo::fMdtHit = nullptr
protected

Mdt hit TCA.

Definition at line 97 of file PndPidMuonSystemInfo.h.

◆ fMdtIronThickness

Float_t PndPidMuonSystemInfo::fMdtIronThickness[3][20]
protected

thickness of iron layers

Definition at line 105 of file PndPidMuonSystemInfo.h.

◆ fMdtLayerPos

Float_t PndPidMuonSystemInfo::fMdtLayerPos[3][20]
protected

position of MDT layers

Definition at line 104 of file PndPidMuonSystemInfo.h.

◆ fMdtPoint

TClonesArray* PndPidMuonSystemInfo::fMdtPoint = nullptr
protected

Mdt point TCA.

Definition at line 98 of file PndPidMuonSystemInfo.h.

◆ fMdtRefit

Bool_t PndPidMuonSystemInfo::fMdtRefit
protected

kTRUE if refit Mdt track.

Definition at line 101 of file PndPidMuonSystemInfo.h.

Referenced by Register(), and ResetMdtTrack().

◆ fMdtTrack

TClonesArray* PndPidMuonSystemInfo::fMdtTrack = nullptr
protected

Mdt track TCA.

Definition at line 100 of file PndPidMuonSystemInfo.h.

Referenced by RegisterMdtTrack(), and ResetMdtTrack().

◆ fMdtTrk

TClonesArray* PndPidMuonSystemInfo::fMdtTrk = nullptr
protected

Mdt trk TCA.

Definition at line 99 of file PndPidMuonSystemInfo.h.


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