Belle II Software development
EvtGenParticlePDG.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 <TParticlePDG.h>
12
13namespace Belle2 {
22 class EvtGenParticlePDG : public TParticlePDG {
23 public:
25 EvtGenParticlePDG(const char* name, const char* title, Double_t mass, Bool_t stable, Double_t width,
26 Double_t charge, const char* ParticleClass, Int_t PDGcode, Int_t Anti, Int_t TrackingCode,
27 Double_t Lifetime, Double_t Spin, Double_t maxWidth, int pythiaID):
28 TParticlePDG(name, title, mass, stable, width, charge, ParticleClass, PDGcode, Anti, TrackingCode),
29 m_maxWidth(maxWidth), m_pythiaID(pythiaID)
30 {
31 // override members in base class
32 fLifetime = Lifetime;
33 fSpin = Spin;
34 }
36 Double_t MaxWidth() const { return m_maxWidth; }
38 Int_t PythiaID() const { return m_pythiaID; }
40 std::string __repr__() const;
41 protected:
43 Double_t m_maxWidth{0};
45 Int_t m_pythiaID{0};
48 };
49
51} //Belle2 namespace
Helper class for setting additional TParticlePDG members and storing the ones it doesn't have yet.
Double_t m_maxWidth
max width of the particle (max_Dm in evt.pdl)
Int_t PythiaID() const
Return pythia id of this particle.
ClassDef(EvtGenParticlePDG, 1)
ROOT Dictionary.
Int_t m_pythiaID
pythia id of the particle
EvtGenParticlePDG(const char *name, const char *title, Double_t mass, Bool_t stable, Double_t width, Double_t charge, const char *ParticleClass, Int_t PDGcode, Int_t Anti, Int_t TrackingCode, Double_t Lifetime, Double_t Spin, Double_t maxWidth, int pythiaID)
Construct with all values.
Double_t MaxWidth() const
Return max width (max_Dm in evt.pdl)
std::string __repr__() const
Return a string repesentation of this particle to be used when printing the particle in python.
Abstract base class for different kinds of events.