ROOT logo
#ifndef HSHOWERFRAME_H
#define HSHOWERFRAME_H
#pragma interface

#include "TObject.h"
#include "TObjArray.h"

class HShowerFrameCorner: public TObject {
private:
  Float_t fXcor;   // X coordinate of frame 
  Float_t fYcor;   // Y coordinate of frame
  Int_t nFlagArea; // sensitive area flag
 
public:
  HShowerFrameCorner();

  Float_t getX(){return fXcor;}
  Float_t getY(){return fYcor;}
  Int_t getFlagArea(){return nFlagArea;}

  void setX(Float_t fX){fXcor = fX;}
  void setY(Float_t fY){fYcor = fY;}
  void setFlagArea(Int_t nFlag){nFlagArea = nFlag;}

  ClassDef(HShowerFrameCorner, 0)
};

class HShowerFrame: public TObject {
private:
  Int_t nCorners;       // number of corners
  Int_t m_nModuleID;    // module identification
  TObjArray m_FrameArr; // table of corners coordinates

public:
  HShowerFrame();
  virtual ~HShowerFrame();

  void reset();
  void printParams();
  Int_t isOut(Float_t x, Float_t y);

  HShowerFrameCorner* getCorner(Int_t n);
  Int_t addCorner(HShowerFrameCorner*);
  Int_t setCorner(HShowerFrameCorner* pCorner, Int_t n); 

  void setNCorners(Int_t n){nCorners = n;}
  Int_t getNCorners(){return nCorners;}

  void setModuleID(Int_t id){m_nModuleID = id;}
  Int_t getModuleID(){return m_nModuleID;}

  ClassDef(HShowerFrame, 0)
};

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