- Timestamp:
- 04/18/07 10:00:04 (18 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r8410 r8411 19 19 -*-*- END OF LINE -*-*- 20 20 21 2007/04/18 Thomas Bretz 22 23 * mjobs/Makefile: 24 - added path to mmovie 25 26 * mmovie/MMoviePrepare.[h,cc]: 27 - changed access to MCalibrateData to access to MCalibConstCam 28 29 * mmovie/MMovieWrite.cc: 30 - fixed some typos in comments 31 32 33 21 34 2007/04/17 Stefan Ruegamer 22 35 … … 24 37 - modified the ccfile search to not find ccfiles twice if one 25 38 runnumber is part of a higher runnumber (as 23456 and 223456) 39 26 40 * datacenter/scripts/movingrawfiles: 27 41 - added moving of rawfiles from the directory /magic/datacenter/ 28 42 fromtape/rawdata/muxdata, which is the default rawfile folder of 29 43 the new muxtapes, to /magic/datacenter/fromtape/rawdata 44 30 45 * datacenter/scripts/runcallisto: 31 46 - added condition for the linking of the .rc-file for muxdata 47 32 48 * datacenter/scripts/makecallistolinks: 33 49 - commented reason2 out -
trunk/MagicSoft/Mars/mjobs/Makefile
r7152 r8411 23 23 -I../mbadpixels -I../msignal -I../mraw -I../mpedestal -I../mtools \ 24 24 -I../mimage -I../mpointing -I../mastro -I../mfbase -I../mhvstime \ 25 -I../mtrigger -I../mmuon -I../mmc 25 -I../mtrigger -I../mmuon -I../mmc -I../mmovie 26 26 27 27 SRCFILES = MSequence.cc \ -
trunk/MagicSoft/Mars/mmovie/MMoviePrepare.cc
r8406 r8411 49 49 // MPedestalSubtractedEvt 50 50 // MPedestalFundamental [MPedestalCam] 51 // MCalib rateData51 // MCalibConstCam 52 52 // MCalibrationRelTimeCam 53 53 // MRawRunHeader … … 75 75 #include "MPedestalPix.h" 76 76 77 #include "MCalibConstCam.h" 78 #include "MCalibConstPix.h" 77 79 78 80 #include "MCalibrationRelTimeCam.h" … … 82 84 #include "MMovieData.h" 83 85 #include "MRawRunHeader.h" 84 #include "MCalibrateData.h"85 86 #include "MPedestalSubtractedEvt.h" 86 87 … … 143 144 return kFALSE; 144 145 } 145 fCal = (MCalib rateData*)plist->FindTaskListWithTask("MCalibrateData")->FindTask("MCalibrateData");146 fCal = (MCalibConstCam*)plist->FindObject("MCalibConstCam"); 146 147 if (!fCal) 147 148 { 148 *fLog << err << "MCalib rateDatanot found ... aborting." << endl;149 *fLog << err << "MCalibConstCam not found ... aborting." << endl; 149 150 return kFALSE; 150 151 } … … 193 194 Double_t MMoviePrepare::GetMedianCalibConst() const 194 195 { 195 const MArrayF &calco = fCal->GetCalibConsts();196 197 196 Int_t n = fCam->GetNumPixWithAidx(0); 198 197 … … 201 200 for (UInt_t i=0; i<fCam->GetNumPixels(); i++) 202 201 if ((*fCam)[i].GetAidx()==0) 203 arr[--n] = calco[i];202 arr[--n] = (*fCal)[i].GetCalibConst(); 204 203 205 204 return TMath::Median(arr.GetSize(), arr.GetArray()); … … 246 245 247 246 // For invalid calib constants we can use the sector average 248 const MArrayF &calco = fCal->GetCalibConsts();249 247 const UShort_t npix = fEvt->GetNumPixels(); 250 248 const Double_t slope = 1./GetMedianCalibConst(); … … 258 256 259 257 const Float_t offset = tpix.GetTimeOffset(); 260 const Float_t cal = calco[p];258 const Float_t cal = (*fCal)[p].GetCalibConst(); 261 259 const Float_t *ptr = fEvt->GetSamples(p)+fFirstSlice; 262 260 const Float_t scale = cal*slope*fCam->GetPixRatio(p); … … 290 288 // 291 289 // Example: 292 // MMovie wPrepare.FirstSlice: 10293 // MMovie wPrepare.LastSlice: 50290 // MMoviePrepare.FirstSlice: 10 291 // MMoviePrepare.LastSlice: 50 294 292 // 295 293 Int_t MMoviePrepare::ReadEnv(const TEnv &env, TString prefix, Bool_t print) -
trunk/MagicSoft/Mars/mmovie/MMoviePrepare.h
r8406 r8411 11 11 class MPedestalCam; 12 12 class MRawRunHeader; 13 class MCalib rateData;13 class MCalibConstCam; 14 14 class MCalibrationRelTimeCam; 15 15 class MPedestalSubtractedEvt; … … 19 19 private: 20 20 MPedestalSubtractedEvt *fEvt; //! Slices with pedestal subtracted 21 MCalib rateData*fCal; //! Calibration constants signal21 MCalibConstCam *fCal; //! Calibration constants signal 22 22 MCalibrationRelTimeCam *fRel; //! Calibration constants time 23 23 MRawRunHeader *fRun; //! Run Header (sampling frequency) -
trunk/MagicSoft/Mars/mmovie/MMovieWrite.cc
r8406 r8411 815 815 // 816 816 // Example: 817 // MMovie wPrepare.TargetLength: 5 <seconds>818 // MMovie wPrepare.NumEvents: 500819 // MMovie wPrepare.Threshold: 2 <rms>820 // MMovie wPrepare.Filename: movie.mpg817 // MMoviePrepare.TargetLength: 5 <seconds> 818 // MMoviePrepare.NumEvents: 500 819 // MMoviePrepare.Threshold: 2 <rms> 820 // MMoviePrepare.Filename: movie.mpg 821 821 // 822 822 Int_t MMovieWrite::ReadEnv(const TEnv &env, TString prefix, Bool_t print)
Note:
See TracChangeset
for help on using the changeset viewer.