Belle II Software  release-05-02-19
ParticleCombinerModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Marko Staric, 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 #include <analysis/ParticleCombiner/ParticleCombiner.h>
16 
17 #include <analysis/DecayDescriptor/DecayDescriptor.h>
18 
19 #include <string>
20 #include <memory>
21 
22 namespace Belle2 {
27  class Particle;
28 
32  class ParticleCombinerModule : public Module {
33 
34  public:
35 
40 
45  virtual void initialize() override;
46 
50  virtual void event() override;
51 
52 
53  private:
54 
55  int m_pdgCode;
57  std::string m_decayString;
59  std::unique_ptr<ParticleGenerator> m_generator;
61  std::string m_listName;
62  std::string m_antiListName;
64  int m_decayModeID;
68  std::string m_cutParameter;
70  bool m_writeOut;
73  0;
79  bool m_chargeConjugation;
83  };
84 
86 } // Belle2 namespace
87 
Belle2::ParticleCombinerModule::m_cutParameter
std::string m_cutParameter
selection criteria
Definition: ParticleCombinerModule.h:76
Belle2::ParticleCombinerModule::event
virtual void event() override
Event processor.
Definition: ParticleCombinerModule.cc:152
Belle2::ParticleCombinerModule::m_listName
std::string m_listName
output particle list name
Definition: ParticleCombinerModule.h:69
Belle2::ParticleCombinerModule::m_decaydescriptor
DecayDescriptor m_decaydescriptor
Decay descriptor of the decay being reconstructed.
Definition: ParticleCombinerModule.h:66
Belle2::ParticleCombinerModule::initialize
virtual void initialize() override
Initialize the Module.
Definition: ParticleCombinerModule.cc:92
Belle2::ParticleCombinerModule::ParticleCombinerModule
ParticleCombinerModule()
Constructor.
Definition: ParticleCombinerModule.cc:48
Belle2::ParticleCombinerModule::m_recoilParticleType
int m_recoilParticleType
type of recoil particle: 0 - not recoil (normal reconstruction); 1 - recoil against e+e- and all daug...
Definition: ParticleCombinerModule.h:80
Belle2::ParticleCombinerModule::m_isSelfConjugatedParticle
bool m_isSelfConjugatedParticle
flag that indicates whether an anti-particle mother does not exist and should not be reconstructed as...
Definition: ParticleCombinerModule.h:74
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::ParticleCombinerModule::m_pdgCode
int m_pdgCode
PDG code of the combined mother particle.
Definition: ParticleCombinerModule.h:63
Belle2::ParticleCombinerModule::m_decayModeID
int m_decayModeID
user specified decay mode identifier
Definition: ParticleCombinerModule.h:72
Belle2::ParticleCombinerModule::m_maximumNumberOfCandidates
int m_maximumNumberOfCandidates
maximum number of reconstructed candidates
Definition: ParticleCombinerModule.h:83
Belle2::ParticleCombinerModule::m_generator
std::unique_ptr< ParticleGenerator > m_generator
Generates the combinations.
Definition: ParticleCombinerModule.h:67
Belle2::ParticleCombinerModule::m_writeOut
bool m_writeOut
toggle output particle list btw.
Definition: ParticleCombinerModule.h:78
Belle2::ParticleCombinerModule::m_ignoreIfTooManyCandidates
bool m_ignoreIfTooManyCandidates
drop all candidates if max.
Definition: ParticleCombinerModule.h:85
Belle2::ParticleCombinerModule::m_allowChargeViolation
bool m_allowChargeViolation
switch to turn on and off the requirement of electric charge conservation
Definition: ParticleCombinerModule.h:89
Belle2::DecayDescriptor
The DecayDescriptor stores information about a decay tree or parts of a decay tree.
Definition: DecayDescriptor.h:43
Belle2::ParticleCombinerModule::m_chargeConjugation
bool m_chargeConjugation
boolean to control whether charge conjugated decay should be reconstructed as well
Definition: ParticleCombinerModule.h:87
Belle2::ParticleCombinerModule::m_decayString
std::string m_decayString
Input DecayString specifying the decay being reconstructed.
Definition: ParticleCombinerModule.h:65
Belle2::ParticleCombinerModule::m_antiListName
std::string m_antiListName
output anti-particle list name
Definition: ParticleCombinerModule.h:70