File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -164,7 +164,12 @@ TRestEvent* TRestDetectorHitsGaussAnalysisProcess::ProcessEvent(TRestEvent* inpu
164
164
Double_t gausSigmaX = fOutputHitsEvent ->GetGaussSigmaX ();
165
165
Double_t gausSigmaY = fOutputHitsEvent ->GetGaussSigmaY ();
166
166
Double_t gausSigmaZ = fOutputHitsEvent ->GetGaussSigmaZ ();
167
- Double_t xy2SigmaGaus = (gausSigmaX * gausSigmaX) + (gausSigmaY * gausSigmaY);
167
+ Double_t xy2SigmaGaus = (gausSigmaX == -1 . || gausSigmaY == -1 .)
168
+ ? -1 .
169
+ : (gausSigmaX * gausSigmaX) + (gausSigmaY * gausSigmaY);
170
+ Double_t xySigmaBalanceGaus = (gausSigmaX == -1 . || gausSigmaY == -1 .)
171
+ ? -1 .
172
+ : (gausSigmaX - gausSigmaY) / (gausSigmaX + gausSigmaY);
168
173
169
174
if (hits->GetNumberOfHits () > 30 && xy2SigmaGaus < 0.05 )
170
175
RESTDebug << string (" Event ID: " ) << to_string (fInputHitsEvent ->GetID ()) << string (" ||" ) << RESTendl;
@@ -173,7 +178,7 @@ TRestEvent* TRestDetectorHitsGaussAnalysisProcess::ProcessEvent(TRestEvent* inpu
173
178
SetObservableValue (" ySigmaGaus" , gausSigmaY);
174
179
SetObservableValue (" zSigmaGaus" , gausSigmaZ);
175
180
SetObservableValue (" xy2SigmaGaus" , xy2SigmaGaus);
176
- SetObservableValue (" xySigmaBalanceGaus" , (gausSigmaX - gausSigmaY) / (gausSigmaX + gausSigmaY) );
181
+ SetObservableValue (" xySigmaBalanceGaus" , xySigmaBalanceGaus );
177
182
178
183
// We transform here fHitsEvent if necessary
179
184
You can’t perform that action at this time.
0 commit comments