#include "hshowerhitfinderIPU.h"

HShowerHitFinderIPU


class description - source file - inheritance tree (.pdf)

class HShowerHitFinderIPU : public HReconstructor

Inheritance Chart:
TObject
<-
TNamed
<-
HTask
<-
HReconstructor
<-
HShowerHitFinderIPU
    private:
void fillSums(HShowerCalIPU* pCal, UShort_t* nSum) Bool_t isLocalMax(HShowerCalIPU* pRef) Bool_t lookForHit(HShowerCalIPU* pCal) void setDefault() public:
HShowerHitFinderIPU() HShowerHitFinderIPU(Text_t* name, Text_t* title, Int_t iAlgFlag = 0, Int_t iThr1 = 0, Int_t iThr2 = 0) HShowerHitFinderIPU(Int_t iAlgFlag, Int_t iThr1 = 0, Int_t iThr2 = 0) ~HShowerHitFinderIPU() static TClass* Class() virtual Int_t execute() virtual Bool_t finalize() Int_t getAlgorithm() const Int_t getThreshold1() const Int_t getThreshold2() const virtual Bool_t init() Bool_t initParameters() virtual TClass* IsA() const void setAlgorithm(Int_t a) void setThreshold1(Int_t a) void setThreshold2(Int_t a) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

    private:
Int_t m_iAlgFlag flag for the algorithm Int_t m_iThr1 thresholds Int_t m_iThr2 HLocation m_Loc HRaTree* m_pCellArr random access table for searching local maxima HCategory* m_pCalCat !Pointer to the cal data category HCategory* m_pHitCat !Pointer to the hit data category HIterator* fIter !Iterator for calibrated fired pads

Class Description


 HShowerHitFinderIPU

 Reconstructor for searching local maxima in the same way as
 the PreSHOWER IPU does it.

 Parameters:
 thr1,  thr2 - used in the same way like in the hardware
 m_iAlgFlag - defines the mask for the conditions:
      0x01 - look for charges above thr1
      0x02 - check if the pad is a local maximum from 5 pads
      0x04 - check if (sum1>sum0+thr2 || sum2>sum0+thr2) (sumX from 9 pads)
      0x08 - check if (sum1>thr2 || sum2>thr2)
      WARNING: In hardware 0x08 works only if 0x04 is set.
      In this algorithm they work independently.

 If m_iAlgFlag is 0 then every hit which fulfills ANY condition is stored.
 Otherwise the hits for which ALL conditions defined in the m_iAlgFlag
 are fulfilled are written out.



HShowerHitFinderIPU(Text_t *name,Text_t *title, Int_t iAlgFlag, Int_t iThr1, Int_t iThr2) : HReconstructor(name, title)

HShowerHitFinderIPU(Int_t iAlgFlag, Int_t iThr1, Int_t iThr2) : HReconstructor("HShowerHitFinderIPU", "HShowerHitFinderIPU")

HShowerHitFinderIPU(void)

void setDefault(void)

~HShowerHitFinderIPU(void)

Bool_t init(void)

Bool_t initParameters(void)
 Now it is a dummy function

Bool_t finalize(void)

Int_t execute(void)

Bool_t lookForHit(HShowerCalIPU *pCal)
 checks the conditions and makes new entry in HShowerHitIPU cat

void fillSums(HShowerCalIPU *pCal, UShort_t nSum[3])
 Fills sums

Bool_t isLocalMax(HShowerCalIPU *pRef)
 Check if the pRef is a local maximum from 4 pads (up/down/left/right).
 The checking is the same like the one done in the IPU



Inline Functions


               void setAlgorithm(Int_t a)
              Int_t getAlgorithm() const
               void setThreshold1(Int_t a)
              Int_t getThreshold1() const
               void setThreshold2(Int_t a)
              Int_t getThreshold2() const
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
               void StreamerNVirtual(TBuffer& b)


Last update: Fri Jan 26 12:33:25 2007


ROOT page - Class index - Class Hierarchy - Top of the page

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.