/[PAMELA software]/PamVMC/tof/include/PamVMCTofDig.h
ViewVC logotype

Contents of /PamVMC/tof/include/PamVMCTofDig.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Fri Jun 12 18:39:36 2009 UTC (15 years, 5 months ago) by pam-rm2
Branch: MAIN
CVS Tags: v1r0, HEAD
Changes since 1.1: +0 -3 lines
File MIME type: text/plain
Error occurred while calculating annotation data.
- Introduced user-defined names of output files and random seeds number.
Users can do it use options of PamVMCApplication constructor:
PamVMCApplication(const char* name,  const char *title, const char*
filename="pamtest", Int_t seed=0).
The Random object that I use is TRandom3 object which has astronomical
large period (in case of default initialization 0). All random generators
in the code use this object by calling of gRandom singleton which keeps
it.

- Corrected TOF digitization routine. No problems with TDC hits due to
hadronic interactions anymore.

- Some small changes was done to compile code under Root 5.23. +
geant4_vmc v. 2.6 without any warnings

- Some classes of PamG4RunConfiguartion was changed for geant4_vmc v.
2.6.Some obsolete classes was deleted as soon as developers implemented
regions.

- Navigation was changed from "geomRootToGeant4" to "geomRoot", because on
VMC web page written that as soon as Geant4 has no option ONLY/MANY
translation of overlapped geometry to Geant4 through VGM could be wrong.
I'd like to stay with Root navigation:
http://root.cern.ch/root/vmc/Geant4VMC.html. This should be default
option.

- New Tracker digitization routine written by Sergio was implemented

- PamVMC again became compatible with geant4_vmc v.2.5 and ROOT 5.20.
 The problem was that ROOT developers introduced in TVirtualMC class a new
method SetMagField and new base class:TVirtualMagField from which
user-defined classes shoukd be derived

1 #ifndef PAMVMC_TOF_DIG_H
2 #define PAMVMC_TOF_DIG_H
3
4 #include "PamVMCDigitizer.h"
5
6 #define NP 48
7
8 using std::cout;
9 using std::endl;
10
11 class PamVMCTofDig : public PamVMCDigitizer {
12
13 Float_t fatte1[NP], fatte2[NP], flambda1[NP], flambda2[NP];
14 Float_t fQevePmt_pC[NP];
15 Int_t fADCtof[NP],fTDCint[NP];
16 Float_t ftdcres[NP],fc1_S[NP],fc2_S[NP],fc3_S[NP];
17 Float_t ftdc[NP],ftdc1[NP],ftdcpmt[NP];
18 Bool_t fDEBUG;
19
20 UCBuffer fDataC;
21
22 Float_t TimeRes(Int_t PrimaryPDG);
23 //fData TOF 12x23bytes 276bytes
24 void DigitizeTofPlane(Int_t planeNo, TClonesArray* HitColl, Int_t PrimaryPDG);
25
26 void Paddle2Pmt(Int_t planeNo, Int_t padNo, Int_t *pl, Int_t *pr);
27
28 UChar_t Bin2GrayTof(UChar_t binaTOF,UChar_t grayTOF);
29
30 UChar_t EvaluateCrc(UChar_t *pTrg, Int_t nb);
31
32 void Crc8Tof(UChar_t *oldCRC, UChar_t *crcTof);
33
34 public:
35
36
37 PamVMCTofDig():PamVMCDigitizer("Tof"){
38
39 for(Int_t i=0; i<NP; i++){
40 ftdcres[i] = 50.E-12; // TDC resolution 50 picosec
41 fc1_S[i] = 500.; // cable length in channels
42 fc2_S[i] = 0.;
43 fc3_S[i] = 1000.;
44 fc1_S[i] = fc1_S[i]*ftdcres[i]; // cable length in sec
45 fc2_S[i] = fc2_S[i]*ftdcres[i];
46 }
47 }
48
49 virtual ~PamVMCTofDig() {; }
50
51 void Digitize(){; }//not used
52
53 void WriteToBuff(){ fraw->CopyUCharToBuff(&fDataC); }
54
55 void DigitizeTOF(Int_t EventNo, Int_t PrimaryPDG);
56
57 void LoadCalib();
58
59 //AUX
60 /*Plane numerations:
61 planeNo KEY paddles sizes
62 0 S11Y 8 33.0 x 5.1 cm
63 1 S12X 6 40.8 x 5.5 cm
64 2 S21X 2 18.0 x 7.5 cm
65 3 S22Y 2 15.0 x 9.0 cm
66 4 S31Y 3 15.0 x 6.0 cm
67 5 S32X 3 18.0 x 5.0 cm
68 */
69
70
71 ClassDef(PamVMCTofDig,1)
72 };
73
74
75 #endif //PAMVMC_TOF_DIG_H

  ViewVC Help
Powered by ViewVC 1.1.23