#include <iostream>
#include <fstream>
#include "TMath.h"
#include "THaVDCLinearTTDConv.h"
using namespace std;
THaVDCLinearTTDConv::THaVDCLinearTTDConv()
{
}
THaVDCLinearTTDConv::THaVDCLinearTTDConv( Double_t driftvelocity )
{
fDriftVelocity = driftvelocity;
}
Double_t THaVDCLinearTTDConv::ConvertTimeToDist( Double_t time, Double_t tanTheta, Double_t *drift_dist )
{
if( drift_dist )
{
*drift_dist = fDriftVelocity * time / TMath::Cos( TMath::ATan(TMath::Abs(tanTheta)));
}
return fDriftVelocity * time / TMath::Cos( TMath::ATan(TMath::Abs(tanTheta)));
}
Double_t THaVDCLinearTTDConv::ConvertDistToTime( Double_t plane_intercept, Double_t tanTheta )
{
return plane_intercept / fDriftVelocity;
}
THaVDCLinearTTDConv::~THaVDCLinearTTDConv()
{
}
ClassImp(THaVDCLinearTTDConv)
Last update: Tue Jul 7 19:26:18 2009
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.