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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Wed Feb 18 17:41:08 2009 UTC (15 years, 9 months ago) by nikolas
Branch: MAIN
File MIME type: text/plain
Cleaning up before a release

1 nikolas 1.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