Skip to content
Snippets Groups Projects
Commit 780359dc authored by Vardan Tadevosyan's avatar Vardan Tadevosyan Committed by Stephen A. Wood
Browse files

Modify THcShower::FineProcess to process Ntrack>0 events only.

parent 6df1766e
No related branches found
No related tags found
No related merge requests found
...@@ -957,13 +957,17 @@ Int_t THcShower::FineProcess( TClonesArray& tracks ) ...@@ -957,13 +957,17 @@ Int_t THcShower::FineProcess( TClonesArray& tracks )
// Additional quantities for calibration, taken from the 1-st track currently. // Additional quantities for calibration, taken from the 1-st track currently.
THaTrack* theTrack = static_cast<THaTrack*>( tracks[0] ); Int_t Ntracks = tracks.GetLast()+1; // Number of reconstructed tracks
fTRDeltaP = theTrack->GetDp();
fTRBeta = theTrack->GetBeta(); if(Ntracks > 0) {
fTRP = theTrack->GetP(); THaTrack* theTrack = static_cast<THaTrack*>( tracks[0] );
fTRXp = theTrack->GetTheta(); fTRDeltaP = theTrack->GetDp();
fTRYp = theTrack->GetPhi(); fTRBeta = theTrack->GetBeta();
fTRP = theTrack->GetP();
fTRXp = theTrack->GetTheta();
fTRYp = theTrack->GetPhi();
};
return 0; return 0;
} }
......
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