TH1K Class Reference

#include <TH1K.h>

Inheritance diagram for TH1K:

TH1 TArrayF TH1 TArrayF TArray TArray TAttMarker TAttFill TAttLine TNamed TAttMarker TAttFill TAttLine TNamed TArray TArray TAttMarker TAttFill TAttLine TNamed TAttMarker TAttFill TAttLine TNamed List of all members.

Public Member Functions

 TH1K ()
 TH1K (const char *name, const char *title, Int_t nbinsx, Double_t xlow, Double_t xup, Int_t k=0)
virtual ~TH1K ()
virtual Int_t Fill (Double_t x)
virtual Int_t Fill (Double_t x, Double_t w)
virtual Int_t Fill (const char *name, Double_t w)
virtual Double_t GetBinContent (Int_t bin) const
virtual Double_t GetBinContent (Int_t bin, Int_t) const
virtual Double_t GetBinContent (Int_t bin, Int_t, Int_t) const
virtual Double_t GetBinError (Int_t bin) const
virtual Double_t GetBinError (Int_t bin, Int_t) const
virtual Double_t GetBinError (Int_t bin, Int_t, Int_t) const
virtual void Reset (Option_t *option="")
virtual void SavePrimitive (ostream &out, Option_t *option="")
void SetKOrd (Int_t k)
 TH1K ()
 TH1K (const char *name, const char *title, Int_t nbinsx, Double_t xlow, Double_t xup, Int_t k=0)
virtual ~TH1K ()
virtual Int_t Fill (Double_t x)
virtual Int_t Fill (Double_t x, Double_t w)
virtual Int_t Fill (const char *name, Double_t w)
virtual Double_t GetBinContent (Int_t bin) const
virtual Double_t GetBinContent (Int_t bin, Int_t) const
virtual Double_t GetBinContent (Int_t bin, Int_t, Int_t) const
virtual Double_t GetBinError (Int_t bin) const
virtual Double_t GetBinError (Int_t bin, Int_t) const
virtual Double_t GetBinError (Int_t bin, Int_t, Int_t) const
virtual void Reset (Option_t *option="")
virtual void SavePrimitive (ostream &out, Option_t *option="")
void SetKOrd (Int_t k)

Protected Attributes

Int_t fReady
Int_t fNIn
Int_t fKOrd
Int_t fKCur

Private Member Functions

void Sort ()
void Sort ()

Detailed Description

Definition at line 27 of file TH1K.h.


Constructor & Destructor Documentation

TH1K::TH1K (  ) 

TH1K::TH1K ( const char *  name,
const char *  title,
Int_t  nbinsx,
Double_t  xlow,
Double_t  xup,
Int_t  k = 0 
)

Definition at line 53 of file TH1K.cxx.

References TH1::fDimension, fKCur, fKOrd, fNIn, and fReady.

TH1K::~TH1K (  )  [virtual]

Definition at line 68 of file TH1K.cxx.

TH1K::TH1K (  ) 

TH1K::TH1K ( const char *  name,
const char *  title,
Int_t  nbinsx,
Double_t  xlow,
Double_t  xup,
Int_t  k = 0 
)

virtual TH1K::~TH1K (  )  [virtual]


Member Function Documentation

void TH1K::Sort (  )  [private]

Definition at line 220 of file TH1K.cxx.

References fNIn, TArrayF::GetArray(), and TH1K_fcompare().

Int_t TH1K::Fill ( Double_t  x  )  [virtual]

Reimplemented from TH1.

Definition at line 75 of file TH1K.cxx.

References TArrayF::AddAt(), TH1::fEntries, TH1::fgStatOverflows, TAxis::FindBin(), TArray::fN, fNIn, fReady, TH1::fTsumw, TH1::fTsumw2, TH1::fTsumwx, TH1::fTsumwx2, TH1::fXaxis, TAxis::GetNbins(), and TArrayF::Set().

virtual Int_t TH1K::Fill ( Double_t  x,
Double_t  w 
) [inline, virtual]

Reimplemented from TH1.

Definition at line 42 of file TH1K.h.

References TH1::Fill().

virtual Int_t TH1K::Fill ( const char *  name,
Double_t  w 
) [inline, virtual]

Reimplemented from TH1.

Definition at line 43 of file TH1K.h.

References TH1::Fill().

Double_t TH1K::GetBinContent ( Int_t  bin  )  const [virtual]

Reimplemented from TH1.

Definition at line 105 of file TH1K.cxx.

References TMath::Abs(), TMath::BinarySearch(), TArrayF::fArray, fKCur, fKOrd, fNIn, fReady, TH1::GetBinCenter(), TH1::GetBinWidth(), and x.

Referenced by GetBinContent(), and GetBinError().

virtual Double_t TH1K::GetBinContent ( Int_t  bin,
Int_t   
) const [inline, virtual]

Reimplemented from TH1.

Definition at line 45 of file TH1K.h.

References GetBinContent().

virtual Double_t TH1K::GetBinContent ( Int_t  bin,
Int_t  ,
Int_t   
) const [inline, virtual]

Reimplemented from TH1.

Definition at line 46 of file TH1K.h.

References GetBinContent().

Double_t TH1K::GetBinError ( Int_t  bin  )  const [virtual]

Reimplemented from TH1.

Definition at line 133 of file TH1K.cxx.

References fKCur, fNIn, GetBinContent(), and TMath::Sqrt().

Referenced by GetBinError().

virtual Double_t TH1K::GetBinError ( Int_t  bin,
Int_t   
) const [inline, virtual]

Reimplemented from TH1.

Definition at line 49 of file TH1K.h.

References GetBinError().

virtual Double_t TH1K::GetBinError ( Int_t  bin,
Int_t  ,
Int_t   
) const [inline, virtual]

Reimplemented from TH1.

Definition at line 50 of file TH1K.h.

References GetBinError().

void TH1K::Reset ( Option_t option = ""  )  [virtual]

Reimplemented from TH1.

Definition at line 142 of file TH1K.cxx.

References fNIn, fReady, and TH1::Reset().

void TH1K::SavePrimitive ( ostream &  out,
Option_t option = "" 
) [virtual]

Reimplemented from TH1.

Definition at line 153 of file TH1K.cxx.

References TObject::ClassName(), TString::Contains(), TString::Data(), TArrayF::fArray, TH1::fDirectory, fKOrd, fNIn, TH1::fOption, TH1::fXaxis, TH1::fYaxis, TH1::fZaxis, TNamed::GetName(), TAxis::GetNbins(), TNamed::GetTitle(), TH1::GetXaxis(), TAxis::GetXmax(), TAxis::GetXmin(), i, TH1::kNoStats, TString::Length(), TAxis::SaveAttributes(), TAttFill::SaveFillAttributes(), TAttLine::SaveLineAttributes(), TAttMarker::SaveMarkerAttributes(), TObject::TestBit(), and TString::ToLower().

void TH1K::SetKOrd ( Int_t  k  )  [inline]

Definition at line 56 of file TH1K.h.

References fKOrd.

void TH1K::Sort (  )  [private]

virtual Int_t TH1K::Fill ( Double_t  x  )  [virtual]

Reimplemented from TH1.

virtual Int_t TH1K::Fill ( Double_t  x,
Double_t  w 
) [inline, virtual]

Reimplemented from TH1.

Definition at line 42 of file TH1K.h.

References TH1::Fill().

virtual Int_t TH1K::Fill ( const char *  name,
Double_t  w 
) [inline, virtual]

Reimplemented from TH1.

Definition at line 43 of file TH1K.h.

References TH1::Fill().

virtual Double_t TH1K::GetBinContent ( Int_t  bin  )  const [virtual]

Reimplemented from TH1.

virtual Double_t TH1K::GetBinContent ( Int_t  bin,
Int_t   
) const [inline, virtual]

Reimplemented from TH1.

Definition at line 45 of file TH1K.h.

References GetBinContent().

virtual Double_t TH1K::GetBinContent ( Int_t  bin,
Int_t  ,
Int_t   
) const [inline, virtual]

Reimplemented from TH1.

Definition at line 46 of file TH1K.h.

References GetBinContent().

virtual Double_t TH1K::GetBinError ( Int_t  bin  )  const [virtual]

Reimplemented from TH1.

virtual Double_t TH1K::GetBinError ( Int_t  bin,
Int_t   
) const [inline, virtual]

Reimplemented from TH1.

Definition at line 49 of file TH1K.h.

References GetBinError().

virtual Double_t TH1K::GetBinError ( Int_t  bin,
Int_t  ,
Int_t   
) const [inline, virtual]

Reimplemented from TH1.

Definition at line 50 of file TH1K.h.

References GetBinError().

virtual void TH1K::Reset ( Option_t option = ""  )  [virtual]

Reimplemented from TH1.

virtual void TH1K::SavePrimitive ( ostream &  out,
Option_t option = "" 
) [virtual]

Reimplemented from TH1.

void TH1K::SetKOrd ( Int_t  k  )  [inline]

Definition at line 56 of file TH1K.h.

References fKOrd.


Member Data Documentation

Int_t TH1K::fReady [protected]

Definition at line 32 of file TH1K.h.

Referenced by Fill(), GetBinContent(), Reset(), and TH1K().

Int_t TH1K::fNIn [protected]

Definition at line 33 of file TH1K.h.

Referenced by Fill(), GetBinContent(), GetBinError(), Reset(), SavePrimitive(), Sort(), and TH1K().

Int_t TH1K::fKOrd [protected]

Definition at line 34 of file TH1K.h.

Referenced by GetBinContent(), SavePrimitive(), SetKOrd(), and TH1K().

Int_t TH1K::fKCur [protected]

Definition at line 35 of file TH1K.h.

Referenced by GetBinContent(), GetBinError(), and TH1K().


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:41:22 2011 for ROOT_528-00b_version by  doxygen 1.5.1