PandaRoot
PndFsmDrcBarrel.h
Go to the documentation of this file.
1 //--------------------------------------------------------------------------
2 // File and Version Information:
3 // $Id: FsmDrcBarrel.hh,v 1.3 2006/07/13 10:43:45 klausg Exp $
4 //
5 // Description:
6 // Class FsmDrc
7 //
8 // Implementation of the barrel DIRC 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 // Klaus Goetzen Original Author
15 //
16 // Copyright Information:
17 // Copyright (C) 2006 GSI
18 //
19 //------------------------------------------------------------------------
20 
21 #ifndef PNDFSMDRCBARREL_H
22 #define PNDFSMDRCBARREL_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 TH2F;
41 
42 class PndFsmDrcBarrel : public PndFsmAbsDet {
43  public:
44  //--------------------
45  // Public interface --
46  //--------------------
47 
48  //
49  // Constructors
50  //
51 
57  virtual ~PndFsmDrcBarrel();
58 
63  virtual PndFsmResponse *respond(PndFsmTrack *t);
64 
65  private:
66  bool detected(PndFsmTrack *t) const;
67  double compThetaC(double p, double m);
68  double gauss(double x, double x0, double s);
69 
70  void initParameters();
71  void print(std::ostream &o);
72  bool setParameter(std::string &name, double value);
73  bool setParameter(std::string &name, std::string &value);
74 
75  bool readParameters();
76 
77  //
78  // Modifiers
79  //
80 
81  TH2F *trapfrac[5];
82 
83  double _thtMin; // spatial coverage
84  double _thtMax; // "
85  double _radiationLength; // material budget
86  double _pmin; // minimum p_t to reach DIRC
87  double _dthtc; // resolution for tht_C for single photon (-> res=dthtc/sqrt(nPhot) )
88  double _nPhotMin; // minimum number of photons cutoff
89  double _nRefrac; // refraction index of radiator
90  double _Bfield; // B field strength [T]
91  double _effNPhotons; // overall efficiency for photon detection
92  double _rBarrel; // radius of DIRC barrel
93  double _dSlab; // thickness of radiator bars/slabs
94  double _dp; // momentum resolution
95  double _trap; // avg trapping fraction (only when file below doesn't exist)
96  std::string _parFileName; // this file contains root histograms with the trapping fractions
97 };
98 
99 #endif
__m128 m
Definition: P4_F32vec4.h:26
std::list< std::string > ArgList
Definition: ArgList.h:7
virtual ~PndFsmDrcBarrel()
virtual PndFsmResponse * respond(PndFsmTrack *t)