Algorithm::TH1_c_iterator Class Reference

#include <Convolver.h>

List of all members.

Public Member Functions

 TH1_c_iterator ()
 TH1_c_iterator (const TH1 *hist, int init=1, double scale=1.)
 TH1_c_iterator (const TH1_c_iterator &rhs)
TH1_c_iterator operator++ ()
TH1_c_iterator operator++ (int)
TH1_c_iterator operator-- ()
TH1_c_iterator operator-- (int)
double operator* () const
TH1_c_iterator operator+= (int n)
TH1_c_iterator operator+ (int n) const
TH1_c_iterator operator- (int n) const
bool operator!= (const TH1_c_iterator &rhs) const
bool operator== (const TH1_c_iterator &rhs) const
int operator- (const TH1_c_iterator &rhs) const

Private Attributes

const TH1 * fHist
int fCurrentBin
double fScale

Detailed Description

Definition at line 19 of file Convolver.h.


Constructor & Destructor Documentation

Algorithm::TH1_c_iterator::TH1_c_iterator (  )  [inline]

Definition at line 21 of file Convolver.h.

00021 :fHist(NULL),fCurrentBin(0),fScale(1.){}

Algorithm::TH1_c_iterator::TH1_c_iterator ( const TH1 *  hist,
int  init = 1,
double  scale = 1. 
) [inline]

Definition at line 22 of file Convolver.h.

00022 :fHist(hist),fCurrentBin(init),fScale(scale){}

Algorithm::TH1_c_iterator::TH1_c_iterator ( const TH1_c_iterator rhs  )  [inline]

Definition at line 23 of file Convolver.h.

00023 :fHist(rhs.fHist),fCurrentBin(rhs.fCurrentBin),fScale(rhs.fScale){}


Member Function Documentation

bool Algorithm::TH1_c_iterator::operator!= ( const TH1_c_iterator rhs  )  const [inline]

Definition at line 61 of file Convolver.h.

References fCurrentBin, and fHist.

00061                                                     {
00062        return fCurrentBin!=rhs.fCurrentBin || fHist!=rhs.fHist ;
00063      }

double Algorithm::TH1_c_iterator::operator* (  )  const [inline]

Definition at line 42 of file Convolver.h.

References fCurrentBin, fHist, and fScale.

00042                             { 
00043        if(fHist ) return fHist->GetBinContent(fCurrentBin)*fScale;
00044        return 0;
00045      }

TH1_c_iterator Algorithm::TH1_c_iterator::operator+ ( int  n  )  const [inline]

Definition at line 51 of file Convolver.h.

References fCurrentBin.

00051                                          { 
00052        TH1_c_iterator tmp(*this);
00053        tmp.fCurrentBin+=n;
00054        return tmp;
00055      }

TH1_c_iterator Algorithm::TH1_c_iterator::operator++ ( int   )  [inline]

Definition at line 28 of file Convolver.h.

References fCurrentBin.

00028                                    {
00029        TH1_c_iterator tmp(*this);
00030        ++fCurrentBin;
00031        return tmp;
00032      }

TH1_c_iterator Algorithm::TH1_c_iterator::operator++ (  )  [inline]

Definition at line 24 of file Convolver.h.

References fCurrentBin.

00024                                 {
00025        ++fCurrentBin;
00026        return *this;
00027      }

TH1_c_iterator Algorithm::TH1_c_iterator::operator+= ( int  n  )  [inline]

Definition at line 46 of file Convolver.h.

References fCurrentBin.

00046                                      {
00047        fCurrentBin+=n;
00048        return *this;
00049      }

int Algorithm::TH1_c_iterator::operator- ( const TH1_c_iterator rhs  )  const [inline]

Definition at line 67 of file Convolver.h.

References fCurrentBin.

00067                                                   { 
00068        return fCurrentBin-rhs.fCurrentBin;
00069      }

TH1_c_iterator Algorithm::TH1_c_iterator::operator- ( int  n  )  const [inline]

Definition at line 56 of file Convolver.h.

References fCurrentBin.

00056                                          { 
00057        TH1_c_iterator tmp(*this);
00058        tmp.fCurrentBin-=n;
00059        return tmp;
00060      }

TH1_c_iterator Algorithm::TH1_c_iterator::operator-- ( int   )  [inline]

Definition at line 37 of file Convolver.h.

References fCurrentBin.

00037                                    {
00038        TH1_c_iterator tmp(*this);
00039        --fCurrentBin;
00040        return tmp;
00041      }

TH1_c_iterator Algorithm::TH1_c_iterator::operator-- (  )  [inline]

Definition at line 33 of file Convolver.h.

References fCurrentBin.

00033                                 {
00034        --fCurrentBin;
00035        return *this;
00036      }

bool Algorithm::TH1_c_iterator::operator== ( const TH1_c_iterator rhs  )  const [inline]

Definition at line 64 of file Convolver.h.

References fCurrentBin, and fHist.

00064                                                     {
00065        return  fCurrentBin==rhs.fCurrentBin && fHist==rhs.fHist;
00066      }


Member Data Documentation

const TH1* Algorithm::TH1_c_iterator::fHist [private]

Definition at line 72 of file Convolver.h.

Referenced by operator!=(), operator*(), and operator==().

Definition at line 74 of file Convolver.h.

Referenced by operator*().


The documentation for this class was generated from the following file:

Generated on 15 Jun 2016 for AlcapDAQ by  doxygen 1.6.1