19 #include <momemta/ParameterSet.h> 20 #include <momemta/Module.h> 21 #include <momemta/Types.h> 22 #include <momemta/Utils.h> 24 #include <Math/RotationZ.h> 62 m_ps_point = get<double>(parameters.get<
InputTag>(
"ps_point"));
63 m_input = get<LorentzVector>(parameters.get<
InputTag>(
"reco_particle"));
66 virtual Status
work()
override {
68 const double& ps_point = *m_ps_point;
69 const LorentzVector& reco_particle = *m_input;
71 m_Rotation.SetAngle(2*M_PI*ps_point);
73 *output = m_Rotation*reco_particle;
76 *TF_times_jacobian = 2*M_PI;
82 ROOT::Math::RotationZ m_Rotation;
89 std::shared_ptr<LorentzVector> output = produce<LorentzVector>(
"output");
90 std::shared_ptr<double> TF_times_jacobian = produce<double>(
"TF_times_jacobian");
95 .Input(
"reco_particle")
97 .Output(
"TF_times_jacobian");
virtual Status work() override
Main function.
Parent class for all the modules.
A class encapsulating a lua table.
Module(PoolPtr pool, const std::string &name)
Constructor.
Flat transfer function on Phi (mainly for testing purposes).