Changeset 341014c in git for classes/DelphesFormula.cc
- Timestamp:
- Feb 12, 2019, 9:29:17 PM (6 years ago)
- Branches:
- ImprovedOutputFile, Timing, llp, master
- Children:
- 6455202
- Parents:
- 45e58be
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
classes/DelphesFormula.cc
r45e58be r341014c 16 16 * along with this program. If not, see <http://www.gnu.org/licenses/>. 17 17 */ 18 19 18 20 19 #include "classes/DelphesFormula.h" … … 54 53 for(it = expression; *it; ++it) 55 54 { 56 if(*it == ' ' || *it == '\t' || *it == '\r' || *it == '\n' || *it == '\\' 55 if(*it == ' ' || *it == '\t' || *it == '\r' || *it == '\n' || *it == '\\') continue; 57 56 buffer.Append(*it); 58 57 } … … 62 61 buffer.ReplaceAll("energy", "t"); 63 62 63 #if ROOT_VERSION_CODE < ROOT_VERSION(6, 0, 0) 64 TFormula::SetMaxima(100000, 1000, 1000000); 65 #endif 64 66 65 66 #if ROOT_VERSION_CODE < ROOT_VERSION(6,0,0)67 TFormula::SetMaxima(100000,1000,1000000);68 #endif69 70 67 if(TFormula::Compile(buffer) != 0) 71 68 { … … 79 76 Double_t DelphesFormula::Eval(Double_t pt, Double_t eta, Double_t phi, Double_t energy) 80 77 { 81 82 78 Double_t x[4] = {pt, eta, phi, energy}; 79 return EvalPar(x); 83 80 } 84 81
Note:
See TracChangeset
for help on using the changeset viewer.