source: trunk/MagicSoft/Simulation/Detector/include-MLons/MLons.hxx@ 4308

Last change on this file since 4308 was 2988, checked in by blanch, 21 years ago
*** empty log message ***
File size: 2.2 KB
Line 
1//
2// class MLons
3//
4// implemented by Oscar Blanch
5//
6// This is a class to read the right trigger and FADC response as a
7// function of the aount of phe per nsec in one pixel.
8//
9//
10//
11#include <iostream.h>
12#include <math.h>
13
14#include "TROOT.h"
15#include "TObject.h"
16#include "TRandom.h"
17#include "TH1.h"
18
19#include "Mdefine.h"
20#include "MMcEvt.hxx"
21
22#include "MTriggerDefine.h"
23#include "MFadc.hxx"
24
25#include "MStarLight.hxx"
26
27//=================================================
28// MLons
29//
30// The simulation of the LONS is going to be done using a database to
31// speed up the camera simulation. This class has all needed methods
32// to read the data base and get the data that we need.
33//
34
35class MLons {
36
37private:
38
39 Char_t path[256] ; // Location of StarLight files
40
41 MStarLight MSLStored ; // MStarLight in memmory
42
43 Float_t fTrigShape ; // a number that indicate the shape type of
44 // the signal
45 // = 0 --> a gaussian
46 Float_t fAmplTrig ; // the amplitude of the trigger in mV
47 Float_t fFwhmTrig ; // the width of the signal in nsec
48
49 Float_t fFadcShape ; // a number that indicate the shape type of
50 // the signal
51 // = 0 --> a gaussian
52 Float_t fIntegFadc ; // the integral of the single phe response
53 // in the FADC (in FADC counts)
54 Float_t fFwhmFadc ; // the width of the signal in nsec
55
56 TRandom *RandomNumber; // RandomGenerator
57
58public:
59
60 MLons() ;
61
62 MLons(Float_t in_amplT, Float_t in_FwhmT,
63 Float_t in_integF, Float_t in_FwhmF) ;
64
65 void Reset() ;
66
67 void SetSeed( Int_t in);
68 void SetAmplTrig( Float_t in ) ;
69 void SetFwhmTrig( Float_t in ) ;
70 void SetIntegFadc( Float_t in ) ;
71 void SetFwhmFadc( Float_t in ) ;
72
73 void SetPath (Char_t in[]);
74
75 Float_t GetBrightness() ;
76 Float_t GetAmplTrig() ;
77 Float_t GetFwhmTrig() ;
78 Float_t GetIntegFadc() ;
79 Float_t GetFwhmFadc() ;
80
81 void GetPath(Char_t *out);
82
83 void ReadBinaryMStarLight(char *filename) ;
84 void SetMStarLight() ;
85
86 Int_t GetResponse(Float_t in_br, Float_t in_pre,
87 Float_t *out_tr, Float_t *out_Fr);
88
89 Int_t CheckTrig();
90 Int_t CheckFADC();
91
92};
Note: See TracBrowser for help on using the repository browser.