BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
MpdVHLLEGenerator.h
Go to the documentation of this file.
1/*
2 * File: MpdVHLLEGenerator.h
3 * Author: Pavel Batyuk
4 *
5 * Created on April 27, 2016
6 */
7
8#ifndef MPDVHLLEGENERATOR_H
9#define MPDVHLLEGENERATOR_H
10
11#include "FairGenerator.h"
12#include "FairMCEventHeader.h"
13#include "FairPrimaryGenerator.h"
14#include "TChain.h"
15#include "TFile.h"
16
17#include <iostream>
18
19using namespace std;
20using namespace TMath;
21
22const UInt_t dim = 1e5;
23
24class TVirtualMCStack;
25class FairPrimaryGenerator;
26
28{
29 public:
31 MpdVHLLEGenerator(TString fileName, Bool_t isCascade);
33
34 Bool_t ReadEvent(FairPrimaryGenerator* primGen);
35
37 {
38 fEventNumber = ev;
39 cout << "NUMBER OF SKIPPED EVENTS = " << ev << endl;
40 }
41
42 private:
43 TFile* fInputFile; //! Input file
44 TString fFileName; //! Input file name
56 TString fBranch; //! treefin corresponds to hydro + cascade, treeini -- to hydro calculations only
57
58 void SetCascade(Bool_t flag) { fBranch = (flag) ? "treefin" : "treeini"; }
59
62
64};
65#endif
bool Bool_t
int Int_t
unsigned int UInt_t
float Float_t
#define ClassDef(name, id)
TChain * fDstTree
Input file name.
MpdVHLLEGenerator & operator=(const MpdVHLLEGenerator &)=delete
void SkipEvents(Int_t ev)
MpdVHLLEGenerator(const MpdVHLLEGenerator &)=delete
TString fFileName
Input file.
Bool_t ReadEvent(FairPrimaryGenerator *primGen)
void SetCascade(Bool_t flag)
treefin corresponds to hydro + cascade, treeini – to hydro calculations only
const UInt_t dim
const UInt_t dim
Definition json.hpp:4446