Belle II Software light-2406-ragdoll
EventKinematicsModule.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10
11#include <Math/Vector3D.h>
12#include <Math/Vector4D.h>
13
14#include <framework/core/Module.h>
15
16#include <analysis/dataobjects/EventKinematics.h>
17
18#include <framework/datastore/StoreObjPtr.h>
19
20namespace Belle2 {
32
33 public:
34
39
42
44 virtual void initialize() override;
45
47 virtual void event() override;
48
50 virtual void terminate() override;
51
52
53 private:
54
57 bool m_usingMC;
59 std::vector<std::string> m_particleLists;
62 std::vector<ROOT::Math::PxPyPzEVector> m_particleMomentumList;
64 std::vector<ROOT::Math::PxPyPzEVector> m_particleMomentumListCMS;
66 std::vector<ROOT::Math::PxPyPzEVector> m_photonsMomentumList;
68 void getParticleMomentumLists(std::vector<std::string> particleLists);
69
71 ROOT::Math::XYZVector getMissingMomentum();
73 ROOT::Math::XYZVector getMissingMomentumCMS();
75 float getMissingEnergyCMS();
77 float getVisibleEnergyCMS();
80 };
82}
83
Module to compute global quantities related to the event kinematics, like total missing energy and ma...
ROOT::Math::XYZVector getMissingMomentum()
Calculate the missing momentum in the lab system for this event.
float getMissingEnergyCMS()
Calculate the missing energy in the CMS for this event.
EventKinematicsModule()
Constructor: Sets the description, the properties and the parameters of the module.
float getVisibleEnergyCMS()
Calculate the visible energy in the CMS for this event.
std::vector< ROOT::Math::PxPyPzEVector > m_particleMomentumListCMS
A vector of the particles' 4-momenta in the CMS.
virtual void initialize() override
Define the physical parameters.
void getParticleMomentumLists(std::vector< std::string > particleLists)
Fill the lists of particles' momenta.
virtual void event() override
Define event parameters.
virtual void terminate() override
finish the execution
float getTotalPhotonsEnergy()
Calculate the energy for the photons in this event.
StoreObjPtr< EventKinematics > m_eventKinematics
event kinematics object pointer
virtual ~EventKinematicsModule()
free memory
std::vector< std::string > m_particleLists
Name of the ParticleList.
std::vector< ROOT::Math::PxPyPzEVector > m_photonsMomentumList
A vector of the photons' 4-momenta in the lab.
std::vector< ROOT::Math::PxPyPzEVector > m_particleMomentumList
A vector of the particles' 4-momenta in lab.
ROOT::Math::XYZVector getMissingMomentumCMS()
Calculate the missing momentum in the CMS for this event.
Base class for Modules.
Definition: Module.h:72
Type-safe access to single objects in the data store.
Definition: StoreObjPtr.h:96
Abstract base class for different kinds of events.
Definition: ClusterUtils.h:24