00001 #ifndef THITS_H
00002 #define THITS_H
00003
00004 #include "TBRIK.h"
00005 #include <iostream.h>
00006
00007 class THits : public TBRIK {
00008
00009 Int_t side, tot;
00010 private:
00011 TString fMat;
00012 Float_t fX;
00013 Float_t fY;
00014 Float_t fZ;
00015 Int_t fLayer;
00016 Int_t fElement;
00017 TString fView;
00018 Float_t fEn;
00019 Int_t fTotL;
00020 Int_t fTotR;
00021
00022
00023 public:
00024
00025 THits() { };
00026
00027 THits(const char* name, const char* title, const char* material, float dx, float dy, float dz);
00028 virtual ~THits();
00029 void Print() const;
00030 void SetX(float x) {fX = x;}
00031 void SetY(float y) {fY = y;}
00032 void SetZ(float z) {fZ = z;}
00033 void SetLayer(int layer) {fLayer = layer;}
00034 void SetElement(int element) {fElement = element;}
00035 void SetView( const Char_t* view ) { fView.Append( view ); }
00036 void SetEn(float energy) {fEn = energy;}
00037 void SetTot(int tot, int side) {if (side) fTotR = tot; else fTotL = tot;}
00038
00039 ClassDef(THits,2)
00040 };
00041
00042 #endif