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