Changeset 4376 for trunk/MagicSoft
- Timestamp:
- 07/14/04 18:37:40 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r4374 r4376 32 32 but possibility to choose between integral or amplitude (with spline) 33 33 extraction. Default is amplitude. 34 35 * mcalib/MHCalibrationChargeBlindPix.[h,cc] 36 - use the variable fPixId to design an ID to the class. 37 Later, a new class MHCalibrationChargeBlindCam can host 38 the different blind pixels as individual 39 MHCalibrationChargeBlindPix. 40 - Default ID is 0 which is also default in MExtractedSignalBlindPix 41 - for current code, nothing has thus changed so far... 34 42 35 43 -
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeBlindPix.h
r4327 r4376 30 30 static const Axis_t fgChargeFirst; //! Default for fFirst (now set to: -100.5 ) 31 31 static const Axis_t fgChargeLast; //! Default for fLast (now set to: 5199.5 ) 32 static const Float_t fgSinglePheCut; //! Default for fSinglePheCut (now set to: 200 ) 33 static const Float_t fgNumSinglePheLimit; //! Default for fNumSinglePheLimit (now set to: 50 ) 34 static const UInt_t gkNumBlindPixels; //! Current Number of blind pixels in the camera 35 static const UInt_t gkModificationRun; //! Run number from which on the number of blind pixels has changed to 3. 32 static const Float_t fgSinglePheCut; //! Default for fSinglePheCut (now set to: 200 ) 33 static const Float_t fgNumSinglePheLimit; //! Default for fNumSinglePheLimit (now set to: 50) 36 34 37 35 static const Double_t gkElectronicAmp; // Electronic Amplification after the PMT (in FADC counts/N_e) … … 50 48 TF1 *fSinglePheFit; // Single Phe Fit (Gaussians convoluted with Poisson) 51 49 52 UInt_t fNumSinglePhes; // Number of entries in fASinglePheFADCSlices 53 UInt_t fNumPedestals; // Number of entries in fAPedestalFADCSlices 50 UInt_t fNumSinglePhes; // Number of entries in fASinglePheFADCSlices 51 UInt_t fNumPedestals; // Number of entries in fAPedestalFADCSlices 54 52 55 53 Double_t fLambda; // Poisson mean from Single-phe fit … … 59 57 Double_t fSigma0; // Sigma of the pedestal 60 58 Double_t fSigma1; // Sigma of single-phe peak 61 62 59 Double_t fLambdaErr; // Error of Poisson mean from Single-phe fit 63 60 Double_t fLambdaCheckErr; // Error of Poisson mean from Pedestal fit alone … … 66 63 Double_t fSigma0Err; // Error of Sigma of the pedestal 67 64 Double_t fSigma1Err; // Error of Sigma of single-phe peak 68 69 65 Double_t fChisquare; // Chisquare of single-phe fit 70 66 Int_t fNDF; // Ndof of single-phe fit 71 67 Double_t fProb; // Probability of singleo-phe fit 72 73 68 Double_t fMeanPedestal; // Mean pedestal from pedestal run 74 69 Double_t fSigmaPedestal; // Sigma pedestal from pedestal run 75 76 70 Double_t fMeanPedestalErr; // Error of Mean pedestal from pedestal run 77 71 Double_t fSigmaPedestalErr; // Error of Sigma pedestal from pedestal run 78 72 79 73 Byte_t fFlags; // Bit-field for the flags 80 enum { kSinglePheFitOK, kPedestalFitOK }; // Possible bits to be set74 enum { kSinglePheFitOK, kPedestalFitOK }; // Possible bits to be set 81 75 82 76 TPaveText *fFitLegend; //! Some legend to display the fit results … … 98 92 99 93 void Clear(Option_t *o=""); 94 95 // TObject *Clone(const char *) const; 100 96 101 97 Bool_t SetupFill(const MParList *pList); … … 104 100 Bool_t Finalize(); 105 101 102 // Getters 103 const Double_t GetLambda () const { return fLambda; } 104 const Double_t GetLambdaCheck () const { return fLambdaCheck; } 105 const Double_t GetMu0 () const { return fMu0; } 106 const Double_t GetMu1 () const { return fMu1; } 107 const Double_t GetSigma0 () const { return fSigma0; } 108 const Double_t GetSigma1 () const { return fSigma1; } 109 110 const Double_t GetLambdaErr () const { return fLambdaErr; } 111 const Double_t GetLambdaCheckErr() const { return fLambdaCheckErr; } 112 const Double_t GetMu0Err () const { return fMu0Err; } 113 const Double_t GetMu1Err () const { return fMu1Err; } 114 const Double_t GetSigma0Err () const { return fSigma0Err; } 115 const Double_t GetSigma1Err () const { return fSigma1Err; } 116 117 TVector &GetASinglePheFADCSlices() { return fASinglePheFADCSlices; } 118 const TVector &GetASinglePheFADCSlices() const { return fASinglePheFADCSlices; } 119 120 TVector &GetAPedestalFADCSlices() { return fAPedestalFADCSlices; } 121 const TVector &GetAPedestalFADCSlices() const { return fAPedestalFADCSlices; } 122 123 const Bool_t IsSinglePheFitOK() const; 124 const Bool_t IsPedestalFitOK() const; 125 106 126 // Setters 107 127 void SetSinglePheCut ( const Float_t cut =fgSinglePheCut ) { fSinglePheCut = cut; } … … 115 135 void SetSinglePheFitOK ( const Bool_t b=kTRUE); 116 136 void SetPedestalFitOK ( const Bool_t b=kTRUE); 117 118 // Getters119 const Double_t GetLambda() const { return fLambda; }120 const Double_t GetLambdaCheck() const { return fLambdaCheck; }121 const Double_t GetMu0() const { return fMu0; }122 const Double_t GetMu1() const { return fMu1; }123 const Double_t GetSigma0() const { return fSigma0; }124 const Double_t GetSigma1() const { return fSigma1; }125 126 const Double_t GetLambdaErr() const { return fLambdaErr; }127 const Double_t GetLambdaCheckErr() const { return fLambdaCheckErr; }128 const Double_t GetMu0Err() const { return fMu0Err; }129 const Double_t GetMu1Err() const { return fMu1Err; }130 const Double_t GetSigma0Err() const { return fSigma0Err; }131 const Double_t GetSigma1Err() const { return fSigma1Err; }132 133 TVector &GetASinglePheFADCSlices() { return fASinglePheFADCSlices; }134 const TVector &GetASinglePheFADCSlices() const { return fASinglePheFADCSlices; }135 136 TVector &GetAPedestalFADCSlices() { return fAPedestalFADCSlices; }137 const TVector &GetAPedestalFADCSlices() const { return fAPedestalFADCSlices; }138 139 const Bool_t IsSinglePheFitOK() const;140 const Bool_t IsPedestalFitOK() const;141 137 142 138 // Draws -
trunk/MagicSoft/Mars/msignal/MExtractBlindPixel.cc
r4374 r4376 255 255 { 256 256 fBlindPixel->SetBlindPixelIdx(fBlindPixelIdx.At(0)); 257 SetExtractionType(kFilter); 257 258 } 258 259 -
trunk/MagicSoft/Mars/msignal/MExtractBlindPixel.h
r4374 r4376 44 44 Byte_t fExtractionType; 45 45 46 enum ExtractionType_t { kAmplitude, kIntegral };46 enum ExtractionType_t { kAmplitude, kIntegral, kFilter }; 47 47 48 48 void FindAmplitude (Byte_t *firstused, Byte_t *lowgain, Float_t &sum, Byte_t &sat);
Note:
See TracChangeset
for help on using the changeset viewer.