ROOT logo
#ifndef HShowerCalHist_H
#define HShowerCalHist_H

#include "hreconstructor.h"
#include "hlocation.h"
#include "hparset.h"
#include "hshowerraw.h"
#include "hshowercal.h"

class HCategory;
class HIterator;
class TH1F;
class TH2F;

class HShowerCalHist : public HReconstructor {
public:
        HShowerCalHist(){fIter = NULL;}

        HShowerCalHist(const Text_t *name,const Text_t *title)
                    : HReconstructor(name, title) {fIter = NULL;}
       ~HShowerCalHist();

        Bool_t init(void);
        Bool_t finalize(void);
        Int_t execute(void);

        HCategory* getCalCat(){return m_pCalCat;}
        void setCalCat(HCategory* pCalCat){m_pCalCat = pCalCat;}

        Bool_t bookHist();
        Bool_t fillHist(HShowerCal* pCal);
        Bool_t fillHist(Int_t nModule, Int_t nRow, Int_t nColumn, Float_t fCharge);
        Bool_t writeHist();
        Bool_t finalizeHist();

private:
        Int_t m_nEvents;
        HCategory *m_pCalCat; //!Pointer to the calib data category

        HIterator *fIter;  //!

        TH1F* m_pChargeCalHist;  //!
        TH1F* m_pChargeCalModHist[3];  //!
        TH2F* m_pChargeCalFreqHist[3];  //!
        TH2F* m_pChargeCalAvgHist[3];  //!

        ClassDef(HShowerCalHist,0) //ROOT extension
};

#endif
 hshowercalhist.h:1
 hshowercalhist.h:2
 hshowercalhist.h:3
 hshowercalhist.h:4
 hshowercalhist.h:5
 hshowercalhist.h:6
 hshowercalhist.h:7
 hshowercalhist.h:8
 hshowercalhist.h:9
 hshowercalhist.h:10
 hshowercalhist.h:11
 hshowercalhist.h:12
 hshowercalhist.h:13
 hshowercalhist.h:14
 hshowercalhist.h:15
 hshowercalhist.h:16
 hshowercalhist.h:17
 hshowercalhist.h:18
 hshowercalhist.h:19
 hshowercalhist.h:20
 hshowercalhist.h:21
 hshowercalhist.h:22
 hshowercalhist.h:23
 hshowercalhist.h:24
 hshowercalhist.h:25
 hshowercalhist.h:26
 hshowercalhist.h:27
 hshowercalhist.h:28
 hshowercalhist.h:29
 hshowercalhist.h:30
 hshowercalhist.h:31
 hshowercalhist.h:32
 hshowercalhist.h:33
 hshowercalhist.h:34
 hshowercalhist.h:35
 hshowercalhist.h:36
 hshowercalhist.h:37
 hshowercalhist.h:38
 hshowercalhist.h:39
 hshowercalhist.h:40
 hshowercalhist.h:41
 hshowercalhist.h:42
 hshowercalhist.h:43
 hshowercalhist.h:44
 hshowercalhist.h:45
 hshowercalhist.h:46
 hshowercalhist.h:47
 hshowercalhist.h:48
 hshowercalhist.h:49
 hshowercalhist.h:50