Belle II Software  release-06-02-00
HelixErrorScalerModule.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 #pragma once
10 
11 #include <framework/core/Module.h>
12 #include <framework/datastore/StoreObjPtr.h>
13 #include <framework/datastore/StoreArray.h>
14 #include <analysis/dataobjects/Particle.h>
15 #include <analysis/dataobjects/ParticleList.h>
16 #include <analysis/DecayDescriptor/DecayDescriptor.h>
17 #include <mdst/dataobjects/MCParticle.h>
18 #include <mdst/dataobjects/PIDLikelihood.h>
19 #include <mdst/dataobjects/TrackFitResult.h>
20 
21 #include <string>
22 
23 namespace Belle2 {
36  class HelixErrorScalerModule : public Module {
37 
38  public:
39 
44 
46  virtual void initialize() override;
47 
49  virtual void event() override;
50 
53 
54  private:
55 
56  std::string m_inputListName;
57  std::string m_outputListName;
58  std::string m_outputAntiListName;
59  std::vector<double> m_scaleFactors;
60  std::vector<double> m_d0ResolPars;
61  std::vector<double> m_z0ResolPars;
62  int m_pdgCode;
63  std::string m_decayString;
72  };
74 }
75 
The DecayDescriptor stores information about a decay tree or parts of a decay tree.
scale the error of helix parameters
StoreArray< TrackFitResult > m_trackfitresults
StoreArray of TrackFitResult objects.
std::vector< double > m_d0ResolPars
parameters (a,b) to define d0 resolution = a (+) b / (p*beta*sinTheta**1.5)
StoreObjPtr< ParticleList > m_outputparticleList
StoreObjptr for output particlelist.
std::string m_decayString
Input DecayString specifying the input particle.
StoreArray< MCParticle > m_mcparticles
StoreArray of MCParticle objects.
StoreArray< Particle > m_particles
StoreArray of Particle objects.
virtual void event() override
loop over the input charged particles
StoreArray< PIDLikelihood > m_pidlikelihoods
StoreArray of PIDLikelihood objects.
HelixErrorScalerModule()
Constructor: Sets the description, the properties and the parameters of the module.
virtual void initialize() override
Register input and output data.
TrackFitResult * getTrackFitResultWithScaledError(const Particle *particle)
create a TrackFitResult with scaled errors
std::vector< double > m_z0ResolPars
parameters (a,b) to define z0 resolution = a (+) b / (p*beta*sinTheta**2.5)
StoreObjPtr< ParticleList > m_inputparticleList
StoreObjptr for input charged particlelist.
StoreObjPtr< ParticleList > m_outputAntiparticleList
StoreObjptr for output antiparticlelist.
DecayDescriptor m_decaydescriptor
Decay descriptor of the charged particle.
int m_pdgCode
PDG code of the charged particle to be scaled.
std::vector< double > m_scaleFactors
vector of five scale factors for helix parameter errors
std::string m_outputAntiListName
output anti-particle list name
std::string m_inputListName
The name of input charged particle list.
std::string m_outputListName
The name of output charged particle list.
Base class for Modules.
Definition: Module.h:72
Class to store reconstructed particles.
Definition: Particle.h:74
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
Type-safe access to single objects in the data store.
Definition: StoreObjPtr.h:95
Values of the result of a track fit with a given particle hypothesis.
Abstract base class for different kinds of events.