|
| 1 | +// Copyright CERN and copyright holders of ALICE O2. This software is |
| 2 | +// distributed under the terms of the GNU General Public License v3 (GPL |
| 3 | +// Version 3), copied verbatim in the file "COPYING". |
| 4 | +// |
| 5 | +// See http://alice-o2.web.cern.ch/license for full licensing information. |
| 6 | +// |
| 7 | +// In applying this license CERN does not waive the privileges and immunities |
| 8 | +// granted to it by virtue of its status as an Intergovernmental Organization |
| 9 | +// or submit itself to any jurisdiction. |
| 10 | + |
| 11 | +/// \author R+Preghenella - June 2020 |
| 12 | + |
| 13 | +#ifndef ALICEO2_EVENTGEN_DECAYERPYTHIA8_H_ |
| 14 | +#define ALICEO2_EVENTGEN_DECAYERPYTHIA8_H_ |
| 15 | + |
| 16 | +#include "TVirtualMCDecayer.h" |
| 17 | +#include "Pythia8/Pythia.h" |
| 18 | + |
| 19 | +#include <iostream> |
| 20 | + |
| 21 | +namespace o2 |
| 22 | +{ |
| 23 | +namespace eventgen |
| 24 | +{ |
| 25 | + |
| 26 | +/*****************************************************************/ |
| 27 | +/*****************************************************************/ |
| 28 | + |
| 29 | +class DecayerPythia8 : public TVirtualMCDecayer |
| 30 | +{ |
| 31 | + |
| 32 | + public: |
| 33 | + /** default constructor **/ |
| 34 | + DecayerPythia8() = default; |
| 35 | + /** destructor **/ |
| 36 | + ~DecayerPythia8() override = default; |
| 37 | + |
| 38 | + /** methods to override **/ |
| 39 | + void Init() override; |
| 40 | + void Decay(Int_t pdg, TLorentzVector* lv) override; |
| 41 | + Int_t ImportParticles(TClonesArray* particles) override; |
| 42 | + void SetForceDecay(Int_t type) override{}; |
| 43 | + void ForceDecay() override{}; |
| 44 | + Float_t GetPartialBranchingRatio(Int_t ipart) override { return 0.; }; |
| 45 | + Float_t GetLifetime(Int_t kf) override { return 0.; }; |
| 46 | + void ReadDecayTable() override{}; |
| 47 | + |
| 48 | + protected: |
| 49 | + /** copy constructor **/ |
| 50 | + DecayerPythia8(const DecayerPythia8&); |
| 51 | + /** operator= **/ |
| 52 | + DecayerPythia8& operator=(const DecayerPythia8&); |
| 53 | + |
| 54 | + /** Pythia8 **/ |
| 55 | + ::Pythia8::Pythia mPythia; //! |
| 56 | + |
| 57 | + ClassDefOverride(DecayerPythia8, 1); |
| 58 | + |
| 59 | +}; /** class Decayer **/ |
| 60 | + |
| 61 | +/*****************************************************************/ |
| 62 | +/*****************************************************************/ |
| 63 | + |
| 64 | +} // namespace eventgen |
| 65 | +} // namespace o2 |
| 66 | + |
| 67 | +#endif /* ALICEO2_EVENTGEN_DECAYER_H_ */ |
0 commit comments