Geant4 VMC Version 6.6
Loading...
Searching...
No Matches
TG4ExtDecayer.h
Go to the documentation of this file.
1#ifndef TG4_EXT_DECAYER_H
2#define TG4_EXT_DECAYER_H
3
4//------------------------------------------------
5// The Geant4 Virtual Monte Carlo package
6// Copyright (C) 2007 - 2014 Ivana Hrivnacova
7// All rights reserved.
8//
9// For the licensing terms see geant4_vmc/LICENSE.
10// Contact: root-vmc@cern.ch
11//-------------------------------------------------
12
17
18#include "TG4Verbose.h"
19
20#include "G4VExtDecayer.hh"
21#include "globals.hh"
22
23class TVirtualMCDecayer;
25
26class G4Track;
27class G4DecayProducts;
28
29class TClonesArray;
30
40
42{
43 public:
44 TG4ExtDecayer(TVirtualMCDecayer* externalDecayer);
45 virtual ~TG4ExtDecayer();
46
47 virtual G4DecayProducts* ImportDecayProducts(const G4Track& track);
48
49 // set methods
50 void SetSkipNeutrino(G4bool skipNeutrino);
51
52 private:
57
59 TVirtualMCDecayer* fExternalDecayer;
60 TClonesArray* fDecayProductsArray;
62};
63
64// inline functions
65
66inline void TG4ExtDecayer::SetSkipNeutrino(G4bool skipNeutrino)
67{
69 fSkipNeutrino = skipNeutrino;
70}
71
72#endif // TG4_EXT_DECAYER_H
Definition of the TG4Verbose class.
Implements the G4VExtDecayer abstract class with the TVirtualMCDecayer.
virtual G4DecayProducts * ImportDecayProducts(const G4Track &track)
TClonesArray * fDecayProductsArray
array of decay products
TG4ExtDecayer(const TG4ExtDecayer &right)
Not implemented.
void SetSkipNeutrino(G4bool skipNeutrino)
TG4ParticlesManager * fParticlesManager
particles manager
TG4ExtDecayer(TVirtualMCDecayer *externalDecayer)
TG4ExtDecayer & operator=(const TG4ExtDecayer &right)
Not implemented.
virtual ~TG4ExtDecayer()
G4bool fSkipNeutrino
option to skip importing neutrinos
TVirtualMCDecayer * fExternalDecayer
the external decayer
Provides mapping between TDatabasePDG and Geant4 particles.
Base class for defining the verbose level and a common messenger.
Definition TG4Verbose.h:36