Changeset 665 for trunk/MagicSoft/Mars/mdatacheck/MFillAdcSpect.cc
- Timestamp:
- 03/02/01 12:09:07 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mdatacheck/MFillAdcSpect.cc
r531 r665 25 25 // connect the raw data with this task 26 26 27 fHistos = (MHistosAdc*)pList->FindObject("MHistosAdc"); 28 if (!fHistos) 29 { 30 cout << "MRawFileRead::PreProcess - WARNING: MHistosAdc not found... creating." << endl; 31 fHistos = new MHistosAdc; 32 pList->AddToList(fHistos); 33 } 34 27 35 fRawEvtData = (MRawEvtData*)pList->FindObject("MRawEvtData"); 28 29 36 if (!fRawEvtData) 30 37 { 31 cout << "MRawFileRead::PreProcess - WARNING: MRawEvtData not found... creating." << endl;32 return kFALSE ;38 cout << "MRawFileRead::PreProcess - WARNING: MRawEvtData not found... exit." << endl; 39 return kFALSE; 33 40 } 34 41 35 42 fPixelIter = new MRawEvtPixelIter( fRawEvtData ); 36 37 fHistos = (MHistosAdc*)pList->FindObject("MHistosAdc");38 39 if (!fHistos)40 {41 cout << "MRawFileRead::PreProcess - WARNING: MHistosAdc not found... exit..." << endl;42 return kFALSE ;43 }44 45 43 46 44 return kTRUE ; … … 55 53 fPixelIter->Reset() ; 56 54 57 Int_t iHighSamples = fRawEvtData->GetNumHiGainSamples() ;58 Int_t iLowSamples = fRawEvtData->GetNumLoGainSamples() ;55 const Int_t nhisamples = fRawEvtData->GetNumHiGainSamples() ; 56 const Int_t nlosamples = fRawEvtData->GetNumLoGainSamples() ; 59 57 60 58 // cout << "HighSamples " << iHighSamples ; … … 62 60 while ( fPixelIter->Next() ) 63 61 { 64 for (Int_t i=0 ; i< iHighSamples ; i++ )62 for (Int_t i=0 ; i<nhisamples ; i++ ) 65 63 { 66 fHistos->FillAdcHistHi gh( fPixelIter->GetPixelId(),64 fHistos->FillAdcHistHi ( fPixelIter->GetPixelId(), 67 65 fPixelIter->GetHiGainFadcSamples()[i] ); 68 66 } 69 67 70 for (Int_t i=0 ; i< iLowSamples ; i++ )68 for (Int_t i=0 ; i<nlosamples ; i++ ) 71 69 { 72 fHistos->FillAdcHistLo w( fPixelIter->GetPixelId(),70 fHistos->FillAdcHistLo ( fPixelIter->GetPixelId(), 73 71 fPixelIter->GetLoGainFadcSamples()[i] ); 74 72 }
Note:
See TracChangeset
for help on using the changeset viewer.