Changeset 2901
- Timestamp:
- 01/24/04 01:37:33 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r2900 r2901 5 5 -*-*- END OF LINE -*-*- 6 6 7 2004/01/23: Abelardo Moralejo7 2004/01/23: Markus Gaug 8 8 9 9 * manalysis/MExtractSignal.[h,cc] 10 * manalysis/MExtractedSignalPix.[h,cc] 10 11 - use MArrivalTime for Storage (or calculation) of time 12 11 13 12 14 -
trunk/MagicSoft/Mars/manalysis/MExtractSignal.cc
r2899 r2901 47 47 #include "MExtractedSignalPix.h" 48 48 49 #include "MArrivalTime.h" 50 49 51 ClassImp(MExtractSignal); 50 52 … … 117 119 *fLog << err << AddSerialNumber("MPedestalCam") << " not found... aborting" << endl; 118 120 return kFALSE; 121 119 122 } 123 124 fArrivalTime = (MArrivalTime*)pList->FindCreateObj(AddSerialNumber("MArrivalTime")); 120 125 121 126 return kTRUE; … … 142 147 fSignals->InitSize(cam->GetNumPixels()); 143 148 149 fArrivalTime->InitSize(cam->GetNumPixels()); 150 144 151 return kTRUE; 145 152 } … … 153 160 Int_t MExtractSignal::Process() 154 161 { 162 155 163 MRawEvtPixelIter pixel(fRawEvt); 156 164 fSignals->Clear(); … … 222 230 pix.SetExtractedSignal((Float_t)sumHi - pedes*(Float_t)fNumHiGainSamples, 223 231 pedrms*fSqrtHiGainSamples, 224 ((Float_t)sumLo - pedes*(Float_t)fNumLoGainSamples),225 232 (Float_t)sumLo - pedes*(Float_t)fNumLoGainSamples, 233 pedrms*fSqrtLoGainSamples); 226 234 227 235 pix.SetGainSaturation(satHi, satHi, satLo); 228 236 229 // FIXME: Arrival time has to be stored in MArrivalTime! 230 if (satHi) 231 pix.SetArrivalTimes((Float_t)(midlo+fLoGainFirst),0.,0.); 232 else 233 pix.SetArrivalTimes((Float_t)(midhi+fHiGainFirst),0.,0.); 237 if (satHi) 238 fArrivalTime->SetTime(pixid,(Float_t)(midlo+fLoGainFirst)); 239 else 240 fArrivalTime->SetTime(pixid,(Float_t)(midhi+fHiGainFirst)); 241 242 234 243 235 244 } /* while (pixel.Next()) */ -
trunk/MagicSoft/Mars/manalysis/MExtractSignal.h
r2899 r2901 20 20 class MPedestalCam; 21 21 class MExtractedSignalCam; 22 class MArrivalTime; 22 23 23 24 class MExtractSignal : public MTask … … 34 35 MRawRunHeader *fRunHeader; // RunHeader information 35 36 37 MArrivalTime *fArrivalTime; // Arrival Time of FADC sample 38 36 39 Byte_t fHiGainFirst; 37 40 Byte_t fLoGainFirst;
Note:
See TracChangeset
for help on using the changeset viewer.