git://git.uio.no
/
u
/
mrichter
/
AliRoot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Draw charged tracks as straight lines when magnetic field is near zero.
[u/mrichter/AliRoot.git]
/
EVE
/
Reve
/
Track.cxx
diff --git
a/EVE/Reve/Track.cxx
b/EVE/Reve/Track.cxx
index 1fd9175c13fcfa35ff3bb30a5edf763a5d9fe13c..4e79c033278b87ab089347b09ac954d4c5cd1331 100644
(file)
--- a/
EVE/Reve/Track.cxx
+++ b/
EVE/Reve/Track.cxx
@@
-94,7
+94,9
@@
void Track::MakeTrack()
if ((TMath::Abs(fV.z) > RS.fMaxZ) || (fV.x*fV.x + fV.y*fV.y > RS.fMaxR*RS.fMaxR))
goto make_polyline;
if ((TMath::Abs(fV.z) > RS.fMaxZ) || (fV.x*fV.x + fV.y*fV.y > RS.fMaxR*RS.fMaxR))
goto make_polyline;
- if (fCharge) { // Charged particle
+ if (fCharge != 0 && TMath::Abs(RS.fMagField) > 1e-5) {
+
+ // Charged particle in magnetic field
Float_t a = RS.fgkB2C * RS.fMagField * fCharge;
Float_t a = RS.fgkB2C * RS.fMagField * fCharge;
@@
-134,7
+136,9
@@
void Track::MakeTrack()
// printf("%s loop to bounds \n",fName.Data() );
}
// printf("%s loop to bounds \n",fName.Data() );
}
- } else { // Neutral particle
+ } else {
+
+ // Neutral particle or no field
MCLine line(fRnrStyle, &mc_v0, TMath::C()*fBeta, &track_points);
MCLine line(fRnrStyle, &mc_v0, TMath::C()*fBeta, &track_points);