Changeset 3699
- Timestamp:
- 04/09/04 17:45:12 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mcalib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeBlindPix.h
r3678 r3699 58 58 ~MCalibrationChargeBlindPix() {} 59 59 60 void Clear(Option_t *o=""); 61 62 // Setters 63 void SetColor ( const MCalibrationCam::PulserColor_t color ) { fColor = color; } 64 void SetLambda ( const Float_t f ) { fLambda = f; } 65 void SetLambdaVar ( const Float_t f ) { fLambdaVar = f; } 66 void SetLambdaCheck ( const Float_t f ) { fLambdaCheck = f; } 67 void SetLambdaCheckErr ( const Float_t f ) { fLambdaCheckErr = f; } 68 void SetMu0 ( const Float_t f ) { fMu0 = f; } 69 void SetMu0Err ( const Float_t f ) { fMu0Err = f; } 70 void SetMu1 ( const Float_t f ) { fMu1 = f; } 71 void SetMu1Err ( const Float_t f ) { fMu1Err = f; } 72 void SetSigma0 ( const Float_t f ) { fSigma0 = f; } 73 void SetSigma0Err ( const Float_t f ) { fSigma0Err = f; } 74 void SetSigma1 ( const Float_t f ) { fSigma1 = f; } 75 void SetSigma1Err ( const Float_t f ) { fSigma1Err = f; } 76 77 void SetOscillating ( const Bool_t b=kTRUE); 78 void SetChargeFitValid ( const Bool_t b=kTRUE); 79 void SetPedestalFitOK ( const Bool_t b=kTRUE); 80 void SetSinglePheFitOK ( const Bool_t b=kTRUE); 81 void SetFluxInsidePlexiglassAvailable( const Bool_t b=kTRUE); 60 Bool_t CalcFluxInsidePlexiglass(); 61 void Clear(Option_t *o=""); 82 62 83 63 // Getters 84 Float_t GetLambda() const { return fLambda; } 85 Float_t GetLambdaErr() const; 86 Float_t GetLambdaRelVar() const; 87 Float_t GetLambdaCheck() const { return fLambdaCheck; } 88 Float_t GetLambdaCheckErr() const { return fLambdaCheckErr; } 89 Float_t GetFluxInsidePlexiglass() const { return fFluxInsidePlexiglass; } 90 Float_t GetFluxInsidePlexiglassErr() const; 91 Float_t GetFluxInsidePlexiglassRelVar() const; 92 Float_t GetMu0() const { return fMu0; } 93 Float_t GetMu0Err() const { return fMu0Err; } 94 Float_t GetMu1() const { return fMu1; } 95 Float_t GetMu1Err() const { return fMu1Err; } 96 Float_t GetSigma0() const { return fSigma0; } 97 Float_t GetSigma0Err() const { return fSigma0Err; } 98 Float_t GetSigma1() const { return fSigma1; } 99 Float_t GetSigma1Err() const { return fSigma1Err; } 64 MCalibrationCam::PulserColor_t GetColor () const { return fColor; } 65 Float_t GetLambda () const { return fLambda; } 66 Float_t GetLambdaErr () const; 67 Float_t GetLambdaRelVar () const; 68 Float_t GetLambdaCheck () const { return fLambdaCheck; } 69 Float_t GetLambdaCheckErr () const { return fLambdaCheckErr; } 70 Float_t GetFluxInsidePlexiglass () const { return fFluxInsidePlexiglass; } 71 Float_t GetFluxInsidePlexiglassErr () const; 72 Float_t GetFluxInsidePlexiglassRelVar () const; 73 Float_t GetMu0 () const { return fMu0; } 74 Float_t GetMu0Err () const { return fMu0Err; } 75 Float_t GetMu1 () const { return fMu1; } 76 Float_t GetMu1Err () const { return fMu1Err; } 77 Float_t GetSigma0 () const { return fSigma0; } 78 Float_t GetSigma0Err () const { return fSigma0Err; } 79 Float_t GetSigma1 () const { return fSigma1; } 80 Float_t GetSigma1Err () const { return fSigma1Err; } 100 81 101 Bool_t IsOscillating ()const;102 Bool_t IsChargeFitValid ()const;103 Bool_t IsPedestalFitOK ()const;104 Bool_t IsSinglePheFitOK ()const;105 Bool_t IsFluxInsidePlexiglassAvailable ()const;82 Bool_t IsOscillating () const; 83 Bool_t IsChargeFitValid () const; 84 Bool_t IsPedestalFitOK () const; 85 Bool_t IsSinglePheFitOK () const; 86 Bool_t IsFluxInsidePlexiglassAvailable () const; 106 87 107 Bool_t CalcFluxInsidePlexiglass(); 88 // Setters 89 void SetColor ( const MCalibrationCam::PulserColor_t color ) { fColor = color; } 90 void SetLambda ( const Float_t f ) { fLambda = f; } 91 void SetLambdaVar ( const Float_t f ) { fLambdaVar = f; } 92 void SetLambdaCheck ( const Float_t f ) { fLambdaCheck = f; } 93 void SetLambdaCheckErr ( const Float_t f ) { fLambdaCheckErr = f; } 94 void SetMu0 ( const Float_t f ) { fMu0 = f; } 95 void SetMu0Err ( const Float_t f ) { fMu0Err = f; } 96 void SetMu1 ( const Float_t f ) { fMu1 = f; } 97 void SetMu1Err ( const Float_t f ) { fMu1Err = f; } 98 void SetSigma0 ( const Float_t f ) { fSigma0 = f; } 99 void SetSigma0Err ( const Float_t f ) { fSigma0Err = f; } 100 void SetSigma1 ( const Float_t f ) { fSigma1 = f; } 101 void SetSigma1Err ( const Float_t f ) { fSigma1Err = f; } 102 103 void SetOscillating ( const Bool_t b=kTRUE ); 104 void SetChargeFitValid ( const Bool_t b=kTRUE ); 105 void SetPedestalFitOK ( const Bool_t b=kTRUE ); 106 void SetSinglePheFitOK ( const Bool_t b=kTRUE ); 107 void SetFluxInsidePlexiglassAvailable( const Bool_t b=kTRUE); 108 108 109 109 ClassDef(MCalibrationChargeBlindPix, 1) // Container Charge Calibration Results Blind Pixel -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc
r3698 r3699 418 418 // Initialize the pulser colours 419 419 // 420 if (fCam->GetPulserColor() == MCalibrationCam::kNONE) 421 { 422 fCam->SetPulserColor( fPulserColor ); 423 424 if (fBlindPixel) 425 fBlindPixel->SetColor( fPulserColor ); 426 427 if (fPINDiode) 428 fPINDiode->SetColor( fPulserColor ); 429 } 430 420 431 if (fPulserColor != fCam->GetPulserColor()) 421 432 { 422 *fLog << err << GetDescriptor() << ": Pulser colour has changed w.r.t. last file." 423 << "This feature is not yet implemented, sorry ... aborting " << endl; 424 return kFALSE; 425 } 426 427 fCam->SetPulserColor( fPulserColor ); 433 *fLog << err << GetDescriptor() 434 << ": Pulser colour has changed w.r.t. last file in MCalibrationChargeCam" << endl; 435 *fLog << err << "This feature is not yet implemented, sorry ... aborting " << endl; 436 return kFALSE; 437 } 428 438 429 439 if (fBlindPixel) 430 fBlindPixel->SetColor( fPulserColor ); 440 if (fPulserColor != fBlindPixel->GetColor()) 441 { 442 *fLog << err << GetDescriptor() 443 << ": Pulser colour has changed w.r.t. last file in MCalibrationChargeBlindPix." << endl; 444 *fLog << err << "This feature is not yet implemented, sorry ... aborting " << endl; 445 return kFALSE; 446 } 431 447 432 448 if (fPINDiode) 433 fPINDiode->SetColor( fPulserColor ); 449 if (fPulserColor != fPINDiode->GetColor()) 450 { 451 *fLog << err << GetDescriptor() 452 << ": Pulser colour has changed w.r.t. last file in MCalibrationChargePINDiode." << endl; 453 *fLog << err << "This feature is not yet implemented, sorry ... aborting " << endl; 454 return kFALSE; 455 } 434 456 435 457
Note:
See TracChangeset
for help on using the changeset viewer.