Fork me on GitHub

Changeset 3e8bcb9 in git for classes/DelphesTF2.cc


Ignore:
Timestamp:
Apr 26, 2016, 12:27:56 PM (9 years ago)
Author:
Michele Selvaggi <michele.selvaggi@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
bd8c884
Parents:
cd699d0
Message:

fixed DelphesTF2 for root version >= 6.04

File:
1 edited

Legend:

Unmodified
Added
Removed
  • classes/DelphesTF2.cc

    rcd699d0 r3e8bcb9  
    3131  TF2()
    3232{
     33
     34#if ROOT_VERSION_CODE >= ROOT_VERSION(6,04,00)
     35  fFormula = new TFormula();
     36#endif
     37
     38
    3339}
    3440
     
    5965  buffer.ReplaceAll("z", "x");
    6066  buffer.ReplaceAll("t", "y");
    61 #if  ROOT_VERSION_CODE < ROOT_VERSION(6,04,00)
     67#if ROOT_VERSION_CODE < ROOT_VERSION(6,04,00)
    6268  if(TF2::Compile(buffer) != 0)
    6369#else
    64   if(TF2::GetFormula()->Compile(buffer) != 0)
     70  if(fFormula->Compile(buffer) != 0)
    6571#endif
    6672  {
Note: See TracChangeset for help on using the changeset viewer.