Pluto v6.3.0
Loading...
Searching...
No Matches
PFileInput.h
Go to the documentation of this file.
1// Author: Romain Holzmann
2// Written: 8/11/2002
3// Modified: 8/11/2002 R.H.
4// PFileInput Class Header
5
6#ifndef _PFileInput_H_
7#define _PFileInput_H_
8
9#include "PParticle.h"
10#include "PChannel.h"
11
12class PFileInput: public PParticle {
13
14private:
15
16 protected:
17 Int_t imode; // mode (HGeant=1, QMD=2, BUU=3)
18 Char_t *name;
19 Char_t *file;
21 FILE *fp;
22 Int_t flag;
23
24 public:
25 PFileInput(Char_t *mode, Char_t *filename);
26
27 void setToMidrapidity(float agev);
28 Int_t IsFileInput() {
29 return 1;
30 }
31 Int_t readEventHeader(Float_t &b);
32 Int_t readParticle(Double_t &px, Double_t &py, Double_t &pz, Double_t &E,
33 Double_t &vx, Double_t &vy, Double_t &vz, Double_t &vt,
34 Int_t &Id, Int_t &srcId, Int_t &parId, Int_t &parInd, Double_t &weight);
35 PChannel *makeChannel(Int_t nMax, Float_t Ebeam=0.);
36 virtual void Print(const Option_t *delme=NULL) const;
37 virtual ~PFileInput() {
38 if (fp) fclose(fp);
39 }
40
41 ClassDef(PFileInput,1) // Pluto file input
42};
43
44#endif // _PFileInput_H_
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
double pz
double px
double py
Char_t * name
Definition PFileInput.h:18
PFileInput(Char_t *mode, Char_t *filename)
event header flag
virtual ~PFileInput()
Definition PFileInput.h:37
FILE * fp
array of particle pointers
Definition PFileInput.h:21
Char_t * file
input generator name
Definition PFileInput.h:19
Int_t readEventHeader(Float_t &b)
Int_t flag
input file pointer
Definition PFileInput.h:22
virtual void Print(const Option_t *delme=NULL) const
PParticle ** part
input file name
Definition PFileInput.h:20
PChannel * makeChannel(Int_t nMax, Float_t Ebeam=0.)
Int_t imode
Definition PFileInput.h:17
Int_t IsFileInput()
Definition PFileInput.h:28
void setToMidrapidity(float agev)
Int_t readParticle(Double_t &px, Double_t &py, Double_t &pz, Double_t &E, Double_t &vx, Double_t &vy, Double_t &vz, Double_t &vt, Int_t &Id, Int_t &srcId, Int_t &parId, Int_t &parInd, Double_t &weight)
PParticle(Int_t id=0, Double_t T=0., Double_t w=1.)
TString filename("eta_dalitz_a")