/[PAMELA software]/PamVMC/trk/include/PamVMCTrkDig.h
ViewVC logotype

Contents of /PamVMC/trk/include/PamVMCTrkDig.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Fri Jun 12 18:39:48 2009 UTC (15 years, 5 months ago) by pam-rm2
Branch: MAIN
CVS Tags: v1r0, HEAD
Changes since 1.1: +0 -0 lines
File MIME type: text/plain
- 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 PAMVMCTRKDIG_H
2 #define PAMVMCTRKDIG_H
3
4
5 #include <iostream>
6
7 #include "PamVMCTrkF77GpsSpe.h"
8 #include "CalibTrk1Event.h"
9 #include "CalibTrk2Event.h"
10 #include "PamVMCDigitizer.h"
11 #include "PamVMCTrkF77GpsSpe.h"
12
13
14 class PamVMCTrkDig: public PamVMCDigitizer{
15
16
17 public:
18 PamVMCTrkDig():PamVMCDigitizer("Tracker")
19 { ; };
20
21 virtual ~PamVMCTrkDig(){; };
22
23 void LoadCalib(){
24 LoadFile();
25 DigitizeTrackCalib(1);
26 UInt_t length=fData.size()*2;
27 DigitizePSCU(length,0x12);
28 AddPadding();
29 WriteCalib();
30
31 DigitizeTrackCalib(2);
32 length=fData.size()*2;
33 DigitizePSCU(length,0x13);
34 AddPadding();
35 WriteCalib();
36
37 LoadMipCor();
38 }
39
40
41 void RegisterTrkData(pGPSSPEHits * hits){ fhits = hits; }
42
43 void Digitize();
44
45 void PrintCollections(){
46 cout<<"HitCollection for Tracker: "<<fhits<<endl;
47 }
48
49
50 private:
51
52
53
54 //AUX functions//
55
56 void LoadFile();
57
58 void WriteCalib();
59
60 void LoadMipCor();
61
62 void DigitizeTrackCalib(Int_t n);
63
64 void BrokenStrip(Int_t planebr, Int_t vabr, Int_t plane,
65 Int_t strip, Int_t & goodst){
66 if(plane==planebr && strip>=(256*(vabr-1)) && strip<(256*vabr))
67 goodst=strip-(256*(vabr-1));
68 }
69
70 Float_t SaturationTrackx(Float_t ADC);
71
72 Float_t SaturationTracky(Float_t ADC);
73
74 void CompressTrackData();
75
76 static const Int_t fNviews = 12;
77 static const Int_t fNladder=3;
78 static const Int_t fNstrips_ladder = 1024;
79 static const Int_t fNstrips_view = 3072;
80
81 static const Float_t fSigmaCommon = 25.; // to be adjusted
82 static const Int_t fCutzop = 4;
83 static const Int_t fCutclu = 7;
84 static const Int_t fNclst = 2;
85
86
87 Float_t fSigmaTrack[fNviews][fNstrips_view];
88 Float_t fPedeTrack[fNviews][fNstrips_view];
89
90
91 Float_t AdcTrack[fNviews][fNstrips_view];//Vector of strips to be compressed
92
93 //UShort_t fDataTrack[fTRACKbuffer];
94 //UInt_t fTracklength; // Actual length of buffer
95 Float_t fMipCor[fNladder][fNviews] ;
96 // end vectors, buffer, and variables for tracker
97
98
99 pGPSSPEHits * fhits; //pointer to Tracker's SD hit data
100
101 ClassDef(PamVMCTrkDig,1)
102
103 };
104
105
106
107 #endif // PAMVMCTRKSD_H

  ViewVC Help
Powered by ViewVC 1.1.23