Skip to content
Snippets Groups Projects
Commit 231c5d5f authored by Mark K Jones's avatar Mark K Jones Committed by GitHub
Browse files

Merge pull request #220 from MarkKJones/fix_hallcspec

Fix bug introduced in THcHallCSpectrometer::FineProcess
parents 0ed70bf8 2259ea29
No related branches found
No related tags found
No related merge requests found
...@@ -358,9 +358,7 @@ Int_t THcHallCSpectrometer::FindVertices( TClonesArray& tracks ) ...@@ -358,9 +358,7 @@ Int_t THcHallCSpectrometer::FindVertices( TClonesArray& tracks )
// There is an hpcentral_offset that needs to be applied somewhere. // There is an hpcentral_offset that needs to be applied somewhere.
// (happly_offs) // (happly_offs)
Double_t ptemp = fPcentral*(1+track->GetDp()/100.0); Double_t ptemp = fPcentral*(1+track->GetDp()/100.0);
Double_t mtemp = fPartMass/1000.; // fPartMass in MeV , convert to GeV
track->SetMomentum(ptemp); track->SetMomentum(ptemp);
track->SetEnergy(ptemp*ptemp+mtemp*mtemp);
TVector3 pvect_temp; TVector3 pvect_temp;
TransportToLab(track->GetP(),track->GetTTheta(),track->GetTPhi(),pvect_temp); TransportToLab(track->GetP(),track->GetTTheta(),track->GetTPhi(),pvect_temp);
track->SetPvect(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