#ifndef HShowerHist_H
#define HShowerHist_H
#pragma interface

#include "hparset.h"
#include "hshowerparset.h"
#include "hlocation.h"
#include "hobjtable.h"
#include "hshowerhist.h"

class HShowerHistCell;
class HShowerCalPar;
class HParHadAsciiFileIo;

//------------------------------------------------------------------------------

class HShowerHist : public HShowerParSet
{
public:
    HShowerHist(const Char_t* name="ShowerHist",
                const Char_t* title="Histograms of offsets and slopes for Shower",
                const Char_t* context="");
   ~HShowerHist();

    void setSetup(Int_t nSectors, Int_t nModules, Int_t nRows, Int_t nCol);

    void setCellClassName(const Char_t* pszName);
    Char_t* getCellClassName();

    HShowerHistCell* getSlot(HLocation &loc);
    HShowerHistCell* getObject(HLocation &loc);

    virtual Bool_t initAscii(HParHadAsciiFileIo* pHadAsciiFile);
    virtual Bool_t writeAscii(HParHadAsciiFileIo* pHadAsciiFile);
    virtual Bool_t defaultInit();

    virtual Int_t Write(const Text_t* name = 0,
                                    Int_t option = 0, Int_t bufsize = 0);

    void bookAll();
    void book(HLocation& loc);
    void book(Int_t nSector, Int_t nModule);
    void resetAll();
    void reset(HLocation& loc);
    void reset(Int_t nSector, Int_t nModule);
    void fill(HLocation& loc, Int_t nVal);
    void fill(Int_t nSector, Int_t nModule, Int_t nRow,
                                                Int_t nCol, Int_t nVal);
    void draw(HLocation& loc, Option_t *opt="");
    void draw(Int_t nSector, Int_t nModule, Int_t nRow, Int_t nCol,
                                                Option_t *opt="");

    void calculate(Int_t iEvents, HShowerCalPar* pCalPar, Int_t iMethod,
                            Float_t fParam1, Float_t fParam2);

private:
    void allocateHist();

    // -------------------------------------------------------------------------

private:
    Int_t     m_nSectors;
    Int_t     m_nModules;
    Int_t     m_nRows;
    Int_t     m_nColumns;

    Float_t   m_fChannel10pC;

    Char_t    m_szClassName[40];

    HObjTable m_ParamsTable;

    ClassDef(HShowerHist, 1) //ROOT extension
};

#endif

Last change: Sat May 22 13:13:34 2010
Last generated: 2010-05-22 13:13

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.