PandaRoot
PndFsmDrcBarrel.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: FsmDrcBarrel.hh,v 1.3 2006/07/13 10:43:45 klausg Exp $
16 //
17 // Description:
18 // Class FsmDrc
19 //
20 // Implementation of the barrel DIRC 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 // Klaus Goetzen Original Author
27 //
28 // Copyright Information:
29 // Copyright (C) 2006 GSI
30 //
31 //------------------------------------------------------------------------
32 
33 #ifndef PNDFSMDRCBARREL_H
34 #define PNDFSMDRCBARREL_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 TH2F;
53 
54 class PndFsmDrcBarrel : public PndFsmAbsDet {
55  public:
56  //--------------------
57  // Public interface --
58  //--------------------
59 
60  //
61  // Constructors
62  //
63 
69  virtual ~PndFsmDrcBarrel();
70 
75  virtual PndFsmResponse *respond(PndFsmTrack *t);
76 
77  private:
78  bool detected(PndFsmTrack *t) const;
79  double compThetaC(double p, double m);
80  double gauss(double x, double x0, double s);
81 
82  void initParameters();
83  void print(std::ostream &o);
84  bool setParameter(std::string &name, double value);
85  bool setParameter(std::string &name, std::string &value);
86 
87  bool readParameters();
88 
89  //
90  // Modifiers
91  //
92 
93  TH2F *trapfrac[5];
94 
95  double _thtMin; // spatial coverage
96  double _thtMax; // "
97  double _radiationLength; // material budget
98  double _pmin; // minimum p_t to reach DIRC
99  double _dthtc; // resolution for tht_C for single photon (-> res=dthtc/sqrt(nPhot) )
100  double _nPhotMin; // minimum number of photons cutoff
101  double _nRefrac; // refraction index of radiator
102  double _Bfield; // B field strength [T]
103  double _effNPhotons; // overall efficiency for photon detection
104  double _rBarrel; // radius of DIRC barrel
105  double _dSlab; // thickness of radiator bars/slabs
106  double _dp; // momentum resolution
107  double _trap; // avg trapping fraction (only when file below doesn't exist)
108  std::string _parFileName; // this file contains root histograms with the trapping fractions
109 };
110 
111 #endif
__m128 m
Definition: P4_F32vec4.h:38
std::list< std::string > ArgList
Definition: ArgList.h:19
virtual ~PndFsmDrcBarrel()
virtual PndFsmResponse * respond(PndFsmTrack *t)