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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (download) (vendor branch)
Tue Oct 15 15:51:21 2013 UTC (11 years, 1 month ago) by formato
Branch: MAIN, rel
CVS Tags: reltag, HEAD
Changes since 1.1: +0 -0 lines
File MIME type: text/plain
PamVMC update

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

  ViewVC Help
Powered by ViewVC 1.1.23