Skip to content
Snippets Groups Projects
Commit fb275173 authored by Attila Krasznahorkay's avatar Attila Krasznahorkay
Browse files

Protected the code against missing truth taus.

parent 5afbb1c2
No related branches found
No related tags found
No related merge requests found
...@@ -117,7 +117,7 @@ int main( int argc, char* argv[] ) ...@@ -117,7 +117,7 @@ int main( int argc, char* argv[] )
<< ", prong = " << int(xTau->nTracks()) << ", prong = " << int(xTau->nTracks())
<< ", charge = " << int(xTau->charge())); << ", charge = " << int(xTau->charge()));
if ((bool)xTau->auxdata<char>("IsTruthMatched")) if ((bool)xTau->auxdata<char>("IsTruthMatched") && (xTruthTau != nullptr))
{ {
if (xTruthTau->isTau()) if (xTruthTau->isTau())
{ {
......
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