Belle II Software  release-05-02-19
ParticleWeightingModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2018 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Ilya Komarov *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <framework/core/Module.h>
14 #include <analysis/dbobjects/ParticleWeightingLookUpTable.h>
15 #include <framework/datastore/StoreObjPtr.h>
16 #include <framework/database/DBObjPtr.h>
17 #include <analysis/dataobjects/ParticleList.h>
18 #include <string>
19 
20 namespace Belle2 {
32  class ParticleWeightingModule : public Module {
33 
34  std::string m_tableName;
35  std::string m_inputListName;
36  StoreObjPtr<ParticleList> m_inputList;
37  std::unique_ptr<DBObjPtr<ParticleWeightingLookUpTable>> m_ParticleWeightingLookUpTable;
39  public:
40 
45 
51  WeightInfo getInfo(const Particle* p);
52 
57  virtual void initialize() override;
58 
63  virtual void event() override;
64 
65  };
66 
68 } // Belle2 namespace
69 
Belle2::WeightInfo
std::map< std::string, double > WeightInfo
Weight information: a line from the weight lookup table.
Definition: ParticleWeightingLookUpTable.h:31
Belle2::ParticleWeightingModule::ParticleWeightingModule
ParticleWeightingModule()
Constructor.
Definition: ParticleWeightingModule.cc:42
Belle2::ParticleWeightingModule::m_tableName
std::string m_tableName
Name of the table.
Definition: ParticleWeightingModule.h:42
Belle2::ParticleWeightingModule::event
virtual void event() override
Event processing by the module.
Definition: ParticleWeightingModule.cc:77
Belle2::ParticleWeightingModule::m_ParticleWeightingLookUpTable
std::unique_ptr< DBObjPtr< ParticleWeightingLookUpTable > > m_ParticleWeightingLookUpTable
Pointer to the table in DB.
Definition: ParticleWeightingModule.h:45
Belle2::ParticleWeightingModule::initialize
virtual void initialize() override
Initialize the Module.
Definition: ParticleWeightingModule.cc:69
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::ParticleWeightingModule::getInfo
WeightInfo getInfo(const Particle *p)
Get LookUp information for the particle.
Definition: ParticleWeightingModule.cc:52
Belle2::ParticleWeightingModule::m_inputListName
std::string m_inputListName
name of input particle list.
Definition: ParticleWeightingModule.h:43
Belle2::Particle
Class to store reconstructed particles.
Definition: Particle.h:77
Belle2::ParticleWeightingModule::m_inputList
StoreObjPtr< ParticleList > m_inputList
input particle list
Definition: ParticleWeightingModule.h:44