Changes in classes/DelphesFormula.cc [730bc64:3b5d79a] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
classes/DelphesFormula.cc
r730bc64 r3b5d79a 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 } … … 61 60 buffer.ReplaceAll("phi", "z"); 62 61 buffer.ReplaceAll("energy", "t"); 62 buffer.ReplaceAll("d0", "[0]"); 63 buffer.ReplaceAll("dz", "[1]"); 64 buffer.ReplaceAll("ctgTheta", "[2]"); 63 65 66 #if ROOT_VERSION_CODE < ROOT_VERSION(6, 3, 0) 67 TFormula::SetMaxima(100000, 1000, 1000000); 68 #endif 64 69 65 66 #if ROOT_VERSION_CODE < ROOT_VERSION(6,0,0)67 TFormula::SetMaxima(100000,1000,1000000);68 #endif69 70 70 if(TFormula::Compile(buffer) != 0) 71 71 { … … 77 77 //------------------------------------------------------------------------------ 78 78 79 Double_t DelphesFormula::Eval(Double_t pt, Double_t eta, Double_t phi, Double_t energy) 79 Double_t DelphesFormula::Eval(Double_t pt, Double_t eta, Double_t phi, 80 Double_t energy, Double_t d0, Double_t dz, 81 Double_t ctgTheta) 80 82 { 81 Double_t x[4] = {pt, eta, phi, energy}; 82 return EvalPar(x); 83 Double_t x[4] = {pt, eta, phi, energy}; 84 Double_t params[3] = {d0, dz, ctgTheta}; 85 return EvalPar(x, params); 83 86 } 84 87
Note:
See TracChangeset
for help on using the changeset viewer.