]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliExpression.cxx
Number of sigma pedestal cut increased to 4
[u/mrichter/AliRoot.git] / STEER / AliExpression.cxx
index 8c2164572a90bc71870d2db3b95cc1f9a7cfdcbc..2ddb3e073b8cab8db6a8efe0fb5f5bb452438cc6 100644 (file)
@@ -106,7 +106,8 @@ AliExpression::AliExpression( int op, AliExpression* a ) :
 Bool_t AliExpression::Value( const TObjArray &vars )
 {
    //  Evaluate the expression
-   if ( fArg2 == 0 && fVname.IsNull() ) {
+  if ( ( fArg2 == 0 && fVname.IsNull() ) ||
+       ( fArg2 == 0 && ( fOperator == kOpOR || fOperator == kOpAND || fOperator == kOpNOT ) ) ) {
        AliError( "Expression undefined." );
        return kFALSE;
    }