Changeset 2876 for trunk/MagicSoft
- Timestamp:
- 01/21/04 18:52:05 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r2875 r2876 4 4 5 5 -*-*- END OF LINE -*-*- 6 2004/01/21: Abelardo Moralejo 7 8 * mcalib/MMcCalibrationCalc.[h,cc] 9 - Added. First version of the task intended to calculate the 10 conversion factors from ADC counts to photons in the MC. It has 11 a different aim than the recently renamed class 12 "MMcCalibrationUpdate" (which takes care that the correct 13 pedestals and conversion factors are supplied to each event, but 14 does not really calculate anything). 15 16 * mcalib/Makefile, CalibLinkDef.h 17 - Added new class MMcCalibrationCalc 18 19 * manalysis/MMcCalibrationUpdate.[h,cc] 20 - Now the container MCalibrationCam is not created or modified if 21 it is found that one such container already exists in the 22 Parameter list (from a previous calibration). 23 6 24 7 25 2004/01/21: Thomas Bretz … … 16 34 17 35 18 2004/01/21: Abelardo moralejo36 2004/01/21: Abelardo Moralejo 19 37 20 38 * mmc/MMcEvt.hxx -
trunk/MagicSoft/Mars/manalysis/MMcCalibrationUpdate.cc
r2873 r2876 73 73 fADC2PhOuter = 1.; 74 74 75 fFillCalibrationCam = kTRUE; 76 75 77 } 76 78 … … 117 119 return kTRUE; 118 120 119 fCalCam = (MCalibrationCam*) pList->FindCreateObj(AddSerialNumber("MCalibrationCam")); 121 122 fCalCam = (MCalibrationCam*) pList->FindObject(AddSerialNumber("MCalibrationCam")); 120 123 if ( !fCalCam ) 121 124 { 122 *fLog << err << dbginf << "Cannot create MCalibrationCam... aborting." << endl; 123 return kFALSE; 125 *fLog << warn << dbginf << AddSerialNumber("MCalibrationCam") << " does not exist... Creating." << endl; 126 127 fCalCam = (MCalibrationCam*) pList->FindCreateObj(AddSerialNumber("MCalibrationCam")); 128 if ( !fCalCam ) 129 { 130 *fLog << err << dbginf << "Cannot create " << AddSerialNumber("MCalibrationCam") << "... aborting." << endl; 131 return kFALSE; 132 } 133 } 134 else 135 { 136 fFillCalibrationCam = kFALSE; 137 *fLog << warn << dbginf << AddSerialNumber("MCalibrationCam") << " already exists... " << endl; 124 138 } 125 139 … … 185 199 fConversionHiLo = fHeaderFadc->GetLow2HighGain(); 186 200 201 // 202 // If MCalibrationCam already existed in the parameter list before 203 // MMcCalibrationUpdate::PreProcess was executed (from a 204 // previous calibration loop) we must not fill it, hence nothing 205 // else has to be done in ReInit: 206 // 207 if ( !fFillCalibrationCam ) 208 return kTRUE; 209 187 210 188 211 const int num = fCalCam->GetSize(); -
trunk/MagicSoft/Mars/manalysis/MMcCalibrationUpdate.h
r2867 r2876 30 30 Float_t fConversionHiLo; 31 31 32 Bool_t fFillCalibrationCam; 33 32 34 public: 33 35 MMcCalibrationUpdate(const char *name=NULL, const char *title=NULL); -
trunk/MagicSoft/Mars/mcalib/CalibLinkDef.h
r2734 r2876 17 17 #pragma link C++ class MHCalibrationPixel+; 18 18 19 #pragma link C++ class MMcCalibrationCalc++; 20 19 21 #endif -
trunk/MagicSoft/Mars/mcalib/Makefile
r2855 r2876 23 23 # 24 24 INCLUDES = -I. -I../mbase -I../mhbase -I../mgui -I../mgeom -I../manalysis \ 25 -I../mraw -I../mtools 25 -I../mraw -I../mtools -I../mmc -I../mimage 26 26 27 # mhbase: MBinning MH 27 28 # mgui: MCamEvent (McalibrationCam) 28 29 # mgeom: MGeomCam (McalibrationCam - necessary?) 29 30 # manalysis: MExtractedSignal, MCerPhotEvt (move to mcalib?) 30 # mraw: MRawRunHeader, MRawEvtHeader, MRawEvtPixelIter (3xMCalibrationCalc) 31 31 # mraw: MRawRunHeader, MRawEvtHeader, MRawEvtPixelIter (3xMCalibrationCalc)# mmc: MMcFadcHeader, MMcEvt 32 # mimage MHillas 32 33 33 34 #------------------------------------------------------------------------------ … … 43 44 MHCalibrationBlindPixel.cc \ 44 45 MHCalibrationPINDiode.cc \ 45 MHCalibrationPixel.cc 46 MHCalibrationPixel.cc \ 47 MMcCalibrationCalc.cc 46 48 47 49 SRCS = $(SRCFILES)
Note:
See TracChangeset
for help on using the changeset viewer.