Changeset 638
- Timestamp:
- 02/23/01 10:45:31 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Simulation/Detector/include-MFadc/MFadc.hxx
r489 r638 20 20 21 21 #include "MTriggerDefine.h" 22 #include "MFadcDefine.h" 22 23 23 24 class MMcEvt ; … … 40 41 // values defined in MTriggerDefine.h are also used by this class. 41 42 // 42 // But a lot of other stuff is defined here. 43 // 44 // --> Frist of all the WIDTH of the time slice of one FADC slice 45 // this is 3.33333 nsec. 46 // 47 #define WIDTH_FADC_TIMESLICE (50./15.) // this means 3.33 nsec 48 // 49 // --> Second the number of slices to fill in MFADC. This must by 50 // connected to the MTrigger class. The time of interest must be 51 // equal in both classes. 52 // 53 #define SLICES_MFADC (TOTAL_TRIGGER_TIME / WIDTH_FADC_TIMESLICE) 54 // 55 // --> The amount of FADC slice written to the raw format. 56 // 57 #define FADC_SLICES 15 58 // --> The amount of ns before trigger that would be read from the ADC 59 // in oder to show also the start of the pulse before the 60 // the trigger time. 61 // 62 #define TIME_BEFORE_TRIGGER 10. 63 // --> like the trigger the FADC value will also have a standard response 64 // to one single Photo electron. This response is binned with smaller 65 // bins. The WIDTH of that response function is done here. 66 // 67 #define SUBBINS 5. 68 #define WIDTH_RESPONSE_MFADC (WIDTH_FADC_TIMESLICE / SUBBINS ) 69 // 5 sub-bin in one FADC slice 70 // 71 // --> the number of Response slices 72 // 73 #define RESPONSE_SLICES_MFADC 45 43 // But a lot of other stuff is defined in MFadcDefine.h. 74 44 // 75 45 // 76 #define MFADC_RESPONSE_FWHM 5.077 46 78 // 79 // 80 #define MFADC_RESPONSE_AMPLITUDE 4.0 81 // 82 // 83 // 84 // 47 85 48 class MFadc { 86 49 private: … … 89 52 // 90 53 Bool_t used[CAMERA_PIXELS] ; // a boolean to indicated if the pixels is used in this event 54 UChar_t pedestal[CAMERA_PIXELS] ; // Pedestal of FADCs 91 55 92 56 Float_t sig[CAMERA_PIXELS][(Int_t) SLICES_MFADC] ; // the analog signal for pixels … … 114 78 void Fill( Int_t, Float_t, Float_t ) ; 115 79 80 void Set( Int_t iPix, Float_t res[(Int_t) SLICES_MFADC]); 81 82 void SetPedestals( Int_t ped); 83 84 void SetPedestals( UChar_t ped[CAMERA_PIXELS]); 85 116 86 void Baseline(); 87 88 void Pedestals(); 117 89 118 90 void Offset( Float_t, Int_t ); … … 126 98 void GetResponse( Float_t *resp ) ; 127 99 100 void GetPedestals( Char_t *offset); 101 128 102 void TriggeredFadc(Float_t time); 129 103 130 104 void ShowSignal ( MMcEvt *McEvt , Float_t ) ; 131 105 132 Float_t GetFadcSignal(Int_t pixel, Int_t slice);106 UChar_t GetFadcSignal(Int_t pixel, Int_t slice); 133 107 134 108 Float_t GetAmplitude() {
Note:
See TracChangeset
for help on using the changeset viewer.