ROOT logo
#ifndef HShowerHist_H
#define HShowerHist_H
#pragma interface

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

class HShowerHistCell;
class HShowerCalPar;

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

class HShowerHist : public HParSet
{
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);

    Bool_t init(HParIo* inp,Int_t* set);
    Int_t  write(HParIo*);
    Bool_t defaultInit();

    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
 hshowerhist.h:1
 hshowerhist.h:2
 hshowerhist.h:3
 hshowerhist.h:4
 hshowerhist.h:5
 hshowerhist.h:6
 hshowerhist.h:7
 hshowerhist.h:8
 hshowerhist.h:9
 hshowerhist.h:10
 hshowerhist.h:11
 hshowerhist.h:12
 hshowerhist.h:13
 hshowerhist.h:14
 hshowerhist.h:15
 hshowerhist.h:16
 hshowerhist.h:17
 hshowerhist.h:18
 hshowerhist.h:19
 hshowerhist.h:20
 hshowerhist.h:21
 hshowerhist.h:22
 hshowerhist.h:23
 hshowerhist.h:24
 hshowerhist.h:25
 hshowerhist.h:26
 hshowerhist.h:27
 hshowerhist.h:28
 hshowerhist.h:29
 hshowerhist.h:30
 hshowerhist.h:31
 hshowerhist.h:32
 hshowerhist.h:33
 hshowerhist.h:34
 hshowerhist.h:35
 hshowerhist.h:36
 hshowerhist.h:37
 hshowerhist.h:38
 hshowerhist.h:39
 hshowerhist.h:40
 hshowerhist.h:41
 hshowerhist.h:42
 hshowerhist.h:43
 hshowerhist.h:44
 hshowerhist.h:45
 hshowerhist.h:46
 hshowerhist.h:47
 hshowerhist.h:48
 hshowerhist.h:49
 hshowerhist.h:50
 hshowerhist.h:51
 hshowerhist.h:52
 hshowerhist.h:53
 hshowerhist.h:54
 hshowerhist.h:55
 hshowerhist.h:56
 hshowerhist.h:57
 hshowerhist.h:58
 hshowerhist.h:59
 hshowerhist.h:60
 hshowerhist.h:61
 hshowerhist.h:62
 hshowerhist.h:63
 hshowerhist.h:64
 hshowerhist.h:65
 hshowerhist.h:66
 hshowerhist.h:67
 hshowerhist.h:68
 hshowerhist.h:69
 hshowerhist.h:70
 hshowerhist.h:71
 hshowerhist.h:72