// @(#)root/html:$Name: $:$Id: THtml.cxx,v 1.124 2006/11/24 16:01:02 $ // Author: Mathieu Benoit ////////////////////////////////////////////////////////////////////////// // Source file : class CTDR_Detecteur (detector, weigting potential // // This class represent the weigting potential in the CZT detector. // // WP Data are read from a ROOT file and stored in a TTree. This class// // pass to the simulation the value of the WP at a position x,y,z, // // on demand. This class is similar to the class Field, // // but with some added function. // ////////////////////////////////////////////////////////////////////////// #ifndef CTDR_DETECTEUR_H_DEF #define CTDR_DETECTEUR_H_DEF #include "CTDR_Tree.h" #include "CTDR_Interaction.h" class CTDR_Detecteur : public CTDR_Tree { private: TTree *TVx; // X channel weighting potential TTree *TVy; // Y channel weighting potential double Vx; // Weigting potential for X channel double Vy; // Weigting potential for Y channel double Vxf; // Final weigting potential for X channel double Vyf; // Final weigting potential for Y channel double x_Vx; // Variable where Tree's data are read double y_Vx; double z_Vx; double V_Vx; double x_Vy; double y_Vy; double z_Vy; double V_Vy; double Q0x; double Q0y; double periode; public: CTDR_Detecteur(TFile &Fichier, int NdivX,int NdivY, int NdivZ,double LX, double LY, double LZ,double periode); void Potentiel(double x,double y,double z); void Interpole3D(double x,double y,double z); void Interpole2D(double x,double y); void Detecte(CTDR_Interaction &inter); void Detecte(CTDR_Interaction &inter,ofstream &off); void Detecte(CTDR_Interaction &inter,ofstream &off,int N_csanaux); void Detectef(CTDR_Interaction &inter,ofstream &off); double GetVx(); double GetVy(); void Test(double x, double y , double z); ClassDef(CTDR_Detecteur,0) // The detector's weighting potential }; #endif