Fork me on GitHub

Changeset 341014c in git for classes/DelphesFormula.cc


Ignore:
Timestamp:
Feb 12, 2019, 9:29:17 PM (6 years ago)
Author:
Pavel Demin <pavel-demin@…>
Branches:
ImprovedOutputFile, Timing, llp, master
Children:
6455202
Parents:
45e58be
Message:

apply .clang-format to all .h, .cc and .cpp files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • classes/DelphesFormula.cc

    r45e58be r341014c  
    1616 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
    1717 */
    18 
    1918
    2019#include "classes/DelphesFormula.h"
     
    5453  for(it = expression; *it; ++it)
    5554  {
    56     if(*it == ' ' || *it == '\t' || *it == '\r' || *it == '\n' || *it == '\\' ) continue;
     55    if(*it == ' ' || *it == '\t' || *it == '\r' || *it == '\n' || *it == '\\') continue;
    5756    buffer.Append(*it);
    5857  }
     
    6261  buffer.ReplaceAll("energy", "t");
    6362
     63#if ROOT_VERSION_CODE < ROOT_VERSION(6, 0, 0)
     64  TFormula::SetMaxima(100000, 1000, 1000000);
     65#endif
    6466
    65 
    66   #if ROOT_VERSION_CODE < ROOT_VERSION(6,0,0)
    67     TFormula::SetMaxima(100000,1000,1000000);
    68   #endif
    69  
    7067  if(TFormula::Compile(buffer) != 0)
    7168  {
     
    7976Double_t DelphesFormula::Eval(Double_t pt, Double_t eta, Double_t phi, Double_t energy)
    8077{
    81    Double_t x[4] = {pt, eta, phi, energy};
    82    return EvalPar(x);
     78  Double_t x[4] = {pt, eta, phi, energy};
     79  return EvalPar(x);
    8380}
    8481
Note: See TracChangeset for help on using the changeset viewer.