Belle II Software  release-06-02-00
EventKinematics.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 <framework/datastore/RelationsObject.h>
12 
13 #include <TVector3.h>
14 
15 namespace Belle2 {
29 
30  public:
31 
36  EventKinematics(bool builtFromMC = false) : m_missingMomentum(0.0, 0.0, 0.0), m_missingMomentumCMS(0.0, 0.0, 0.0),
38 
39  // setters
40 
46  void addMissingMomentum(const TVector3& missingMomentum);
47 
53  void addMissingMomentumCMS(const TVector3& missingMomentumCMS);
54 
60  void addMissingEnergyCMS(float missingEnergyCMS);
61 
67  void addMissingMass2(float missingMass2);
68 
74  void addVisibleEnergyCMS(float visibleEnergyCMS);
75 
81  void addTotalPhotonsEnergy(float totalPhotonsEnergy);
82 
83 
84  // getters
85 
91  TVector3 getMissingMomentum(void) const
92  {
93  return m_missingMomentum;
94  }
95 
101  TVector3 getMissingMomentumCMS(void) const
102  {
103  return m_missingMomentumCMS;
104  }
105 
111  float getMissingEnergyCMS(void) const
112  {
113  return m_missingEnergyCMS;
114  }
115 
121  float getMissingMass2(void) const
122  {
123  return m_missingMass2;
124  }
125 
131  float getVisibleEnergyCMS(void) const
132  {
133  return m_visibleEnergyCMS;
134  }
135 
141  float getTotalPhotonsEnergy(void) const
142  {
143  return m_photonsEnergy;
144  }
145 
146 
147 
148  private:
149 
150  // persistent data members
151  TVector3 m_missingMomentum;
164  };
165 
166 
168 } // end namespace Belle2
169 
Class for collecting variables related to the global kinematics of the event.
TVector3 getMissingMomentumCMS(void) const
Get missing momentum vector in CMS.
float getTotalPhotonsEnergy(void) const
Get total energy of photons in the event.
float getMissingEnergyCMS(void) const
Get missing energy in CMS.
void addTotalPhotonsEnergy(float totalPhotonsEnergy)
Add total energy of photons in the event.
float m_photonsEnergy
Total energy of photons in lab.
TVector3 getMissingMomentum(void) const
Get missing momentum vector in lab.
bool m_builtFromMC
Is from MC switch.
void addVisibleEnergyCMS(float visibleEnergyCMS)
Add visible energy of the event in CMS.
float m_missingEnergyCMS
Missing energy of the event in CMS
float getVisibleEnergyCMS(void) const
Get visible energy of the event.
void addMissingMass2(float missingMass2)
Add missing mass squared.
void addMissingMomentumCMS(const TVector3 &missingMomentumCMS)
Add the missing momentum vector in CMS.
EventKinematics(bool builtFromMC=false)
Default constructor.
void addMissingMomentum(const TVector3 &missingMomentum)
Add the missing momentum vector in lab.
float m_missingMass2
Missing mass squared computed from m_missingMomentumCMS and m_missingEnergyCMS.
float getMissingMass2(void) const
Get missing mass squared.
void addMissingEnergyCMS(float missingEnergyCMS)
Add missing energy in CMS.
TVector3 m_missingMomentumCMS
Missing momentum of the event in CMS.
float m_visibleEnergyCMS
Visible energy of the event in CMS
TVector3 m_missingMomentum
Missing momentum of the event in lab.
Defines interface for accessing relations of objects in StoreArray.
ClassDef(RelationsInterface, 0)
defines interface for accessing relations of objects in StoreArray.
Abstract base class for different kinds of events.