Changeset 4951 for trunk/MagicSoft
- Timestamp:
- 09/12/04 18:54:50 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mhcalib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhcalib/MHGausEvents.cc
r4936 r4951 272 272 MHGausEvents &pix = (MHGausEvents&)*MH::Clone(name); 273 273 274 274 275 // 275 276 // Copy data members … … 308 309 pix.fNDFLimit = fNDFLimit; 309 310 pix.fSigma = fSigma; 310 pix.fSigma 311 pix.fSigmaErr = fSigmaErr; 311 312 pix.fProb = fProb; 312 313 pix.fProbLimit = fProbLimit; 313 314 314 315 return &pix; 315 316 } 316 317 317 318 318 … … 555 555 } 556 556 557 void MHGausEvents::DrawEvents( )557 void MHGausEvents::DrawEvents(Option_t *opt) 558 558 { 559 559 … … 566 566 fGraphEvents->SetBit(kCanDelete); 567 567 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"); 570 579 } 571 580 -
trunk/MagicSoft/Mars/mhcalib/MHGausEvents.h
r4930 r4951 25 25 const static Int_t fgPowerProbabilityBins; //! Default for fPowerProbabilityBins (now set to: 20) 26 26 27 protected: 28 27 29 Int_t fBinsAfterStripping; // Bins for the Gauss Histogram after stripping off the zeros at both ends 28 30 Int_t fCurrentSize; // Current size of the array fEvents … … 38 40 kExcluded }; // Bits for information about fit results 39 41 40 protected:41 42 42 TArrayF fEvents; // Array which holds the entries of GausHist 43 43 TF1 *fFGausFit; // Gauss fit for fHGausHist … … 59 59 virtual Float_t *CreateEventXaxis(Int_t n); // Create an x-axis for the Event TGraphs 60 60 virtual Float_t *CreatePSDXaxis(Int_t n); // Create an x-axis for the PSD TGraphs 61 virtual void CreateGraphEvents(); // Create the TGraph fGraphEvents of fEvents62 virtual void CreateGraphPowerSpectrum(); // Create the TGraph fGraphPowerSpectrum out of fPowerSpectrum63 61 64 62 void DrawPowerSpectrum(TVirtualPad &pad, Int_t i); // Draw graph of fPowerSpectrum and fHPowerProbability … … 80 78 // Draws 81 79 void Draw(Option_t *option=""); // Default Draw 82 void DrawEvents( );// Draw graph of fEvents80 void DrawEvents(Option_t *option=""); // Draw graph of fEvents 83 81 84 82 // Inits … … 155 153 156 154 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 158 158 ClassDef(MHGausEvents, 1) // Base class for events with Gaussian distributed values 159 159 };
Note:
See TracChangeset
for help on using the changeset viewer.