// @(#)root/html:$Name: $:$Id: THtml.cxx,v 1.124 2006/11/24 16:01:02 $ // Author: Mathieu Benoit ////////////////////////////////////////////////////////////////////////// // Source file : class CTDR_Field // // This class represent the CTDR_Field in the CZT detector. CTDR_Field // // data are read from a ROOT file and stored in a TTree.This class pass// // to the simulation the value of the CTDR_Field at a position x,y,z, // // on demand. This class is similar to the class Detecteur. // ////////////////////////////////////////////////////////////////////////// #ifndef CTDR_FIELD_H_DEF #define CTDR_FIELD_H_DEF #include "CTDR_Tree.h" #include "TTree.h" #include "TFile.h" #include "TClass.h" class CTDR_Field : public CTDR_Tree { private: TTree *TEx; // x component of the field data tree TTree *TEy; // y component of the field data tree TTree *TEz; // z component of the field data tree double Ex; // X field double Ey; // Y field double Ez; // Z field double x_Ex; // Variable where Tree's data are read double y_Ex; double z_Ex; double x_Ey; double y_Ey; double z_Ey; double x_Ez; double y_Ez; double z_Ez; double E_Ex; double E_Ey; double E_Ez; public: CTDR_Field(TFile &Fichier,int NdivX,int NdivY, int NdivZ,double LX, double LY, double LZ); void SetChamp(double xx, double yy ,double zz); void Interpole(double x, double y , double z); double GetEx(); double GetEy(); double GetEz(); double GetLz(); ClassDef(CTDR_Field,0) // The electric field }; #endif