//Numerical integration using R //passing the function from ROOT #include #include #include #include //To integrate using R the function must be vectorized //The idea is just to receive a vector like an argument,to evaluate //every element saving the result in another vector //and return the resultant vector. std::vector BreitWignerVectorized(std::vector xx) { std::vector result(xx.size()); for(Int_t i=0;i