GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
BasePeak * PeakCreator::CreatePeak ( const TH1 *  h,
Double_t  x,
Option_t *  opt = "" 
)
virtual

It creates a peak at position x for the 1D spectra.

options :

  • bg : creates a peak and its associated backgroud
  • apt : (at peak position) it takes exactly the position x given by in the arguments

Definition at line 532 of file PeakCreator.cpp.