Changeset 3213 for trunk/MagicSoft/Mars
- Timestamp:
- 02/17/04 16:52:29 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 21 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3212 r3213 4 4 5 5 -*-*- END OF LINE -*-*- 6 7 2004/02/11: Hendrik Bartko 8 9 * msignal/MArrivalTimeCam.[h,cc], manalysis/Makefile, 10 msignal/AnalysisLinkDef.h, MGeomApply.cc: 11 - new: Storage Container for the ArrivalTime in the camera 12 13 * msignal/MArrivalTimePix.[h,cc], manalysis/Makefile, 14 msignal/AnalysisLinkDef.h: 15 - new: Storage Container for ArrivalTime information of one pixel 16 17 * manalysis/MArrivalTimeCalc2.[h,cc]: 18 - added functionality to compute error of the extracted ArrivalTime 19 - calculated ArrivalTime is stored in MArrivalTimeCam 20 21 * MGeomApply.cc 22 - geometry is applied to MArrivalTimeCam 23 24 * Makefile: 25 - msignal is included 26 6 27 7 28 2004/02/17: Sebastian Raducci -
trunk/MagicSoft/Mars/Makefile
r3069 r3213 43 43 mhist \ 44 44 manalysis \ 45 msignal \ 45 46 mbadpixels \ 46 47 mcalib \ -
trunk/MagicSoft/Mars/NEWS
r3208 r3213 1 1 -*-*- END -*-*- 2 2 *** Version <cvs> 3 4 - added new class MArrivalTimeCam/MArrivalTimePix: 5 Storage containers to hold the ArrivalTime of the camera/pixel 3 6 4 7 - added new classes for the calibration of relative arrival times: -
trunk/MagicSoft/Mars/manalysis/MArrivalTimeCalc2.cc
r3104 r3213 46 46 #include "MPedestalPix.h" 47 47 48 #include "MArrivalTime .h"49 48 #include "MArrivalTimeCam.h" 49 #include "MArrivalTimePix.h" 50 50 51 51 … … 144 144 } 145 145 146 fArrivalTime = (MArrivalTime *)pList->FindCreateObj(AddSerialNumber("MArrivalTime"));146 fArrivalTime = (MArrivalTimeCam*)pList->FindCreateObj(AddSerialNumber("MArrivalTimeCam")); 147 147 if (!fArrivalTime) 148 148 return kFALSE; … … 151 151 } 152 152 153 void MArrivalTimeCalc2::FindSignalTime(Byte_t *ptr, Byte_t size, Float_t &time, Int_t &sat, Byte_t pedes) const153 void MArrivalTimeCalc2::FindSignalTime(Byte_t *ptr, Byte_t size, Float_t &time, Float_t &deltatime, Int_t &sat, Float_t pedes, Float_t pedrms) const 154 154 { 155 155 const Byte_t *end = ptr + size; … … 203 203 204 204 Int_t timesignalsum = 0; 205 Int_t timesquaredsum =0; 205 206 Int_t timesum =0; 206 207 … … 210 211 timesignalsum += *p*(p-ptr); 211 212 timesum += p-ptr; 213 timesquaredsum += (p-ptr)*(p-ptr); 212 214 } 213 215 … … 219 221 time = pedsubsum != 0 ? pedsubtimesignalsum / pedsubsum : 1; 220 222 221 223 deltatime = pedsubsum != 0 ? pedrms / pedsubsum * sqrt(timesquaredsum - fWindowSize*time) : 1; 222 224 } 223 225 … … 238 240 // Find signal in hi- and lo-gain 239 241 // 240 Float_t timehi, timelo ;242 Float_t timehi, timelo, deltatimehi, deltatimelo; 241 243 Int_t sathi, satlo; 242 244 … … 247 249 248 250 const MPedestalPix &ped = (*fPedestals)[pixid]; 251 252 MArrivalTimePix &pix = (*fArrivalTime)[pixid]; 249 253 250 254 const Float_t pedes = ped.GetPedestal(); 251 // const Float_t pedrms = ped.GetPedestalRms(); 252 253 254 FindSignalTime(pixel.GetHiGainSamples()+fHiGainFirst, fNumHiGainSamples, timehi, sathi, pedes); 255 FindSignalTime(pixel.GetLoGainSamples()+fLoGainFirst, fNumLoGainSamples, timelo, satlo, pedes); 256 if (satlo) 255 const Float_t pedrms = ped.GetPedestalRms(); 256 257 258 FindSignalTime(pixel.GetHiGainSamples()+fHiGainFirst, fNumHiGainSamples, timehi, deltatimehi, sathi, pedes, pedrms); 259 FindSignalTime(pixel.GetLoGainSamples()+fLoGainFirst, fNumLoGainSamples, timelo, deltatimelo, satlo, pedes, pedrms); 260 261 if (satlo) 257 262 sat++; 258 263 259 if (!sathi) 260 { 261 fArrivalTime->SetTime(pixid,timehi); 262 } 263 else 264 fArrivalTime->SetTime(pixid,timelo); 264 pix.SetArrivalTime(timehi, deltatimehi, 265 timelo, deltatimelo); 266 267 pix.SetGainSaturation(sathi, sathi, satlo); 265 268 266 269 -
trunk/MagicSoft/Mars/manalysis/MArrivalTimeCalc2.h
r3104 r3213 10 10 11 11 class MPedestalCam; 12 class MExtractedSignalCam; 13 class MArrivalTime; 12 class MArrivalTimeCam; 14 13 15 14 class MArrivalTimeCalc2 : public MTask … … 22 21 23 22 MPedestalCam *fPedestals; // Pedestals of all pixels in the camera 24 // MExtractedSignalCam *fSignals; // Extracted signal of all pixels in the camera25 23 26 24 MRawEvtData *fRawEvt; // raw event data (time slices) … … 28 26 29 27 30 MArrivalTime *fArrivalTime; // Arrival Time of FADC sample28 MArrivalTimeCam *fArrivalTime; // Arrival Time of FADC sample 31 29 32 30 … … 42 40 Byte_t fSaturationLimit; 43 41 44 void FindSignalTime(Byte_t *ptr, Byte_t size, Float_t &time, Int_t &sat, Byte_t pedes) const;42 void FindSignalTime(Byte_t *ptr, Byte_t size, Float_t &time, Float_t &deltatime, Int_t &sat, Float_t pedes, Float_t pedrms) const; 45 43 46 44 Int_t PreProcess(MParList *pList); … … 57 55 58 56 #endif 57 58 -
trunk/MagicSoft/Mars/manalysis/MGeomApply.cc
r3069 r3213 38 38 // MBlindPixels 39 39 // MArrivalTime 40 // MArrivalTimeCam 41 // MArrivalTimePix 40 42 // 41 43 // It uses the geometry (MGeomCam) found in the parameter list. … … 54 56 // [MBlindPixels] 55 57 // [MArrivalTime] 58 // [MArrivalTimeCam] 56 59 // 57 60 ////////////////////////////////////////////////////////////////////////////// … … 72 75 #include "MExtractedSignalCam.h" 73 76 #include "MBlindPixels.h" 77 #include "MArrivalTimeCam.h" 78 74 79 75 80 ClassImp(MGeomApply); … … 148 153 tme->InitSize(cam->GetNumPixels()); 149 154 155 MArrivalTimeCam *tmecam = (MArrivalTimeCam*)pList->FindObject(AddSerialNumber("MArrivalTimeCam")); 156 if (tmecam) 157 tmecam->InitSize(cam->GetNumPixels()); 158 159 150 160 return kTRUE; 151 161 } -
trunk/MagicSoft/Mars/manalysis/Makefile
r3209 r3213 24 24 INCLUDES = -I. -I../mbase -I../mmc -I../mraw -I../mgeom -I../mfilter \ 25 25 -I../mdata -I../mhbase -I../mhist -I../mgui -I../mimage \ 26 -I../mhistmc -I../mfileio -I../mmain -I../mcalib \26 -I../mhistmc -I../mfileio -I../mmain -I../mcalib -I../msignal \ 27 27 -I../mpointing -I../mtools 28 28 # mcalib: MGeomApply (MCalibrationCam)
Note:
See TracChangeset
for help on using the changeset viewer.