SND@LHC Software
Loading...
Searching...
No Matches
NtupleGenerator_FLUKA.h
Go to the documentation of this file.
1#ifndef FLUKAntGENERATOR_H
2#define FLUKAntGENERATOR_H 1
3
4#include "TROOT.h"
5#include "FairGenerator.h"
6#include "TTree.h" // for TTree
7#include "TClonesArray.h"
8#include "TObject.h"
9
10struct PrimaryTrack : public TObject{
11 Double_t id, px, py, pz, x, y, z, E, t, w, generation;
12};
13
14class FairPrimaryGenerator;
15
16class NtupleGenerator_FLUKA : public FairGenerator
17{
18 public:
19
22
24 virtual ~NtupleGenerator_FLUKA();
25
27 Bool_t ReadEvent(FairPrimaryGenerator*);
28 virtual Bool_t Init(const char*, int);
29 virtual Bool_t Init(const char*);
30 Int_t GetNevents();
31 void SetZ(Double_t X) { SND_Z = X; };
32 private:
33
34 protected:
35 Double_t id[1],generation[1],E[1],t[1],px[1],py[1],pz[1],x[1],y[1],z[1],w[1],SND_Z;
36 TFile* fInputFile;
37 TTree* fTree;
39 int fn;
40 TClonesArray* primaries;
42};
43
44#endif /* !FLUKAntGENERATOR_H */
ClassDef(NtupleGenerator_FLUKA, 3)
virtual Bool_t Init(const char *, int)
Bool_t ReadEvent(FairPrimaryGenerator *)