Changeset 4947 for trunk/MagicSoft
- Timestamp:
- 09/10/04 22:32:02 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MHPedestalCam.cc
r4905 r4947 169 169 // - MHCalibrationCam::fAverageHiGainSectors 170 170 // 171 // Sets number of bins to MHCalibrationCam::fAverageNbins for:172 // - MHCalibrationCam::fAverageHiGainAreas, MHCalibrationCam::fAverageLoGainAreas173 // - MHCalibrationCam::fAverageHiGainSectors, MHCalibrationCam::fAverageLoGainSectors174 //175 171 Bool_t MHPedestalCam::ReInitHists(MParList *pList) 176 172 { … … 273 269 274 270 GetAverageHiGainArea(j).GetHGausHist()->SetTitle("Pedestals average Area Idx "); 275 GetAverageHiGainArea(j).SetNbins(fAverageNbins);276 271 277 272 InitPedHists((MHPedestalPix&)GetAverageHiGainArea(j),j,fExtractHiGainSlices); … … 291 286 292 287 GetAverageLoGainArea(j).GetHGausHist()->SetTitle("Pedestals average Area Idx "); 293 GetAverageLoGainArea(j).SetNbins(fAverageNbins);294 288 295 289 InitPedHists((MHPedestalPix&)GetAverageLoGainArea(j),j,fExtractLoGainSlices); … … 309 303 310 304 GetAverageHiGainSector(j).GetHGausHist()->SetTitle("Pedestals average Sector "); 311 GetAverageHiGainSector(j).SetNbins(fAverageNbins);312 305 313 306 InitPedHists((MHPedestalPix&)GetAverageHiGainSector(j),j,fExtractHiGainSlices); … … 327 320 328 321 GetAverageLoGainSector(j).GetHGausHist()->SetTitle("Pedestals average Sector "); 329 GetAverageLoGainSector(j).SetNbins(fAverageNbins);330 322 331 323 InitPedHists((MHPedestalPix&)GetAverageLoGainSector(j),j,fExtractLoGainSlices); … … 351 343 void MHPedestalCam::InitPedHists(MHPedestalPix &hist, const Int_t i, const Float_t nslices) 352 344 { 345 353 346 hist.InitBins(); 354 347 hist.ChangeHistId(i); -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.h
r4912 r4947 99 99 kCheckExtractionWindow, 100 100 kCheckHistOverflow, 101 kCheckDeviatingBehavior 101 kCheckDeviatingBehavior, 102 kCheckOscillations 102 103 }; // Possible Checks 103 104 … … 123 124 void PrintUncalibrated( MBadPixelsPix::UncalibratedType_t typ, const char *text) const; 124 125 126 // Query checks 127 Bool_t IsCheckDeadPixels () const { return TESTBIT(fCheckFlags,kCheckDeadPixels); } 128 Bool_t IsCheckDeviatingBehavior() const { return TESTBIT(fCheckFlags,kCheckDeviatingBehavior); } 129 Bool_t IsCheckExtractionWindow () const { return TESTBIT(fCheckFlags,kCheckExtractionWindow); } 130 Bool_t IsCheckHistOverflow () const { return TESTBIT(fCheckFlags,kCheckHistOverflow); } 131 Bool_t IsCheckOscillations () const { return TESTBIT(fCheckFlags,kCheckOscillations); } 132 125 133 // Global fit results 126 134 void SetPheFitOK ( const Int_t aidx, const Bool_t b=kTRUE ) { … … 140 148 : CLRBIT(fPINDiodeFlags[idx], kPINDiodeFitOK); } 141 149 142 Bool_t IsCheckDeadPixels () const { return TESTBIT(fCheckFlags,kCheckDeadPixels); }143 Bool_t IsCheckExtractionWindow () const { return TESTBIT(fCheckFlags,kCheckExtractionWindow); }144 Bool_t IsCheckHistOverflow () const { return TESTBIT(fCheckFlags,kCheckHistOverflow); }145 Bool_t IsCheckDeviatingBehavior() const { return TESTBIT(fCheckFlags,kCheckDeviatingBehavior); }146 147 150 Int_t PreProcess (MParList *pList); 148 151 Bool_t ReInit (MParList *pList); … … 162 165 void SetChargeErrLimit ( const Float_t f=fgChargeErrLimit ) { fChargeErrLimit = f; } 163 166 void SetChargeRelErrLimit ( const Float_t f=fgChargeRelErrLimit ) { fChargeRelErrLimit = f; } 167 168 // Checks 169 void SetCheckDeadPixels( const Bool_t b=kTRUE ) { 170 b ? SETBIT(fCheckFlags,kCheckDeadPixels) 171 : CLRBIT(fCheckFlags,kCheckDeadPixels); } 172 void SetCheckDeviatingBehavior( const Bool_t b=kTRUE ) { 173 b ? SETBIT(fCheckFlags,kCheckDeviatingBehavior) 174 : CLRBIT(fCheckFlags,kCheckDeviatingBehavior); } 175 void SetCheckExtractionWindow( const Bool_t b=kTRUE ) { 176 b ? SETBIT(fCheckFlags,kCheckExtractionWindow) 177 : CLRBIT(fCheckFlags,kCheckExtractionWindow); } 178 void SetCheckHistOverflow( const Bool_t b=kTRUE ) { 179 b ? SETBIT(fCheckFlags,kCheckHistOverflow) 180 : CLRBIT(fCheckFlags,kCheckHistOverflow); } 181 void SetCheckOscillations( const Bool_t b=kTRUE ) { 182 b ? SETBIT(fCheckFlags,kCheckOscillations) 183 : CLRBIT(fCheckFlags,kCheckOscillations); } 184 164 185 void SetDebug ( const Bool_t b=kTRUE ) { b ? SETBIT(fFlags, kDebug) 165 186 : CLRBIT(fFlags, kDebug); } … … 172 193 void SetPulserColor ( const MCalibrationCam::PulserColor_t col ) { fPulserColor = col; } 173 194 174 // Checks175 void SetCheckDeadPixels( const Bool_t b=kTRUE ) {176 b ? SETBIT(fCheckFlags,kCheckDeadPixels)177 : CLRBIT(fCheckFlags,kCheckDeadPixels); }178 void SetCheckExtractionWindow( const Bool_t b=kTRUE ) {179 b ? SETBIT(fCheckFlags,kCheckExtractionWindow)180 : CLRBIT(fCheckFlags,kCheckExtractionWindow); }181 void SetCheckHistOverflow( const Bool_t b=kTRUE ) {182 b ? SETBIT(fCheckFlags,kCheckHistOverflow)183 : CLRBIT(fCheckFlags,kCheckHistOverflow); }184 void SetCheckDeviatingBehavior( const Bool_t b=kTRUE ) {185 b ? SETBIT(fCheckFlags,kCheckDeviatingBehavior)186 : CLRBIT(fCheckFlags,kCheckDeviatingBehavior); }187 188 195 ClassDef(MCalibrationChargeCalc, 1) // Task calculating Calibration Containers and Quantum Efficiencies 189 196 }; -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationChargeCam.cc
r4942 r4947 180 180 // - fTimeLowerLimit to fgTimeLowerLimit 181 181 // - fTimeUpperLimit to fgTimeUpperLimit 182 // - fNbins to fgChargeHiGainLast-fgChargeHiGainFirst 183 // - fFirst to fgChargeHiGainFirst 184 // - fLast to fgChargeHiGainLast 182 185 // 183 186 MHCalibrationChargeCam::MHCalibrationChargeCam(const char *name, const char *title) … … 193 196 SetTimeUpperLimit(); 194 197 198 SetNbins((Int_t)(fgChargeHiGainLast-fgChargeHiGainFirst)/2); 199 SetFirst(fgChargeHiGainFirst); 200 SetLast (fgChargeHiGainLast ); 201 202 SetLoGainNbins((Int_t)(fgChargeLoGainLast-fgChargeLoGainFirst)/2); 203 SetLoGainFirst(fgChargeLoGainFirst); 204 SetLoGainLast (fgChargeLoGainLast ); 195 205 } 196 206 … … 323 333 pix.SetAbsTimeLast(higainsamples-0.5); 324 334 325 pix.SetNbins( (Int_t)(fgChargeHiGainLast-fgChargeHiGainFirst));326 pix.SetFirst(f gChargeHiGainFirst);327 pix.SetLast (f gChargeHiGainLast);335 pix.SetNbins(fNbins); 336 pix.SetFirst(fFirst); 337 pix.SetLast (fLast); 328 338 329 339 TH1F *h = pix.GetHGausHist(); … … 354 364 pix.SetAbsTimeLast(logainsamples-0.5); 355 365 356 pix.SetNbins( (Int_t)(fgChargeLoGainLast-fgChargeLoGainFirst));357 pix.SetFirst(f gChargeLoGainFirst);358 pix.SetLast (f gChargeLoGainLast);366 pix.SetNbins(fLoGainNbins); 367 pix.SetFirst(fLoGainFirst); 368 pix.SetLast (fLoGainLast); 359 369 360 370 TH1F *h = pix.GetHGausHist(); … … 400 410 pix.SetAbsTimeLast(higainsamples-0.5); 401 411 402 pix.SetNbins( (Int_t)(fgChargeHiGainLast-fgChargeHiGainFirst)*3);403 pix.SetFirst(f gChargeHiGainFirst);404 pix.SetLast (f gChargeHiGainLast);412 pix.SetNbins(fNbins*(Int_t)TMath::Sqrt((Float_t)npixels/nareas)); 413 pix.SetFirst(fFirst); 414 pix.SetLast (fLast); 405 415 406 416 TH1F *h = pix.GetHGausHist(); … … 444 454 pix.SetAbsTimeLast(logainsamples-0.5); 445 455 446 pix.SetNbins( (Int_t)(fgChargeLoGainLast-fgChargeLoGainFirst)*3);447 pix.SetFirst(f gChargeLoGainFirst);448 pix.SetLast (fgChargeLoGainLast);456 pix.SetNbins(fLoGainNbins*(Int_t)TMath::Sqrt((Float_t)npixels/nareas)); 457 pix.SetFirst(fLoGainFirst); 458 pix.SetLast (fLoGainLast); 449 459 450 460 TH1F *h = pix.GetHGausHist(); … … 501 511 pix.SetAbsTimeLast(higainsamples-0.5); 502 512 503 pix.SetNbins( (Int_t)(fgChargeHiGainLast-fgChargeHiGainFirst)*3);504 pix.SetFirst(f gChargeHiGainFirst);505 pix.SetLast (f gChargeHiGainLast);513 pix.SetNbins(fNbins*(Int_t)TMath::Sqrt((Float_t)npixels/nareas)); 514 pix.SetFirst(fFirst); 515 pix.SetLast (fLast); 506 516 507 517 TH1F *h = pix.GetHGausHist(); … … 534 544 pix.SetAbsTimeLast(logainsamples-0.5); 535 545 536 pix.SetNbins( (Int_t)(fgChargeLoGainLast-fgChargeLoGainFirst)*3);537 pix.SetFirst(f gChargeLoGainFirst);538 pix.SetLast (f gChargeLoGainLast);546 pix.SetNbins(fLoGainNbins*(Int_t)TMath::Sqrt((Float_t)npixels/nareas)); 547 pix.SetFirst(fLoGainFirst); 548 pix.SetLast (fLoGainLast); 539 549 540 550 TH1F *h = pix.GetHGausHist(); -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationChargeCam.h
r4929 r4947 39 39 static const Float_t gkLoGainOuterRefLines[7]; //! 40 40 41 MArrayD fSumhiarea ; //! 42 MArrayD fSumloarea ; //! 43 MArrayD fTimehiarea ; //! 44 MArrayD fTimeloarea ; //! 45 MArrayD fSumhisector; //! 46 MArrayD fSumlosector; //! 47 MArrayD fTimehisector; //! 48 MArrayD fTimelosector; //! 41 Int_t fLoGainNbins; // Number of LoGain bins 42 Axis_t fLoGainFirst; // Lower histogram limit low gain 43 Axis_t fLoGainLast; // Upper histogram limit low gain 49 44 50 MArrayI fSathiarea ; //! 51 MArrayI fSatloarea ; //! 52 MArrayI fSathisector; //! 53 MArrayI fSatlosector; //! 45 MArrayD fSumhiarea ; //! 46 MArrayD fSumloarea ; //! 47 MArrayD fTimehiarea ; //! 48 MArrayD fTimeloarea ; //! 49 MArrayD fSumhisector; //! 50 MArrayD fSumlosector; //! 51 MArrayD fTimehisector; //! 52 MArrayD fTimelosector; //! 53 54 MArrayI fSathiarea ; //! 55 MArrayI fSatloarea ; //! 56 MArrayI fSathisector; //! 57 MArrayI fSatlosector; //! 54 58 55 59 Float_t fTimeLowerLimit; // Limit dist. to first signal slice (in units of FADC slices) … … 72 76 73 77 void DrawDataCheckPixel(MHCalibrationChargePix &pix, const Float_t refline[]); 74 void DisplayRefLines (const TH2D *hist,const Float_t refline[]) const;78 void DisplayRefLines ( const TH2D *hist, const Float_t refline[]) const; 75 79 76 80 public: … … 81 85 TObject *Clone(const char *name="") const; 82 86 83 void SetTimeLowerLimit ( const Float_t f=fgTimeLowerLimit ) { fTimeLowerLimit = f; } 84 void SetTimeUpperLimit ( const Float_t f=fgTimeUpperLimit ) { fTimeUpperLimit = f; } 87 void SetLoGainNbins ( const Int_t i ) { fLoGainNbins = i; } 88 void SetLoGainFirst ( const Axis_t f ) { fLoGainFirst = f; } 89 void SetLoGainLast ( const Axis_t f ) { fLoGainLast = f; } 90 91 void SetTimeLowerLimit ( const Float_t f=fgTimeLowerLimit ) { fTimeLowerLimit = f; } 92 void SetTimeUpperLimit ( const Float_t f=fgTimeUpperLimit ) { fTimeUpperLimit = f; } 85 93 86 94 Bool_t GetPixelContent ( Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const; … … 94 102 95 103 #endif 96 97 98 99 100 101 102 103 104
Note:
See TracChangeset
for help on using the changeset viewer.