api.hpp 962 B

12345678910111213141516171819202122232425
  1. #ifndef ROOT_API_HPP
  2. #define ROOT_API_HPP
  3. #include <string>
  4. #include <vector>
  5. #include <tuple>
  6. #include "filval/api.hpp"
  7. namespace fv{
  8. LorentzVectors* lorentz_vectors(Value<std::vector<float>>* pt, Value<std::vector<float>>* eta,
  9. Value<std::vector<float>>* phi, Value<std::vector<float>>* mass,
  10. const std::string& alias=""){
  11. return new LorentzVectors(pt, eta, phi, mass, alias);
  12. }
  13. LorentzVectors* lorentz_vectors(const std::string& pt_name, const std::string& eta_name,
  14. const std::string& phi_name, const std::string& mass_name,
  15. const std::string& alias=""){
  16. return lorentz_vectors(lookup<std::vector<float>>(pt_name), lookup<std::vector<float>>(eta_name),
  17. lookup<std::vector<float>>(phi_name), lookup<std::vector<float>>(mass_name),
  18. alias);
  19. }
  20. }
  21. #endif // ROOT_API_HPP