Ignore:
Timestamp:
09/12/04 18:54:50 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhcalib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhcalib/MHGausEvents.cc

    r4936 r4951  
    272272  MHGausEvents &pix = (MHGausEvents&)*MH::Clone(name);
    273273 
     274
    274275  //
    275276  // Copy data members
     
    308309  pix.fNDFLimit  = fNDFLimit;
    309310  pix.fSigma     = fSigma;
    310   pix.fSigma     = fSigmaErr;
     311  pix.fSigmaErr  = fSigmaErr;
    311312  pix.fProb      = fProb;
    312313  pix.fProbLimit = fProbLimit;
    313  
     314
    314315  return &pix;
    315316}
    316 
    317317
    318318
     
    555555}
    556556
    557 void MHGausEvents::DrawEvents()
     557void MHGausEvents::DrawEvents(Option_t *opt)
    558558{
    559559 
     
    566566  fGraphEvents->SetBit(kCanDelete);
    567567  fGraphEvents->SetTitle("Events with time");
    568   fGraphEvents->Draw("AL");
    569  
     568
     569  TString option(opt);
     570  option.ToLower();
     571
     572  if (option.Contains("same"))
     573    {
     574      option.ReplaceAll("same","");     
     575      fGraphEvents->Draw(option+"L");
     576    }
     577  else
     578    fGraphEvents->Draw(option+"AL"); 
    570579}
    571580
  • trunk/MagicSoft/Mars/mhcalib/MHGausEvents.h

    r4930 r4951  
    2525  const static Int_t    fgPowerProbabilityBins; //! Default for fPowerProbabilityBins (now set to: 20)
    2626 
     27protected:
     28
    2729  Int_t    fBinsAfterStripping;        // Bins for the Gauss Histogram after stripping off the zeros at both ends
    2830  Int_t    fCurrentSize;               // Current size of the array fEvents
     
    3840          kExcluded };                 // Bits for information about fit results
    3941 
    40 protected:
    41 
    4242  TArrayF  fEvents;                    // Array which holds the entries of GausHist
    4343  TF1     *fFGausFit;                  // Gauss fit for fHGausHist
     
    5959  virtual Float_t *CreateEventXaxis(Int_t n);  // Create an x-axis for the Event TGraphs
    6060  virtual Float_t *CreatePSDXaxis(Int_t n);    // Create an x-axis for the PSD TGraphs
    61   virtual void     CreateGraphEvents();        // Create the TGraph fGraphEvents of fEvents
    62   virtual void     CreateGraphPowerSpectrum(); // Create the TGraph fGraphPowerSpectrum out of fPowerSpectrum
    6361
    6462  void DrawPowerSpectrum(TVirtualPad &pad, Int_t i);  // Draw graph of fPowerSpectrum and fHPowerProbability
     
    8078  // Draws
    8179  void Draw(Option_t *option="");       // Default Draw
    82   void DrawEvents();                      // Draw graph of fEvents
     80  void DrawEvents(Option_t *option="");   // Draw graph of fEvents
    8381
    8482  // Inits
     
    155153
    156154  void CreateFourierSpectrum();                   // Create the fourier spectrum out of fEvents
    157  
     155  virtual void     CreateGraphEvents();        // Create the TGraph fGraphEvents of fEvents
     156  virtual void     CreateGraphPowerSpectrum(); // Create the TGraph fGraphPowerSpectrum out of fPowerSpectrum
     157
    158158  ClassDef(MHGausEvents, 1) // Base class for events with Gaussian distributed values
    159159};
Note: See TracChangeset for help on using the changeset viewer.