Skip to content
Snippets Groups Projects
Commit 2259ea29 authored by hallc-online's avatar hallc-online
Browse files

Fix bug introduced in THcHallCSpectrometer::FineProcess

When making changes to support THcPrimaryKine added line
track->SetEnergy
which set the track energy to energy determined from
measurement of spectrometer delta.
But this energy should be the energy measured by the
Shower calorimeter.
Deleted the line in THcHallCSpectrometer since it is not
needed anyway.
parent 0ed70bf8
No related branches found
No related tags found
No related merge requests found
......@@ -358,9 +358,7 @@ Int_t THcHallCSpectrometer::FindVertices( TClonesArray& tracks )
// There is an hpcentral_offset that needs to be applied somewhere.
// (happly_offs)
Double_t ptemp = fPcentral*(1+track->GetDp()/100.0);
Double_t mtemp = fPartMass/1000.; // fPartMass in MeV , convert to GeV
track->SetMomentum(ptemp);
track->SetEnergy(ptemp*ptemp+mtemp*mtemp);
TVector3 pvect_temp;
TransportToLab(track->GetP(),track->GetTTheta(),track->GetTPhi(),pvect_temp);
track->SetPvect(pvect_temp);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment