Belle II Software  release-05-02-19
ParticleStatsModule.h
1 /**************************************************************************
2 * BASF2 (Belle Analysis Framework 2) *
3 * Copyright(C) 2010 - Belle II Collaboration *
4 * *
5 * Author: The Belle II Collaboration *
6 * Contributors: Phillip Urquijo, Anze Zupanc *
7 * *
8 * This software is provided "as is" without any warranty. *
9 **************************************************************************/
10 
11 #pragma once
12 #include <framework/core/Module.h>
13 #include <analysis/DecayDescriptor/DecayDescriptor.h>
14 #include <string>
15 #include <TMatrix.h>
16 
17 namespace Belle2 {
29  class ParticleStatsModule : public Module {
30  private:
32  int m_nPass;
34  int m_nParticles;
36  std::vector<std::string> m_strParticleLists;
38  TMatrix* m_PassMatrix;
43 
44  public:
47 
50  virtual void initialize() override;
53  virtual void event() override;
54 
56  virtual void terminate() override;
57  };
59 } // end namespace Belle2
60 
Belle2::ParticleStatsModule::terminate
virtual void terminate() override
Write TTree to file, and close file if necessary.
Definition: ParticleStatsModule.cc:125
Belle2::ParticleStatsModule::m_nParticles
int m_nParticles
Count the total number of particles.
Definition: ParticleStatsModule.h:42
Belle2::ParticleStatsModule::event
virtual void event() override
Method called for each event.
Definition: ParticleStatsModule.cc:61
Belle2::ParticleStatsModule::m_MultiplicityMatrix
TMatrix * m_MultiplicityMatrix
Particle multiplicity matrix for the particle lists.
Definition: ParticleStatsModule.h:48
Belle2::ParticleStatsModule::m_strParticleLists
std::vector< std::string > m_strParticleLists
Name of the TTree.
Definition: ParticleStatsModule.h:44
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::ParticleStatsModule::ParticleStatsModule
ParticleStatsModule()
Constructor.
Definition: ParticleStatsModule.cc:23
Belle2::ParticleStatsModule::m_PassMatrix
TMatrix * m_PassMatrix
Pass matrix for the particle lists.
Definition: ParticleStatsModule.h:46
Belle2::ParticleStatsModule::m_nPass
int m_nPass
Number of events with Particle candidates.
Definition: ParticleStatsModule.h:40
Belle2::DecayDescriptor
The DecayDescriptor stores information about a decay tree or parts of a decay tree.
Definition: DecayDescriptor.h:43
Belle2::ParticleStatsModule::initialize
virtual void initialize() override
Initialises the module.
Definition: ParticleStatsModule.cc:37
Belle2::ParticleStatsModule::m_decaydescriptor
DecayDescriptor m_decaydescriptor
Decay descriptor of the particle being selected.
Definition: ParticleStatsModule.h:50