/[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.1 - (show annotations) (download)
Thu Feb 19 16:00:16 2009 UTC (15 years, 9 months ago) by nikolas
Branch: MAIN
File MIME type: text/plain
Cleaning files before release

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 EvaluateCrcTof(UChar_t *pTof);
31
32 UChar_t EvaluateCrc(UChar_t *pTrg, Int_t nb);
33
34 void Crc8Tof(UChar_t *oldCRC, UChar_t *crcTof);
35
36 public:
37
38
39 PamVMCTofDig():PamVMCDigitizer("Tof"){
40
41 for(Int_t i=0; i<NP; i++){
42 ftdcres[i] = 50.E-12; // TDC resolution 50 picosec
43 fc1_S[i] = 500.; // cable length in channels
44 fc2_S[i] = 0.;
45 fc3_S[i] = 1000.;
46 fc1_S[i] = fc1_S[i]*ftdcres[i]; // cable length in sec
47 fc2_S[i] = fc2_S[i]*ftdcres[i];
48 }
49 }
50
51 virtual ~PamVMCTofDig() {; }
52
53 void Digitize(){; }//not used
54
55 void WriteToBuff(){ fraw->CopyUCharToBuff(&fDataC); }
56
57 void DigitizeTOF(Int_t EventNo, Int_t PrimaryPDG);
58
59 void LoadCalib();
60
61 //AUX
62 /*Plane numerations:
63 planeNo KEY paddles sizes
64 0 S11Y 8 33.0 x 5.1 cm
65 1 S12X 6 40.8 x 5.5 cm
66 2 S21X 2 18.0 x 7.5 cm
67 3 S22Y 2 15.0 x 9.0 cm
68 4 S31Y 3 15.0 x 6.0 cm
69 5 S32X 3 18.0 x 5.0 cm
70 */
71
72
73
74 ClassDef(PamVMCTofDig,1)
75 };
76
77
78 #endif //PAMVMC_TOF_DIG_H

  ViewVC Help
Powered by ViewVC 1.1.23