PandaRoot
PndFsmEffTracker.h
Go to the documentation of this file.
1 //--------------------------------------------------------------------------
2 // File and Version Information:
3 // $Id: FsmTpc.hh,v 1.4 2006/08/10 09:58:41 klausg Exp $
4 //
5 // Description:
6 // Class FsmEffTracker
7 //
8 // Implementation of an effective Tracker for the FastSim
9 // which provides resolution for mom, tht, phi from full sim
10 // NOTE: should be used INSTEAD Tpc/Stt, Mvd and the Mdc's
11 //
12 // This software was developed for the PANDA collaboration. If you
13 // use all or part of it, please give an appropriate acknowledgement.
14 //
15 // Author List:
16 // Klaus Goetzen Original Author
17 //
18 // Copyright Information:
19 // Copyright (C) 2006 GSI
20 //
21 //------------------------------------------------------------------------
22 
23 #ifndef PNDFSMEFFTRACKER_H
24 #define PNDFSMEFFTRACKER_H
25 
26 //----------------------
27 // Base Class Headers --
28 //----------------------
29 
30 //-------------------------------
31 // Collaborating class Headers --
32 //-------------------------------
33 #include <iosfwd>
34 #include "ArgList.h"
35 #include "PndFsmAbsDet.h"
36 
37 //--------------------------------------------
38 // Collaborating class forward declarations --
39 // -------------------------------------------
40 class PndFsmTrack;
41 class PndFsmResponse;
42 
44  public:
45  //--------------------
46  // Public interface --
47  //--------------------
48 
49  //
50  // Constructors
51  //
52 
58  virtual ~PndFsmEffTracker();
59 
64  virtual PndFsmResponse *respond(PndFsmTrack *t);
65 
66  private:
67  bool detected(PndFsmTrack *t) const;
68  double dp(PndFsmTrack *t) const;
69  double dphi(PndFsmTrack *t) const;
70  double dtheta(PndFsmTrack *t) const;
71 
72  double compdEdx(double p, double M);
73  double gauss(double x, double x0, double s);
74 
75  void initParameters();
76  void print(std::ostream &o);
77  bool setParameter(std::string &name, double value);
78 
79  bool readParameters();
80 
81  //
82  // Modifiers
83  //
84 
85  double _thtMin;
86  double _thtMax;
87  double _radiationLength; // material budget
88  double _pmin;
89  double _pRes;
90  double _phiRes;
91  double _thetaRes;
92  double _dEdxRes;
93 
94  std::string _parFileName;
95 
96  int _rows;
97  int _cols;
98 
99  double _sigPhi[6][12];
100  double _sigTht[6][12];
101  double _sigMom[6][12];
102 };
103 
104 #endif
virtual PndFsmResponse * respond(PndFsmTrack *t)
std::list< std::string > ArgList
Definition: ArgList.h:7
virtual ~PndFsmEffTracker()