ROOT logo
#ifndef HShowerCal_H
#define HShowerCal_H
#pragma interface

#include "hlocateddataobject.h"

class HShowerCal : public HLocatedDataObject {
public:
        HShowerCal() : m_nSector(-1), m_nModule(-1), m_nRow(-1), m_nCol(-1),
                       m_fCharge(0.0),
                       m_nIsLocalMax(0) {}

//      initialization could be used e.g. to clear the data element
        HShowerCal(const Float_t fCharge) :
                       m_nSector(-1), m_nModule(-1), m_nRow(-1), m_nCol(-1),
                       m_fCharge(fCharge),
                       m_nIsLocalMax(0) {}

        Int_t clear();
        Float_t getCharge() const {return m_fCharge;}
        void setCharge(Float_t fCharge){m_fCharge = fCharge;}

        Int_t getAddress(void) {return calcAddress();}
        Char_t getSector(void) {return m_nSector;}
        Char_t getModule(void) {return m_nModule;}
        Char_t getRow(void) {return m_nRow;}
        Char_t getCol(void) {return m_nCol;}

        void setSector(Char_t s) {m_nSector = s;}
        void setModule(Char_t m) {m_nModule = m;}
        void setRow(Char_t r) {m_nRow = r;}
        void setCol(Char_t c) {m_nCol = c;}

        Int_t isLocalMax(){return m_nIsLocalMax;}
        void  setLocalMax(){m_nIsLocalMax = 1;}
        void  resetLocalMax(){m_nIsLocalMax = 0;}

        Int_t getNLocationIndex(void);
        Int_t getLocationIndex(Int_t i);

        ClassDef(HShowerCal, 1) //ROOT extension

private:
        Int_t calcAddress();

        Char_t m_nSector;   //position of the pad
        Char_t m_nModule;
        Char_t m_nRow;
        Char_t m_nCol;

        Float_t m_fCharge;  //calibrated charge in the pad

        Int_t m_nIsLocalMax; //! flag is set if it has been found
                             // local maximum for this pad
};

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