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
12
class
PFileInput
:
public
PParticle
{
13
14
private
:
15
16
protected
:
17
Int_t
imode
;
// mode (HGeant=1, QMD=2, BUU=3)
18
Char_t *
name
;
19
Char_t *
file
;
20
PParticle
**
part
;
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
PChannel.h
PParticle.h
pz
double pz
Definition
analyze_g12C.C:100
px
double px
Definition
analyze_g12C.C:100
py
double py
Definition
analyze_g12C.C:100
PChannel
Definition
PChannel.h:33
PFileInput
Definition
PFileInput.h:12
PFileInput::name
Char_t * name
Definition
PFileInput.h:18
PFileInput::PFileInput
PFileInput(Char_t *mode, Char_t *filename)
event header flag
PFileInput::~PFileInput
virtual ~PFileInput()
Definition
PFileInput.h:37
PFileInput::fp
FILE * fp
array of particle pointers
Definition
PFileInput.h:21
PFileInput::file
Char_t * file
input generator name
Definition
PFileInput.h:19
PFileInput::readEventHeader
Int_t readEventHeader(Float_t &b)
PFileInput::flag
Int_t flag
input file pointer
Definition
PFileInput.h:22
PFileInput::Print
virtual void Print(const Option_t *delme=NULL) const
PFileInput::part
PParticle ** part
input file name
Definition
PFileInput.h:20
PFileInput::makeChannel
PChannel * makeChannel(Int_t nMax, Float_t Ebeam=0.)
PFileInput::imode
Int_t imode
Definition
PFileInput.h:17
PFileInput::IsFileInput
Int_t IsFileInput()
Definition
PFileInput.h:28
PFileInput::setToMidrapidity
void setToMidrapidity(float agev)
PFileInput::readParticle
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::PParticle
PParticle(Int_t id=0, Double_t T=0., Double_t w=1.)
filename
TString filename("eta_dalitz_a")
pluto6
include
PFileInput.h
Generated by
1.14.0