SND@LHC Software
Loading...
Searching...
No Matches
NtupleGenerator.h
Go to the documentation of this file.
1#ifndef PNDntGENERATOR_H
2#define PNDntGENERATOR_H 1
3
4#include "TROOT.h"
5#include "FairGenerator.h"
6#include "TTree.h" // for TTree
7#include "FairLogger.h" // for FairLogger, MESSAGE_ORIGIN
8
9class FairPrimaryGenerator;
10
11class NtupleGenerator : public FairGenerator
12{
13 public:
14
17
19 virtual ~NtupleGenerator();
20
22 Bool_t ReadEvent(FairPrimaryGenerator*);
23 virtual Bool_t Init(const char*, int);
24 virtual Bool_t Init(const char*);
25 Int_t GetNevents();
26 private:
27
28 protected:
29 Int_t id,Nmeas,volid[500],procid[500],parentid;
30 Float_t Ezero,tof;
31 Double_t w;
32 Float_t px[500], py[500], pz[500],vx[500], vy[500], vz[500];
33 TFile* fInputFile;
34 TTree* fTree;
35 FairLogger* fLogger;
37 int fn;
39};
40
41#endif /* !PNDntGENERATOR_H */
ClassDef(NtupleGenerator, 1)
Float_t vz[500]
Float_t vy[500]
virtual Bool_t Init(const char *, int)
Bool_t ReadEvent(FairPrimaryGenerator *)
FairLogger * fLogger
Float_t vx[500]
virtual ~NtupleGenerator()
Float_t pz[500]
Float_t py[500]
int fNevents
don't make it persistent, magic ROOT command
Float_t px[500]