#include "CTDR_Tree.h"
#include <cstdlib>
#include <iostream>
#include <fstream>
#include <math.h>
#include <stdlib.h>
#include <time.h>
#include <stdio.h>
#include <string>
using namespace std;
ClassImp(CTDR_Tree)
CTDR_Tree::CTDR_Tree(){
}
CTDR_Tree::CTDR_Tree( int NdivX, int NdivY, int NdivZ,double LX,double LY, double LZ)
{
char hash[100];
NDivx=NdivX;
NDivy=NdivY;
NDivz=NdivZ;
Lx=LX;
Ly=LY;
Lz=LZ;
};
Long64_t CTDR_Tree::Hash(double x,double y, double z)
{
Long64_t I;
I=int(x*(NDivy)*(NDivz) + y*(NDivz) +(z));
return I;
};
void CTDR_Tree::SetPoints(double x , double y ,double z)
{
lowx=floor((x+Lx/2)/(Lx/NDivx));
highx=ceil((x+Lx/2)/(Lx/NDivx));
lowy=floor((y+Ly/2)/(Ly/NDivy));
highy=ceil((y+Ly/2)/(Ly/NDivy));
lowz=floor((z)/(Lz/NDivz));
highz=ceil((z)/(Lz/NDivz));
};
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.