BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
Simulation/BOOST/TofSim/TofSim-00-02-37/TofSim/BesTofDigitizerBrV2.hh
Go to the documentation of this file.
1//---------------------------------------------------------------------------/// BOOST --- BESIII Object_Oriented Simulation Tool //
2//---------------------------------------------------------------------------//
3//Description:
4//Author: Dengzy
5//Created: Oct, 2004
6//Modified:
7//Comment:
8//---------------------------------------------------------------------------//
9// $Id: BesTofDigitizerBrV2.hh
10
11#ifndef BesTofDigitizerBrV2_h
12#define BesTofDigitizerBrV2_h 1
13
14#include "GaudiKernel/NTuple.h"
15
16#include "BesTofDigitizerV.hh"
17#include "BesTofDigi.hh"
18#include "ScintSingle.hh"
19#include "globals.hh"
20#include "G4ThreeVector.hh"
21#include <vector>
22#include "RealizationSvc/RealizationSvc.h"
23#include "RealizationSvc/IRealizationSvc.h"
24
25using namespace std;
26
27class BesTofHit;
28class BesRunAction;
29class G4Svc;
30
31const G4int m_profBinN = 30000;
32const G4int m_snpeBinN = 3000;
33
35{
36 public:
39
41 void ReadData();
42 void TofPmtInit();
43 void TofPmtAccum(BesTofHit*, G4int);
44 void DirectPh(G4int, G4ThreeVector, G4double &, G4int&);
45 G4double Scintillation(G4int);
46 //G4double GenPhoton(G4int);
47 G4double TransitTime();
48 void AccuSignal(G4double, G4int);
49 void TofPmtRspns(G4int);
50 G4double Reflectivity(G4double n1,G4double n2,G4double theta);
51 G4double Reflectivity(G4double n1,G4double n2,G4double n3,G4double theta);
52 G4double BirksLaw(BesTofHit* hit);
53
54 private:
55
56 G4double m_scinLength;
57
58 G4double m_tau1;
59 G4double m_tau2;
60 G4double m_tau3;
61 G4double m_tauRatio;
62 G4double m_refIndex;
63 G4double m_phNConst;
64 G4double m_Cpe2pmt;
65 G4double m_rAngle;
66 G4double m_QE;
67 G4double m_CE;
68 G4double m_peCorFac;
69
70 G4double m_ttsMean;
71 G4double m_ttsSigma;
72 G4double m_Ce;
73 //G4double m_BrWPMTgain[176];
74 //G4double m_BrWRiseTime[176];
75 //G4double m_BrEPMTgain[176];
76 //G4double m_BrERiseTime[176];
77 G4double m_LLthresh;
78 G4double m_HLthresh;
79 G4double m_preGain;
80 G4double m_noiseSigma;
81
82 G4double m_t1st[2];
83 G4double m_tLast[2];
84 G4double m_timeBinSize;
85 G4int m_totalPhot[2];
86 G4int m_nPhot[m_profBinN][2];
87
88 //BesRunAction* m_runAction;
89 G4Svc* m_G4Svc;
90 G4double m_beamTime;
91 RealizationSvc* m_RealizationSvc;
92
93/*
94 NTuple::Tuple* m_tupleTof1;
95 NTuple::Item<double> m_partId;
96 NTuple::Item<double> m_scinNb;
97 NTuple::Item<double> m_edep;
98 NTuple::Item<double> m_nHits;
99 NTuple::Item<double> m_time1st0;
100 NTuple::Item<double> m_time1st1;
101 NTuple::Item<double> m_timelast0;
102 NTuple::Item<double> m_timelast1;
103 NTuple::Item<double> m_totalPhot0;
104 NTuple::Item<double> m_totalPhot1;
105 NTuple::Item<double> m_NphAllSteps;
106 NTuple::Item<double> m_max0;
107 NTuple::Item<double> m_max1;
108 NTuple::Item<double> m_tdc0;
109 NTuple::Item<double> m_adc0;
110 NTuple::Item<double> m_tdc1;
111 NTuple::Item<double> m_adc1;
112 NTuple::Item<double> nReachPMTf;
113 NTuple::Item<double> nEnterPMTf;
114 NTuple::Item<double> nEnterf;
115 NTuple::Item<double> nRefPMTf;
116 NTuple::Item<double> nReachAirBoxf;
117 NTuple::Item<double> nRefAirBoxf;
118
119
120 NTuple::Tuple* m_tupleTof2;
121 NTuple::Item<double> m_eTotal;
122 NTuple::Item<double> m_nDigi;
123 NTuple::Item<double> m_partIdMPV;
124 NTuple::Item<double> m_scinNbMPV;
125 NTuple::Item<double> m_edepMPV;
126 NTuple::Item<double> m_nDigiOut;
127
128 NTuple::Tuple* m_tupleTof3;
129 NTuple::Item<double> m_forb;
130 NTuple::Item<double> m_timeFlight;
131 NTuple::Item<double> m_ddT;
132 NTuple::Item<double> m_scinSwim;
133 NTuple::Item<double> m_scinTime;
134 NTuple::Item<double> m_transitTime;
135 NTuple::Item<double> m_endTime;
136*/
137
138};
139
140#endif
141
G4TDigiCollection< BesTofDigi > BesTofDigitsCollection
int n2
Definition: SD0Tag.cxx:55
int n1
Definition: SD0Tag.cxx:54
G4double Reflectivity(G4double n1, G4double n2, G4double theta)
void TofPmtRspns(G4int)
virtual void Digitize(ScintSingle *, BesTofDigitsCollection *)
G4double Reflectivity(G4double n1, G4double n2, G4double n3, G4double theta)
void AccuSignal(G4double, G4int)
G4double Scintillation(G4int)
G4double TransitTime()
void DirectPh(G4int, G4ThreeVector, G4double &, G4int &)
G4double BirksLaw(BesTofHit *hit)
void TofPmtAccum(BesTofHit *, G4int)