9 gROOT->Macro(
"$VMCWORKDIR/gconfig/rootlogon.C");
10 gROOT->Macro(
"$VMCWORKDIR/gconfig/rootlogon.C");
12 gSystem->Load(
"libriemann");
23 TVector3 dpos (0.001,0.001,0.001);
24 TVector3
pos (r*
TMath::Cos(dPhi*
i)+rand.Gaus(0,dpos[0]), r*
TMath::Sin(dPhi*i)+rand.Gaus(0,dpos[1]), i+1 + rand.Gaus(0,dpos[2]));
28 std::cout << i <<
": " << detHit->GetX() <<
" " << detHit->GetY() <<
" " << detHit->GetZ() << std::endl;
34 std::cout <<
"Hits: " << std::endl;
36 for (
int j = 0; j < nHits-1; j++){
37 std::cout << j <<
": " << hits[j]->GetX() <<
" " << hits[j]->GetY() <<
" " << hits[j]->GetZ() << std::endl;
40 std::cout <<
"rHit: " << rHit->
x().X() <<
" " << rHit->
x().Y() <<
" " << rHit->
x().Z() << std::endl;
43 std::cout <<
"Distance: " << track.
dist(
new PndRiemannHit(hits[nHits-1])) << std::endl;
45 TVectorT<double> dVec = track.
orig();
48 std::cout <<
"Riemann Fit r: " << track.
r() <<
" offset: " << x <<
" " << y << std::endl;
50 track2.
init(x,y,track.
r(),1,1);
52 TVectorT<double> vecN = track.
n();
53 std::cout <<
"Backcalc fn: " << vecN[0] <<
" " << vecN[1] <<
" " << vecN[2] <<
" fc: " << track.
c() << std::endl;
58 printf(
"RealTime=%f seconds, CpuTime=%f seconds\n",rtime,ctime);
printf("RealTime=%f seconds, CpuTime=%f seconds\n", rtime, ctime)
void init(double x0, double y0, double R, double dip, double z0)
double dist(PndRiemannHit *hit)
const TVectorD & n() const
void refit(bool withErrorCalc=true)
const TVector3 & x() const
void addHit(PndRiemannHit &hit)