Changeset 5601 for trunk/MagicSoft/Mars/msignal
- Timestamp:
- 12/15/04 10:25:49 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/msignal
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MArrivalTimeCam.h
r4274 r5601 32 32 void Clear(Option_t *o=""); 33 33 void SetLogStream(MLog *lg); 34 void Reset() { Clear(); } 34 35 35 36 void InitSize(const UInt_t i); -
trunk/MagicSoft/Mars/msignal/MExtractTime.cc
r5558 r5601 110 110 Int_t MExtractTime::PreProcess(MParList *pList) 111 111 { 112 fRawEvt = (MRawEvtData*)pList->FindObject(AddSerialNumber("MRawEvtData"));113 if (!fRawEvt)114 {115 *fLog << err << AddSerialNumber("MRawEvtData") << " not found... aborting." << endl;116 return kFALSE;117 }118 119 fRunHeader = (MRawRunHeader*)pList->FindObject(AddSerialNumber("MRawRunHeader"));120 if (!fRunHeader)121 {122 *fLog << err << AddSerialNumber("MRawRunHeader") << " not found... aborting." << endl;123 return kFALSE;124 }125 126 127 112 fArrTime = (MArrivalTimeCam*)pList->FindCreateObj("MArrivalTimeCam",AddSerialNumber(fNameTimeCam)); 128 113 if (!fArrTime) 129 114 return kFALSE; 130 115 131 fPedestals = (MPedestalCam*)pList->FindObject( AddSerialNumber(fNamePedestalCam), "MPedestalCam"); 132 if (!fPedestals) 133 { 134 *fLog << err << AddSerialNumber("MPedestalCam") << " not found... aborting" << endl; 135 return kFALSE; 136 } 137 138 return kTRUE; 116 return PreProcessStd(pList); 139 117 } 140 118 -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.cc
r5595 r5601 159 159 Int_t MExtractTimeAndCharge::Process() 160 160 { 161 // This cleaning is nor necessary: It is done automatically by 162 // Reset() before each execution of the Tasklist (Process()) 163 // fArrTime->Clear(); 164 // fSignals->Clear(); 161 165 162 166 MRawEvtPixelIter pixel(fRawEvt); 163 fArrTime->Clear();164 fSignals->Clear();165 167 166 168 while (pixel.Next()) -
trunk/MagicSoft/Mars/msignal/MExtractedSignalCam.h
r4274 r5601 35 35 void Clear(Option_t *o=""); 36 36 void SetLogStream(MLog *lg); 37 void Reset() { Clear(); } 37 38 38 39 void InitSize(const UInt_t i); -
trunk/MagicSoft/Mars/msignal/MExtractor.cc
r5592 r5601 130 130 } 131 131 132 Int_t MExtractor::PreProcessStd(MParList *pList) 133 { 134 fRawEvt = (MRawEvtData*)pList->FindObject(AddSerialNumber("MRawEvtData")); 135 if (!fRawEvt) 136 { 137 *fLog << err << AddSerialNumber("MRawEvtData") << " not found... aborting." << endl; 138 return kFALSE; 139 } 140 141 fRunHeader = (MRawRunHeader*)pList->FindObject(AddSerialNumber("MRawRunHeader")); 142 if (!fRunHeader) 143 { 144 *fLog << err << AddSerialNumber("MRawRunHeader") << " not found... aborting." << endl; 145 return kFALSE; 146 } 147 148 149 if (fPedestals) 150 return kTRUE; 151 152 fPedestals = (MPedestalCam*)pList->FindObject(AddSerialNumber(fNamePedestalCam), "MPedestalCam"); 153 if (!fPedestals) 154 { 155 *fLog << err << fNamePedestalCam << " not found... aborting" << endl; 156 return kFALSE; 157 } 158 159 return kTRUE; 160 } 161 132 162 // -------------------------------------------------------------------------- 133 163 // … … 144 174 Int_t MExtractor::PreProcess(MParList *pList) 145 175 { 146 147 fRawEvt = (MRawEvtData*)pList->FindObject(AddSerialNumber("MRawEvtData")); 148 if (!fRawEvt) 149 { 150 *fLog << err << AddSerialNumber("MRawEvtData") << " not found... aborting." << endl; 151 return kFALSE; 152 } 153 154 fRunHeader = (MRawRunHeader*)pList->FindObject(AddSerialNumber("MRawRunHeader")); 155 if (!fRunHeader) 156 { 157 *fLog << err << AddSerialNumber("MRawRunHeader") << " not found... aborting." << endl; 158 return kFALSE; 159 } 160 161 162 if (!fPedestals) 163 { 164 fPedestals = (MPedestalCam*)pList->FindObject(AddSerialNumber(fNamePedestalCam), "MPedestalCam"); 165 if (!fPedestals) 166 { 167 *fLog << err << fNamePedestalCam << " not found... aborting" << endl; 168 return kFALSE; 169 } 170 } 171 172 fSignals = (MExtractedSignalCam*)pList->FindCreateObj("MExtractedSignalCam",AddSerialNumber(fNameSignalCam)); 173 if (!fSignals) 174 return kFALSE; 175 176 return kTRUE; 176 fSignals = (MExtractedSignalCam*)pList->FindCreateObj("MExtractedSignalCam",AddSerialNumber(fNameSignalCam)); 177 if (!fSignals) 178 return kFALSE; 179 180 return PreProcessStd(pList); 177 181 } 178 182 -
trunk/MagicSoft/Mars/msignal/MExtractor.h
r5592 r5601 62 62 virtual void FindSignalLoGain(Byte_t *firstused, Float_t &sum, Byte_t &sat) const { } 63 63 64 Int_t PreProcessStd(MParList *pList); 64 65 Int_t PreProcess( MParList *pList ); 65 66 Bool_t ReInit ( MParList *pList );
Note:
See TracChangeset
for help on using the changeset viewer.