FairRoot/PandaRoot
PndFsmAbsDet.h
Go to the documentation of this file.
1 //--------------------------------------------------------------------------
2 // File and Version Information:
3 // $Id: FsmAbsDet.hh,v 1.5 2007/05/24 08:07:40 klausg Exp $
4 //
5 // Description:
6 // Class FsmAbsDet
7 //
8 // Abstract Class Interface for 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 PNDFSMABSDET_H
22 #define PNDFSMABSDET_H
23 
24 //----------------------
25 // Base Class Headers --
26 //----------------------
27 
28 //-------------------------------
29 // Collaborating class Headers --
30 //-------------------------------
31 
32 //---------------
33 // C++ Headers --
34 //---------------
35 #include <string>
36 
37 #include "FsmDetTypes.h"
38 
39 #include "ArgList.h"
40 #include "TRandom3.h"
41 #include "TDatabasePDG.h"
42 
43 //--------------------------------------------
44 // Collaborating class forward declarations --
45 // -------------------------------------------
46 class PndFsmResponse;
47 class PndFsmTrack;
48 
50 {
51 public:
52 
53  //--------------------
54  // Public interface --
55  //--------------------
56 
57  //
58  // Constructors
59  //
60 
61  PndFsmAbsDet();
63  // Destructor
64  //
65  virtual ~PndFsmAbsDet();
66 
67  //
68  // Accessors to contained information
69  //
70 
71  virtual PndFsmResponse* respond(PndFsmTrack *t) = 0;
72  virtual void print(std::ostream &o);
73 
74  const std::string& detName() {return _detName;}
75  void setName(std::string& name) {_detName = name;};
76  Bool_t doesPid() const {return _doesPid;};
77  void setStorePid(Bool_t doespid=kTRUE) {_doesPid=doespid;};
78 
79 protected:
80 
81  virtual bool setParameter(std::string &name, double value);
82  virtual bool setParameter(std::string &name, std::string &value);
83 
84  virtual void initParameters();
85  void parseParameterList(ArgList &par);
86 
87 
88  //
89  // Modifiers
90  //
91 
92  std::string _detName;
93  double _efficiency; //overall efficiency
94  TRandom3* _rand;
95  TDatabasePDG* _fdbPDG;
97 
98 };
99 
100 #endif
virtual PndFsmResponse * respond(PndFsmTrack *t)=0
double _efficiency
Definition: PndFsmAbsDet.h:93
TDatabasePDG * _fdbPDG
Definition: PndFsmAbsDet.h:95
std::list< std::string > ArgList
Definition: ArgList.h:7
void setStorePid(Bool_t doespid=kTRUE)
Definition: PndFsmAbsDet.h:77
virtual void initParameters()
Double_t par[3]
virtual ~PndFsmAbsDet()
void parseParameterList(ArgList &par)
Bool_t _doesPid
Definition: PndFsmAbsDet.h:96
virtual void print(std::ostream &o)
TRandom3 * _rand
Definition: PndFsmAbsDet.h:94
void setName(std::string &name)
Definition: PndFsmAbsDet.h:75
const std::string & detName()
Definition: PndFsmAbsDet.h:74
TString name
Bool_t doesPid() const
Definition: PndFsmAbsDet.h:76
std::string _detName
Definition: PndFsmAbsDet.h:92
virtual bool setParameter(std::string &name, double value)
TTree * t
Definition: bump_analys.C:13