20 #include <momemta/Module.h> 21 #include <momemta/ParameterSet.h> 22 #include <momemta/Types.h> 53 std::vector<InputTag> input_particles_tags = parameters.get<std::vector<InputTag>>(
"particles");
54 for (
auto& t: input_particles_tags)
55 input_particles.push_back(get<LorentzVector>(t));
58 virtual Status
work()
override {
61 for (
const auto& p: input_particles) {
62 *phase_space *=
SQ(p->P()) * sin(p->Theta()) / (2.0 * p->E() *
CB(2. * M_PI));
71 std::vector<Value<LorentzVector>> input_particles;
74 std::shared_ptr<double> phase_space = produce<double>(
"phase_space");
79 .Output(
"phase_space");
Parent class for all the modules.
A class encapsulating a lua table.
Module(PoolPtr pool, const std::string &name)
Constructor.
virtual Status work() override
Main function.
Compute the phase space density for observed particles (not concerned by the change of variable) ...