ROOT logo
#ifndef HShowerRawHist_H
#define HShowerRawHist_H

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

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

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

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

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

        HCategory* getRawCat(){return m_pRawCat;}
        void setRawCat(HCategory* pRawCat){m_pRawCat = pRawCat;}

        ClassDef(HShowerRawHist,1) //ROOT extension

        Bool_t bookHist();
        Bool_t fillHist(HShowerRaw* pRaw);
        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_pRawCat; //!Pointer to the raw data category

        HIterator *fIter;  //!

        TH1F* m_pChargeHist;  //!
        TH1F* m_pChargeModHist[3];  //!        
        TH2F* m_pChargeFreqHist[3];  //!        
        TH2F* m_pChargeAvgHist[3];  //!        
};

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