Belle II Software light-2406-ragdoll
Pi0VetoEfficiencySystematics.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9
10#pragma once
11
12#include <framework/core/Module.h>
13
14#include <analysis/dbobjects/ParticleWeightingLookUpTable.h>
15#include <framework/database/DBObjPtr.h>
16#include <analysis/dataobjects/Particle.h>
17#include <analysis/DecayDescriptor/DecayDescriptor.h>
18#include <string>
19
20namespace Belle2 {
30
31 public:
41 WeightInfo getInfo(const Particle* particle);
42
44 virtual void initialize() override;
45
49 virtual void event() override;
50
51 private:
52 std::vector<std::string> m_ParticleLists;
53 std::string m_decayString;
55 std::string m_tableName;
56 double m_threshold;
57 std::string m_mode;
58 std::string m_suffix;
59 std::unique_ptr<DBObjPtr<ParticleWeightingLookUpTable>> m_ParticleWeightingLookUpTable;
64 void addPi0VetoEfficiencyRatios(Particle* B, const Particle* hardPhoton);
65
66 }; // Pi0VetoEfficiencySystematicsModule
67
69}; //namespace
The DecayDescriptor stores information about a decay tree or parts of a decay tree.
Base class for Modules.
Definition: Module.h:72
Class to store reconstructed particles.
Definition: Particle.h:75
Adds Pi0Veto Efficiency Data/MC ratios To Particle List.
std::vector< std::string > m_ParticleLists
input particle lists
virtual void initialize() override
Initializes the module.
virtual void event() override
Function to be executed at each event.
std::string m_decayString
Decay string to select primary photon.
WeightInfo getInfo(const Particle *particle)
Get LookUp information for the particle.
std::string m_suffix
Suffix of extrainfo name.
std::unique_ptr< DBObjPtr< ParticleWeightingLookUpTable > > m_ParticleWeightingLookUpTable
Pointer to the table in DB.
DecayDescriptor m_decayDescriptor
decay descriptor which specifies the primary photon
std::string m_tableName
Table name of the payloads.
Pi0VetoEfficiencySystematicsModule()
Constructor: Sets the description, the properties and the parameters of the module.
void addPi0VetoEfficiencyRatios(Particle *B, const Particle *hardPhoton)
function to add appropriate data/mc ratio weight to a particle
std::map< std::string, double > WeightInfo
Weight information: a line from the weight lookup table.
Abstract base class for different kinds of events.
Definition: ClusterUtils.h:24