Changeset 4075
- Timestamp:
- 05/14/04 17:41:08 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mtemp/mifae
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mtemp/mifae/library/MCalibrateDC.cc
r4073 r4075 51 51 using namespace std; 52 52 53 MCalibrateDC::MCalibrateDC(TString filename, const char *name, const char *title) 53 MCalibrateDC::MCalibrateDC(TString filename, const char *name, const char *title) : fMinDCAllowed(0.5) //[ua] 54 54 { 55 55 fName = name ? name : "MCalibrateDC"; … … 116 116 DCCalibrationCalc(); 117 117 118 UInt_t numPixelsSetUnsuedForDC = 0; 119 118 120 for (UInt_t pix=1; pix<fNumPixels; pix++) 119 fDCCalibrationFactor[pix] = fDCCalibration/fDisplay[pix]; 120 121 { 122 if (fDisplay.GetBinContent(pix+1) > fMinDCAllowed) 123 fDCCalibrationFactor[pix] = fDCCalibration/fDisplay.GetBinContent(pix+1); 124 else 125 { 126 numPixelsSetUnsuedForDC++; 127 fDCCalibrationFactor[pix] = 0.; //FIXME: Maybe to introduce a setunused in MCameraDC ? 128 } 129 } 130 131 *fLog << inf << GetName() << " set unused " << numPixelsSetUnsuedForDC << " because too low dc." << endl; 132 121 133 } 122 134 … … 193 205 UInt_t numexecutions = read.GetNumExecutions(); 194 206 UInt_t numPixels = fDisplay.GetNumPixels(); 195 for (UInt_t pix = 1; pix < numPixels; pix++)207 for (UInt_t pix = 1; pix <= numPixels; pix++) 196 208 fDisplay[pix] /= numexecutions; 197 209 -
trunk/MagicSoft/Mars/mtemp/mifae/library/MCalibrateDC.h
r4073 r4075 43 43 MHCamera fDisplay; 44 44 45 const Double_t fMinDCAllowed; 46 45 47 UInt_t fNumPixels ; 46 TArrayD fDCCalibrationFactor;48 TArrayD fDCCalibrationFactor; 47 49 Double_t fDCMissCalibrationFactor; 48 50 -
trunk/MagicSoft/Mars/mtemp/mifae/library/MPSFFitCalc.cc
r3984 r4075 53 53 const Float_t sqrt2 = sqrt(2.); 54 54 const Float_t sqrt3 = sqrt(3.); 55 const Bool_t usePrintOut = k FALSE;56 const Int_t minuitPrintOut = -1;55 const Bool_t usePrintOut = kTRUE; 56 const Int_t minuitPrintOut = 0; 57 57 58 58 UInt_t numPixels; -
trunk/MagicSoft/Mars/mtemp/mifae/macros/findstars.C
r4073 r4075 85 85 dccal.SetFileName(continuoslightfile); 86 86 87 87 88 const Int_t numblind = 12; 88 89 const Short_t x[numblind] = { 8, 27, … … 90 91 543, 559, 560, 561, 567}; 91 92 const TArrayS blindpixels(numblind,(Short_t*)x); 92 MFindStars findstars;93 findstars.SetBlindPixels(blindpixels);94 93 Float_t ringinterest = 100; //[mm] 95 94 Float_t tailcut = 3.5; 96 95 UInt_t integratedevents = 10; 96 97 MFindStars findstars; 98 // findstars.SetBlindPixels(blindpixels); 97 99 findstars.SetRingInterest(ringinterest); 98 100 findstars.SetDCTailCut(tailcut); … … 131 133 return; 132 134 133 MHCamera display0(geomcam);134 display0.SetPrettyPalette();135 display0.Draw();136 // display0.SetCamContent(dccal.GetDisplay());137 display0.SetCamContent(dccal.GetDCCalibrationFactor());138 gPad->Modified();139 gPad->Update();135 // MHCamera display0(geomcam); 136 // display0.SetPrettyPalette(); 137 // display0.Draw(); 138 // // display0.SetCamContent(dccal.GetDisplay()); 139 // display0.SetCamContent(dccal.GetDCCalibrationFactor()); 140 // gPad->Modified(); 141 // gPad->Update(); 140 142 141 // Remove the comments if you want to go through the file142 // event-by-event:143 if (!HandleInput())144 break;143 // // Remove the comments if you want to go through the file 144 // // event-by-event: 145 // if (!HandleInput()) 146 // break; 145 147 146 148 MHCamera display(geomcam);
Note:
See TracChangeset
for help on using the changeset viewer.