Belle II Software  release-05-02-19
EventShapeCalculatorModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2018 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Umberto Tamponi (tamponi@to.infn.it) *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <TVector3.h>
14 
15 #include <framework/core/Module.h>
16 
17 namespace Belle2 {
35  class EventShapeCalculatorModule : public Module {
36 
37  public:
38 
43 
47  virtual ~EventShapeCalculatorModule() {};
48 
50  virtual void initialize() override;
51 
52 
57  virtual void event() override;
58 
59 
64  int parseParticleLists(std::vector<std::string>);
65 
66 
67  private:
68 
69  std::vector<std::string> m_particleListNames;
70  std::vector<TLorentzVector> m_p4List;
71  std::vector<TVector3> m_p3List;
73  bool m_enableThrust = true;
74  bool m_enableCollisionAxis = true;
75  bool m_enableFW = true;
76  bool m_enableHarmonicMoments = true;
77  bool m_enableJets = true;
78  bool m_enableSphericity = true;
79  bool m_enableCleoCones = true;
80  bool m_enableAllMoments = false;
81  bool m_checkForDuplicates = false;
83  };
85 }
86 
Belle2::EventShapeCalculatorModule::m_p4List
std::vector< TLorentzVector > m_p4List
vector containing all the 4-momenta of the particles contained in the input lists.
Definition: EventShapeCalculatorModule.h:78
Belle2::EventShapeCalculatorModule::m_enableCollisionAxis
bool m_enableCollisionAxis
Enables the calculation of the quantities related to the collision axis.
Definition: EventShapeCalculatorModule.h:82
Belle2::EventShapeCalculatorModule::m_enableAllMoments
bool m_enableAllMoments
Enables the calculation of the FW moments from 5 to 8.
Definition: EventShapeCalculatorModule.h:88
Belle2::EventShapeCalculatorModule::parseParticleLists
int parseParticleLists(std::vector< std::string >)
Turns the ParticleLists provided as inputs in std::vectors of TLorentzVector and TVector3,...
Definition: EventShapeCalculatorModule.cc:224
Belle2::EventShapeCalculatorModule::m_enableThrust
bool m_enableThrust
Enables the calculation of thust-related quantities.
Definition: EventShapeCalculatorModule.h:81
Belle2::EventShapeCalculatorModule::event
virtual void event() override
Main method, called for each events.
Definition: EventShapeCalculatorModule.cc:76
Belle2::EventShapeCalculatorModule::m_enableSphericity
bool m_enableSphericity
Enables the calculation of the Sphericity matrix.
Definition: EventShapeCalculatorModule.h:86
Belle2::EventShapeCalculatorModule::m_p3List
std::vector< TVector3 > m_p3List
vector containing all the 3-momenta of the particles contained in the input lists.
Definition: EventShapeCalculatorModule.h:79
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::EventShapeCalculatorModule::initialize
virtual void initialize() override
Define the physical parameters.
Definition: EventShapeCalculatorModule.cc:69
Belle2::EventShapeCalculatorModule::EventShapeCalculatorModule
EventShapeCalculatorModule()
Constructor: Sets the description, the properties and the parameters of the module.
Definition: EventShapeCalculatorModule.cc:47
Belle2::EventShapeCalculatorModule::m_checkForDuplicates
bool m_checkForDuplicates
Enables the check for the duplicates in the input list.
Definition: EventShapeCalculatorModule.h:89
Belle2::EventShapeCalculatorModule::m_particleListNames
std::vector< std::string > m_particleListNames
Names of the ParticleLists (inputs).
Definition: EventShapeCalculatorModule.h:77
Belle2::EventShapeCalculatorModule::~EventShapeCalculatorModule
virtual ~EventShapeCalculatorModule()
Default destructor.
Definition: EventShapeCalculatorModule.h:55
Belle2::EventShapeCalculatorModule::m_enableFW
bool m_enableFW
Enables the calculation of the FW moments.
Definition: EventShapeCalculatorModule.h:83
Belle2::EventShapeCalculatorModule::m_enableJets
bool m_enableJets
Enables the calculation of the Jet-related quantities.
Definition: EventShapeCalculatorModule.h:85
Belle2::EventShapeCalculatorModule::m_enableCleoCones
bool m_enableCleoCones
Enables the calculation of the Cleo Cones.
Definition: EventShapeCalculatorModule.h:87
Belle2::EventShapeCalculatorModule::m_enableHarmonicMoments
bool m_enableHarmonicMoments
Enables the calculation of the Harmonic moments.
Definition: EventShapeCalculatorModule.h:84