////////////////////////////////////////////////////////////////////// // // TkrHit.h: interface for the TkrHit class. // ////////////////////////////////////////////////////////////////////// // Jan 1999 Daniel Flath - ROOT HTML Documentation added // Dec 1999 Daniel Flath - Creation #if !defined(AFX_TKRHIT_H__DD81DF23_A9E1_11D3_A74E_00105A107C3C__INCLUDED_) #define AFX_TKRHIT_H__DD81DF23_A9E1_11D3_A74E_00105A107C3C__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include "TObject.h" #include "TObjArray.h" class TkrLayer : public TObject { private: UChar_t m_layer; // Tracker layer number UChar_t m_xy; // Is this an x or y tile? UInt_t m_TOT[2]; // TOT values for each of the 2 readout boards UInt_t m_errf[2]; // ERRF values for each of the 2 readout boards TObjArray *m_strips; public: typedef enum { X = 0, Y } TKRAxes; TkrLayer(); TkrLayer(TObjArray *strips); virtual ~TkrLayer(); TObjArray *getStrips() { return m_strips; }; void setTOT(UInt_t right, UInt_t left); void setErrf(UInt_t right, UInt_t left); void setLayer(UChar_t layerVal) { m_layer = layerVal; }; void setXY(TKRAxes xyVal) { m_xy = (xyVal == X ? 0 : 1); }; Int_t getTOT(UChar_t ctrlNum); Int_t getErrf(UChar_t ctrlNum); inline UChar_t getLayer() { return m_layer; }; TKRAxes getXY() { return (m_xy ? Y : X); }; ClassDef(TkrLayer,1) // Information on a single tracker layer }; #endif // !defined(AFX_TKRHIT_H__DD81DF23_A9E1_11D3_A74E_00105A107C3C__INCLUDED_)