9 gROOT->Macro(
"$VMCWORKDIR/gconfig/rootlogon.C");
10 gROOT->Macro(
"$VMCWORKDIR/gconfig/rootlogon.C");
12 gSystem->Load(
"libriemann");
28 TVector3 dpos (0.001,0.001,0.001);
29 TVector3
pos (r1*
TMath::Cos(dPhi1*
i)+rand.Gaus(0,dpos[0]), r1*
TMath::Sin(dPhi1*i)+rand.Gaus(0,dpos[1]), i+1 + rand.Gaus(0,dpos[2]));
33 std::cout << i <<
": " << detHit->GetX() <<
" " << detHit->GetY() <<
" " << detHit->GetZ() << std::endl;
38 for (
int j = 0; j <
nHits2; j++){
39 TVector3 dpos (0.001,0.001,0.001);
40 TVector3
pos (r2*
TMath::Cos(dPhi2*j)+rand.Gaus(0,dpos[0]), r2*
TMath::Sin(dPhi2*j)+rand.Gaus(0,dpos[1]), j+1 + rand.Gaus(0,dpos[2]));
44 std::cout << nHits1 + j <<
": " << detHit->GetX() <<
" " << detHit->GetY() <<
" " << detHit->GetZ() << std::endl;
46 hits[nHits1 + j] = detHit;
50 for (
int k = 0; k < (nHits1 +
nHits2); k++){
51 findTracks.
AddHit(hits[k]);
54 std::cout <<
"Found Tracks: " << findTracks.
NTracks() << std::endl;
67 printf(
"RealTime=%f seconds, CpuTime=%f seconds\n",rtime,ctime);
printf("RealTime=%f seconds, CpuTime=%f seconds\n", rtime, ctime)
PndRiemannTrackFinder findTracks
void FindTracks()
Main function to start the riemann track finding.
TVector3 offset1(2, 0, 0)
void AddHit(FairHit *hit)
TVector3 offset2(-2, 0, 0)