Commit a67e4224 authored by Jérémie Dudouet's avatar Jérémie Dudouet
Browse files

Merge branch 'TrackingTreeCorrection' into 'preprod'

Correction of a bug on the position of the second interaction in the Tracked...

See merge request IPNL_GAMMA/narval_emulator!74
parents d46f7fcf 82e5adb3
...@@ -743,10 +743,10 @@ void TB_AGATA_Tracking::Process(Int_t idet) ...@@ -743,10 +743,10 @@ void TB_AGATA_Tracking::Process(Int_t idet)
trackZ1[i] = gamma1->GetZ(); trackZ1[i] = gamma1->GetZ();
//if tracked gamma is photo or pair, the second int point is a copy of the first one (because not useful) //if tracked gamma is photo or pair, the second int point is a copy of the first one (because not useful)
if(trackType[i]==2){ if ( gamma1->GetHit(1) ) {
trackX2[i] = gamma1->GetX(); trackX2[i] = gamma1->GetHit(1)->GetX();
trackY2[i] = gamma1->GetY(); trackY2[i] = gamma1->GetHit(1)->GetY();
trackZ2[i] = gamma1->GetZ(); trackZ2[i] = gamma1->GetHit(1)->GetZ();
} }
else { else {
trackX2[i] = trackX1[i]; trackX2[i] = trackX1[i];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment