PandaRoot
PndPidMvdInfo.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 #ifndef PID_MVD_INFO_H
14 #define PID_MVD_INFO_H
15 
16 #include <memory>
17 
18 #include "TClonesArray.h"
19 
20 #include "FairPropagator.h"
21 #include "PndPropagator.h"
22 #include "FairGeane.h"
23 #include "FairRootManager.h"
24 
25 #include "PndTrack.h"
26 #include "PndPidCandidate.h"
27 #include "PndGeoHandling.h"
29 
38  public:
39  PndPidMvdInfo();
40  ~PndPidMvdInfo();
41 
42  void SetFast(Bool_t fast_mode) { fFast = fast_mode; };
43  void Reset();
44 
50  virtual Int_t SetDetectorHits(FairRootManager *manager);
51 
59  Bool_t Setup(FairRootManager *manager, PndPropagator *propagator, PndPidDetectorParams::DetectorParams *params);
60 
68  virtual Bool_t GetInfo(PndTrack *track, PndPidCandidate *pidCand);
69 
70  protected:
71  TClonesArray *fMvdHitsStrip = nullptr;
72  TClonesArray *fMvdHitsPixel = nullptr;
73  std::unique_ptr<PndGeoHandling> fGeoH{nullptr};
74 
75  Double_t fMvdELoss = 0;
76  Double_t fMvdPath = 0;
77  Int_t fMvdHitCount = 0;
78 
79  Bool_t fFast;
80 
82 };
83 
84 #endif // PID_MVD_INFO_H
Int_t fMvdHitCount
Number of mvd hits.
Definition: PndPidMvdInfo.h:77
std::unique_ptr< PndGeoHandling > fGeoH
Handler for MVD geometry.
Definition: PndPidMvdInfo.h:73
PndPidMvdInfo()
Default constructor.
Class for accessing PID detector information of MVD.
Definition: PndPidMvdInfo.h:37
TClonesArray * fMvdHitsStrip
Mvd strip detector hits TCA.
Definition: PndPidMvdInfo.h:71
Double_t fMvdELoss
Energy Loss in MVD.
Definition: PndPidMvdInfo.h:75
void SetFast(Bool_t fast_mode)
Definition: PndPidMvdInfo.h:42
TClonesArray * fMvdHitsPixel
Mvd pixel detector hits TCA.
Definition: PndPidMvdInfo.h:72
~PndPidMvdInfo()
default destructor.
Base class for accessing PID detector information of tracking system (MVD, STT, GEM, FTS).
ClassDef(PndPidMvdInfo, 1)
virtual Int_t SetDetectorHits(FairRootManager *manager)
Fill detector hit TCAs and adjust detector mode.
Bool_t fFast
if kTRUE add only number of hits in MVD.
Definition: PndPidMvdInfo.h:79
Propagator interface class for PandaRoot.
Definition: PndPropagator.h:64
Double_t fMvdPath
MVD path crossed by the particle.
Definition: PndPidMvdInfo.h:76
virtual Bool_t GetInfo(PndTrack *track, PndPidCandidate *pidCand)
Add MVD information to PidCandidate.
Bool_t Setup(FairRootManager *manager, PndPropagator *propagator, PndPidDetectorParams::DetectorParams *params)
Setup FTS info.