Belle II Software  release-05-02-19
BremsFinderModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2019 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Alejandro Mora *
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/dataobjects/ParticleList.h>
16 
17 #include <framework/datastore/StoreObjPtr.h>
18 
19 #include <string>
20 
21 namespace Belle2 {
26  class Particle;
27 
45  class BremsFinderModule : public Module {
46 
47  public:
48 
51 
57  virtual void initialize() override;
58 
63  virtual void event() override;
64 
65  enum {c_DimMatrix = 7};
66 
67  private:
68  std::string m_inputListName;
69  std::string m_gammaListName;
70  std::string m_outputListName;
71  std::string m_outputAntiListName;
72  int m_pdgCode;
73  StoreObjPtr<ParticleList> m_inputList;
74  StoreObjPtr<ParticleList> m_gammaList;
75  StoreObjPtr<ParticleList> m_outputList;
78  3.0f;
80  false;
82  false;
83  bool m_writeOut = false;
85  };
86 
88 } // Belle2 namespace
89 
Belle2::BremsFinderModule::m_addMultiplePhotons
bool m_addMultiplePhotons
In case there is more than one brems photon, use only the best one (based on the weight of the relati...
Definition: BremsFinderModule.h:87
Belle2::BremsFinderModule::m_inputList
StoreObjPtr< ParticleList > m_inputList
StoreObjptr for input charged particle list.
Definition: BremsFinderModule.h:81
Belle2::BremsFinderModule::m_outputList
StoreObjPtr< ParticleList > m_outputList
StoreObjptr for output particlelist.
Definition: BremsFinderModule.h:83
Belle2::BremsFinderModule::event
virtual void event() override
Called once for each event.
Definition: BremsFinderModule.cc:166
Belle2::BremsFinderModule::BremsFinderModule
BremsFinderModule()
Constructor, for setting module description and parameters.
Definition: BremsFinderModule.cc:56
Belle2::BremsFinderModule::m_gammaList
StoreObjPtr< ParticleList > m_gammaList
StoreObjptr for gamma list.
Definition: BremsFinderModule.h:82
Belle2::BremsFinderModule::m_outputListName
std::string m_outputListName
output particle list name
Definition: BremsFinderModule.h:78
Belle2::BremsFinderModule::initialize
virtual void initialize() override
Use this to initialize resources or memory your module needs.
Definition: BremsFinderModule.cc:120
Belle2::BremsFinderModule::m_writeOut
bool m_writeOut
Write the output particle list in the final file?
Definition: BremsFinderModule.h:91
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::BremsFinderModule::m_pdgCode
int m_pdgCode
PDG code of the particle to be corrected.
Definition: BremsFinderModule.h:80
Belle2::BremsFinderModule::m_maximumAcceptance
double m_maximumAcceptance
photons whose clusters have relation weights higher than this will not be used for bremsstrahlung cor...
Definition: BremsFinderModule.h:85
Belle2::BremsFinderModule::m_inputListName
std::string m_inputListName
input particle list name
Definition: BremsFinderModule.h:76
Belle2::BremsFinderModule::m_outputAntiList
StoreObjPtr< ParticleList > m_outputAntiList
StoreObjptr for output antiparticlelist.
Definition: BremsFinderModule.h:84
Belle2::BremsFinderModule::m_gammaListName
std::string m_gammaListName
input gamma list name
Definition: BremsFinderModule.h:77
Belle2::BremsFinderModule::m_usePhotonOnlyOnce
bool m_usePhotonOnlyOnce
Each brems photon can be used to correct only one particle (the one with the smallest relation weight...
Definition: BremsFinderModule.h:89
Belle2::BremsFinderModule::m_outputAntiListName
std::string m_outputAntiListName
output anti-particle list name
Definition: BremsFinderModule.h:79