BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
FairPlutoReactionGenerator.h
Go to the documentation of this file.
1// -------------------------------------------------------------------------
2// ----- FairPlutoReactionGenerator header file -----
3// ----- Created 05/07/08 by I. Froehlich -----
4// -------------------------------------------------------------------------
5
6/** FairPlutoReactionGenerator.h
7 *@author I. Froehlich
8 *
9 The FairPlutoReactionGenerator inserts an inline PReaction
10 and thus connects Pluto with the FairPrimaryGenerator.
11 Derived from FairGenerator.
12**/
13
14#ifndef FAIR_PLUTOREACTIONGENERATOR_H
15#define FAIR_PLUTOREACTIONGENERATOR_H
16
17#include "FairGenerator.h"
18
19class TClonesArray;
20class TFile;
21class TTree;
22class TVirtualMCStack;
23class FairPrimaryGenerator;
24
25#include "PUtils.h"
26/** Backward compatibility **/
27#ifdef PLUTOVERSION_FOR_FAIR
28#include "PFairGenerator.h"
29#include "PReaction.h"
30#else
31class PReaction;
32#endif
33
35{
36
37 public:
38 /** Default constructor (should not be used) **/
40
41 /** Standard constructor
42 ** @param reaction Pointer to PLUTO inline reaction
43 **/
44 FairPlutoReactionGenerator(PReaction* reaction);
45
46 /** Destructor **/
48
49 /** Reads on event from the Pluto reaction and pushes the tracks onto
50 ** the stack. Abstract method in base class.
51 ** @param primGen pointer to the FairPrimaryGenerator
52 **/
53 virtual Bool_t ReadEvent(FairPrimaryGenerator* primGen);
54
55 private:
56 Int_t iEvent; //! Event number
57 PReaction* fReaction; //! Pointer to the Pluto inline reaction
58
59#ifdef PLUTOVERSION_FOR_FAIR
60 PFairGenerator* fPlutoFairGenerator; //! Pointer to interface
61#endif
62
64};
65
66#endif
bool Bool_t
int Int_t
#define ClassDef(name, id)
FairPlutoReactionGenerator()
Default constructor (should not be used).
virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen)
Reads on event from the Pluto reaction and pushes the tracks onto the stack.
virtual ~FairPlutoReactionGenerator()
Destructor.