PandaRoot
PndFsmMdtPid.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 //--------------------------------------------------------------------------
14 // File and Version Information:
15 // $Id: PndFsmMdtPid.hs $
16 //
17 // Description:
18 // Class PndFsmMdtPid
19 //
20 // Implementation of the MDT for the Fast Sim Detectors
21 //
22 // This software was developed for the PANDA collaboration. If you
23 // use all or part of it, please give an appropriate acknowledgement.
24 //
25 // Author List:
26 // Ralf Kliemt Original Author
27 //
28 // Copyright Information:
29 // Copyright (C) 2014 GSI
30 //
31 //------------------------------------------------------------------------
32 
33 #ifndef PNDFSMMDTPID_H
34 #define PNDFSMMDTPID_H
35 
36 //----------------------
37 // Base Class Headers --
38 //----------------------
39 
40 //-------------------------------
41 // Collaborating class Headers --
42 //-------------------------------
43 #include <iosfwd>
44 #include "ArgList.h"
45 #include "PndFsmAbsDet.h"
46 
47 //--------------------------------------------
48 // Collaborating class forward declarations --
49 // -------------------------------------------
50 class PndFsmTrack;
51 class PndFsmResponse;
52 class TH3F;
53 
54 class PndFsmMdtPid : public PndFsmAbsDet {
55  public:
56  //--------------------
57  // Public interface --
58  //--------------------
59 
60  //
61  // Constructors
62  //
63 
65  PndFsmMdtPid();
66  PndFsmMdtPid(ArgList &par);
69  virtual ~PndFsmMdtPid();
70 
75  virtual PndFsmResponse *respond(PndFsmTrack *t);
76 
77  private:
78  bool detected(PndFsmTrack *t) const;
79 
80  void initParameters();
81  void print(std::ostream &o);
82  bool setParameter(std::string &name, double value);
83  bool readParameters();
84 
85  TH3F *_mdtPidPdf[6];
86 
87  double _thtMin;
88  double _thtMax;
89  double _pmin;
90  double _misId;
91 
92  bool _useFlat;
93 
94  std::string _parFileName; // this file contains root histograms with the MDT pdfs
95 };
96 
97 #endif
virtual PndFsmResponse * respond(PndFsmTrack *t)
std::list< std::string > ArgList
Definition: ArgList.h:19
virtual ~PndFsmMdtPid()