Changeset 4376


Ignore:
Timestamp:
07/14/04 18:37:40 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r4374 r4376  
    3232      but possibility to choose between integral or amplitude (with spline)
    3333      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...
    3442
    3543
  • trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeBlindPix.h

    r4327 r4376  
    3030  static const Axis_t   fgChargeFirst;       //! Default for fFirst        (now set to: -100.5 )
    3131  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)
    3634 
    3735  static const Double_t gkElectronicAmp;     // Electronic Amplification after the PMT (in FADC counts/N_e)
     
    5048  TF1 *fSinglePheFit;                        // Single Phe Fit (Gaussians convoluted with Poisson)
    5149
    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 
    5452
    5553  Double_t  fLambda;                         // Poisson mean from Single-phe fit
     
    5957  Double_t  fSigma0;                         // Sigma of the pedestal
    6058  Double_t  fSigma1;                         // Sigma of single-phe peak
    61 
    6259  Double_t  fLambdaErr;                      // Error of Poisson mean from Single-phe fit
    6360  Double_t  fLambdaCheckErr;                 // Error of Poisson mean from Pedestal fit alone
     
    6663  Double_t  fSigma0Err;                      // Error of  Sigma of the pedestal   
    6764  Double_t  fSigma1Err;                      // Error of  Sigma of single-phe peak
    68  
    6965  Double_t  fChisquare;                      // Chisquare of single-phe fit
    7066  Int_t     fNDF;                            // Ndof of single-phe fit
    7167  Double_t  fProb;                           // Probability of singleo-phe fit
    72  
    7368  Double_t  fMeanPedestal;                   // Mean pedestal from pedestal run
    7469  Double_t  fSigmaPedestal;                  // Sigma pedestal from pedestal run
    75 
    7670  Double_t  fMeanPedestalErr;                // Error of Mean pedestal from pedestal run
    7771  Double_t  fSigmaPedestalErr;               // Error of Sigma pedestal from pedestal run
    78 
     72                                     
    7973  Byte_t    fFlags;                          // Bit-field for the flags
    80   enum { kSinglePheFitOK, kPedestalFitOK };  // Possible bits to be set
     74  enum { kSinglePheFitOK, kPedestalFitOK };    // Possible bits to be set
    8175
    8276  TPaveText *fFitLegend;                     //! Some legend to display the fit results
     
    9892
    9993  void Clear(Option_t *o=""); 
     94 
     95//  TObject *Clone(const char *) const;
    10096
    10197  Bool_t SetupFill(const MParList *pList);
     
    104100  Bool_t Finalize();
    105101 
     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 
    106126  // Setters
    107127  void SetSinglePheCut      ( const Float_t cut =fgSinglePheCut      )    { fSinglePheCut      = cut;      }
     
    115135  void SetSinglePheFitOK    ( const Bool_t b=kTRUE);
    116136  void SetPedestalFitOK     ( const Bool_t b=kTRUE);
    117  
    118   // Getters
    119   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;
    141137 
    142138  // Draws
  • trunk/MagicSoft/Mars/msignal/MExtractBlindPixel.cc

    r4374 r4376  
    255255  {
    256256      fBlindPixel->SetBlindPixelIdx(fBlindPixelIdx.At(0));
     257      SetExtractionType(kFilter);
    257258  }
    258259
  • trunk/MagicSoft/Mars/msignal/MExtractBlindPixel.h

    r4374 r4376  
    4444  Byte_t  fExtractionType;                   
    4545
    46   enum ExtractionType_t { kAmplitude, kIntegral };
     46  enum ExtractionType_t { kAmplitude, kIntegral, kFilter };
    4747
    4848  void FindAmplitude   (Byte_t *firstused, Byte_t *lowgain, Float_t &sum, Byte_t &sat);
Note: See TracChangeset for help on using the changeset viewer.