FTFGenerator¶
To generate FTF background events two different methods are available:
Generate via the stand alone FTFGen executable a root file which is then included in the simulation makro. This method gives access to all parameters from the FTF generator. See FTFExternalGenerator for a description.
Use a wrapper around the FTF Generator called PndFtfDirect which allows the call of FTF directly in the simulation macro.
-
class PndFtfDirect : public PndTargetGenerator¶
The PndFtfDirect generates FTF events using the Geant4 Code and inserts the tracks into the PndStack via the FairPrimaryGenerator. Derived from FairGenerator.
- Author
R.Kliemt r.kliemt@gsi.de
Caveat: There are some files included directly inside the code, as it was provided in the executable by the original authors. This should be restructured.
Public Functions
-
PndFtfDirect()¶
-
PndFtfDirect(const char *configfile)¶
-
PndFtfDirect(const PndFtfDirect&)¶
-
PndFtfDirect(const char *particle, const char *material, int targetA, const char *generator, double mom, int seed = 0, bool noelastic = false)¶
-
virtual ~PndFtfDirect()¶
Destructor
-
virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen)¶
Generate one event using FTF
- Parameters
primGen – pointer to the FairPrimaryGenerator
-
Bool_t ProcessEvent(FairPrimaryGenerator *primGen)¶
-
inline void SetVerbose(int v = 1)¶
-
inline void SetNoElastic(bool n = true)¶
-
void LoadG4()¶