FairRoot/PandaRoot
Functions | Variables
RiemannTrackFinderTest.C File Reference
#include "TVector3.h"
#include "TRandom.h"

Go to the source code of this file.

Functions

timer Start ()
 
gROOT Macro ("$VMCWORKDIR/gconfig/rootlogon.C")
 
gSystem Load ("libriemann")
 
TVector3 offset1 (2, 0, 0)
 
TVector3 offset2 (-2, 0, 0)
 
 for (int i=0;i< nHits1;i++)
 
findTracks FindTracks (0.01)
 

Variables

double r1 = -2
 
int nHits1 = 4
 
double dPhi1 = TMath::Pi()/36
 
double r2 = 2
 
int nHits2 = 4
 
double dPhi2 = -TMath::Pi()/36
 
CbmHit * hits [nHits1+nHits2]
 
TRandom1 rand
 
PndRiemannTrackFinder findTracks
 

Function Documentation

findTracks FindTracks ( 0.  01)
for ( )

Definition at line 27 of file RiemannTrackFinderTest.C.

References CAMath::Cos(), i, offset1(), pos, and CAMath::Sin().

27  {
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]));
30 
31  pos += offset1;
32  PndSdsHit* detHit = new PndSdsHit(0,"",pos,dpos,i,0,0);
33  std::cout << i << ": " << detHit->GetX() << " " << detHit->GetY() << " " << detHit->GetZ() << std::endl;
34 
35  hits[i] = detHit;
36  }
TVector3 pos
TRandom1 rand
Definition: RiemannTest.C:20
Int_t i
Definition: run_full.C:25
static T Sin(const T &x)
Definition: PndCAMath.h:42
double r1
TVector3 offset1(2, 0, 0)
static T Cos(const T &x)
Definition: PndCAMath.h:43
double dPhi1
CbmHit * hits[nHits]
Definition: RiemannTest.C:19
gSystem Load ( "libriemann"  )
gROOT Macro ( "$VMCWORKDIR/gconfig/rootlogon.C )
TVector3 offset1 ( ,
,
 
)

Referenced by for().

TVector3 offset2 ( 2,
,
 
)
timer Start ( )

Variable Documentation

double dPhi1 = TMath::Pi()/36

Definition at line 17 of file RiemannTrackFinderTest.C.

double dPhi2 = -TMath::Pi()/36

Definition at line 22 of file RiemannTrackFinderTest.C.

Definition at line 49 of file RiemannTrackFinderTest.C.

CbmHit* hits[nHits1+nHits2]

Definition at line 24 of file RiemannTrackFinderTest.C.

int nHits1 = 4

Definition at line 16 of file RiemannTrackFinderTest.C.

int nHits2 = 4

Definition at line 21 of file RiemannTrackFinderTest.C.

double r1 = -2
double r2 = 2
TRandom1 rand

Definition at line 25 of file RiemannTrackFinderTest.C.