Skip to content
Snippets Groups Projects
Commit 9f2f50db authored by Carlos Yero's avatar Carlos Yero Committed by Mark Jones
Browse files

Modified THcHallCSpectrometer to avoid segmentation faults when Hodoscope apparatus not defined.

parent 85a7a6bc
No related branches found
No related tags found
No related merge requests found
......@@ -357,11 +357,11 @@ Int_t THcHallCSpectrometer::FindVertices( TClonesArray& tracks )
}
if ( ( fSelUsingScin == 0 ) && ( fSelUsingPrune == 0 ) ) {
if (fHodo==0 || ( fSelUsingScin == 0 ) && ( fSelUsingPrune == 0 ) ) {
BestTrackSimple();
} else if (fSelUsingPrune !=0) {
} else if (fHodo!=0 && fSelUsingPrune !=0) {
BestTrackUsingPrune();
} else {
} else if (fHodo!=0){
BestTrackUsingScin();
}
......@@ -560,6 +560,8 @@ Int_t THcHallCSpectrometer::BestTrackUsingScin()
//_____________________________________________________________________________
Int_t THcHallCSpectrometer::BestTrackUsingPrune()
{
Int_t nGood;
Double_t chi2Min;
......
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