Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

THits.h

Go to the documentation of this file.
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;   // Sensitive element
00012   Float_t fX;     // X Coordinate (cm)
00013   Float_t fY;     // Y Coordinate (cm)
00014   Float_t fZ;     // Z Coordinate (cm)
00015   Int_t fLayer;   // Layer
00016   Int_t fElement; // TKR Strip or CAL Log firing
00017   TString fView;  // Measured Coordinate 
00018   Float_t fEn;    // Energy deposited in hit's volume (MeV)
00019   Int_t fTotL;    // Time over threshold left
00020   Int_t fTotR;    // Time over threshold right
00021  
00022 
00023  public:
00024   
00025   THits() { };
00026   //THits(const char* name, const char* title, const char* material);
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

Generated at Mon Nov 26 18:20:07 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000