BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
MpdLAQGSMGeneratorExt.h
Go to the documentation of this file.
1// -------------------------------------------------------------------------
2// ----- MpdLAQGSMGeneratorExt header file -----
3// -------------------------------------------------------------------------
4
5/** MpdLAQGSMGeneratorExt
6 * Extracts specific particle from sim files and stores momentum to the branch
7 * Or reads events as ordinary simulator depending on passed parameters
8 *
9 *@author Elena Litvinenko <litvin@nf.jinr.ru>
10 *@author Ilnur Gabdrakhmanov <ilnur@jinr.ru>
11 *@version 9.12.2019
12 *
13 ** The MpdLAQGSMGeneratorExt uses the ASCII input
14 ** provided by K.Gudima LAQGSM event generator.
15 **/
16
17#ifndef MPDLAQGSMGENERATOREXT_H
18#define MPDLAQGSMGENERATOREX_H 1
19
20#include "MpdLAQGSMGenerator.h"
21
22#include <BmnFairRunSim.h>
23#include <TClonesArray.h>
24#include <TVector3.h>
25#include <fstream>
26#include <map>
27#include <vector>
28
29#ifndef __CLING__
30#include <zlib.h>
31#endif
32
33using namespace std;
34
36{
37 public:
38 /** Default constructor without arguments should not be used. **/
40
41 /** Standard constructor.
42 ** @param fileNames The input file name vector
43 ** @param use_collider_system
44 ** @param QGSM_format_ID
45 ** @param Max_Event_Number
46 ** @param pdg PDG code to extract
47 ** @param extract_from_dir true - Do extraction from text files to the branch
48 * false - read events from previously extracted
49 **/
50 MpdLAQGSMGeneratorExt(const vector<TString>& fileNames,
51 const Bool_t use_collider_system = kTRUE,
52 Int_t QGSM_format_ID = 0,
53 Int_t Max_Event_Number = 0,
54 Int_t pdg = 3122,
55 Bool_t extract_from_dir = kTRUE);
56
57 /** Destructor. **/
58 virtual ~MpdLAQGSMGeneratorExt();
59
60 // static la_tab_t la_tab[78]; //! list of light particles known for MpdLAQGSMGeneratorExt
61
62 /** Reads on event from the input file and pushes the tracks onto
63 ** the stack. Abstract method in base class.
64 ** @param primGen pointer to the FairPrimaryGenerator
65 **/
66 Bool_t ReadEvent(FairPrimaryGenerator* primGen);
67 Bool_t (MpdLAQGSMGeneratorExt::*ReadEventImpl)(FairPrimaryGenerator* primGen);
68 Bool_t ReadEventFromTxt(FairPrimaryGenerator* primGen);
69 Bool_t ExtractEventFromTxt(FairPrimaryGenerator* primGen);
70 Bool_t ReadEventFromFiltered(FairPrimaryGenerator* primGen);
71 Bool_t SkipEvents(Int_t nSkip); // AZ
72
75
76 protected:
79 Int_t fSelPDG; ///<- particle to extract
80 vector<TString> fFileVec; ///<- files to cycle
84
89
91
93};
94
95#endif
__m128 v
Definition P4_F32vec4.h:1
bool Bool_t
int Int_t
long long Long64_t
constexpr Bool_t kTRUE
#define ClassDef(name, id)
MpdLAQGSMGeneratorExt()
Default constructor without arguments should not be used.
Bool_t ReadEventFromTxt(FairPrimaryGenerator *primGen)
void SetRunSimInst(BmnFairRunSim *v)
Bool_t(MpdLAQGSMGeneratorExt::* ReadEventImpl)(FairPrimaryGenerator *primGen)
BmnFairRunSim * GetRunSimInst()
Bool_t ExtractEventFromTxt(FairPrimaryGenerator *primGen)
Bool_t ReadEventFromFiltered(FairPrimaryGenerator *primGen)
Bool_t ReadEvent(FairPrimaryGenerator *primGen)
Reads on event from the input file and pushes the tracks onto the stack.
virtual ~MpdLAQGSMGeneratorExt()
Destructor.
MpdLAQGSMGenerator()
Default constructor without arguments should not be used.
Definition json.hpp:4446