BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
MpdHistoGenerator.h
Go to the documentation of this file.
1// -------------------------------------------------------------------------
2// ----- MpdHistoGenerator header file -----
3// ----- Created 03/06/2014 by M.Ilieva, A.Zinchenko -----
4// -------------------------------------------------------------------------
5
6/** MpdHistoGenerator.h
7 ** @author
8 **
9 ** The MpdHistoGenerator generates particles according
10 ** to Eta-Pt histogram.
11 ** Derived from FairGenerator.
12 */
13
14#ifndef MPDHISTOGENERATOR_H
15#define MPDHISTOGENERATOR_H
16
17#include "FairGenerator.h"
18#include "TH2D.h"
19
20using namespace std;
21
22class FairPrimaryGenerator;
23
25{
26 public:
27 /** Default constructor. */
29
30 /** Constructor with PDG-ID, multiplicity
31 **@param pdgid Particle type (PDG encoding)
32 **@param mult Multiplicity (default is 1)
33 **/
34 MpdHistoGenerator(Int_t pdgid, Int_t mult = 1);
35
36 /** Destructor */
38
39 /** Creates an event with given type and multiplicity.
40 **@param primGen pointer to the CbmPrimaryGenerator
41 */
42 virtual Bool_t ReadEvent(FairPrimaryGenerator* primGen);
43
44 private:
45 Int_t fPdgCode; //! particle PDG code
46 Int_t fMult; //! particle multiplicity
47 TH2D* fHist; //! Pointer to the histogram
48
50};
51
52#endif
bool Bool_t
int Int_t
#define ClassDef(name, id)
MpdHistoGenerator()
Default constructor.
virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen)
Creates an event with given type and multiplicity.
virtual ~MpdHistoGenerator()
Destructor.
MpdHistoGenerator(Int_t pdgid, Int_t mult=1)
Constructor with PDG-ID, multiplicity.
TH2D * fHist
particle multiplicity
Int_t fMult
particle PDG code
Definition json.hpp:4446