Belle II Software  release-05-02-19
MCMatcherParticlesModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Anze Zupanc *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <framework/core/Module.h>
14 
15 // framework - DataStore
16 #include <framework/datastore/StoreArray.h>
17 #include <framework/datastore/StoreObjPtr.h>
18 
19 // dataobjects
20 #include <mdst/dataobjects/MCParticle.h>
21 #include <analysis/dataobjects/Particle.h>
22 #include <analysis/dataobjects/ParticleList.h>
23 
24 #include <string>
25 
26 
27 namespace Belle2 {
59  class MCMatcherParticlesModule : public Module {
60 
61  public:
62 
67 
72  virtual void initialize() override;
73 
77  virtual void event() override;
78 
79  private:
80 
81  std::string m_listName;
86  bool m_looseMatching;
91  void setLooseMCMatch(const Particle* particle);
92  };
94 }
Belle2::MCMatcherParticlesModule::m_particles
StoreArray< Particle > m_particles
the array of Particles.
Definition: MCMatcherParticlesModule.h:92
Belle2::MCMatcherParticlesModule::event
virtual void event() override
Event processor.
Definition: MCMatcherParticlesModule.cc:95
Belle2::MCMatcherParticlesModule::initialize
virtual void initialize() override
Initialize the Module.
Definition: MCMatcherParticlesModule.cc:70
Belle2::MCMatcherParticlesModule::m_plist
StoreObjPtr< ParticleList > m_plist
the input ParticleList.
Definition: MCMatcherParticlesModule.h:90
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::StoreObjPtr
Type-safe access to single objects in the data store.
Definition: ParticleList.h:33
Belle2::MCMatcherParticlesModule::setLooseMCMatch
void setLooseMCMatch(const Particle *particle)
Finds common mother of the majority of daughters.
Definition: MCMatcherParticlesModule.cc:116
Belle2::MCMatcherParticlesModule::m_looseMatching
bool m_looseMatching
perform loose mc matching
Definition: MCMatcherParticlesModule.h:94
Belle2::MCMatcherParticlesModule::MCMatcherParticlesModule
MCMatcherParticlesModule()
Constructor.
Definition: MCMatcherParticlesModule.cc:40
Belle2::Particle
Class to store reconstructed particles.
Definition: Particle.h:77
Belle2::StoreArray< MCParticle >
Belle2::MCMatcherParticlesModule::m_mcparticles
StoreArray< MCParticle > m_mcparticles
the array of MCParticles.
Definition: MCMatcherParticlesModule.h:91
Belle2::MCMatcherParticlesModule::m_listName
std::string m_listName
steering variable: name of the input ParticleList
Definition: MCMatcherParticlesModule.h:89