AliPhysics
86c65ee (86c65ee)
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
FastShortHeader.C
Go to the documentation of this file.
1
#ifndef FASTSHORTHEADER_C
2
#define FASTSHORTHEADER_C
3
#ifndef __CINT__
4
# include <TString.h>
5
#endif
6
7
//====================================================================
11
struct
FastShortHeader
{
12
UInt_t
fRunNo
;
13
UInt_t
fEventId
;
14
UInt_t
fNtgt
;
15
UInt_t
fNproj
;
16
UInt_t
fNbin
;
17
UInt_t
fType
;
18
Double_t
fIpX
;
19
Double_t
fIpY
;
20
Double_t
fIpZ
;
21
Double_t
fB
;
22
Double_t
fC
;
23
Double_t
fPhiR
;
24
UInt_t
fNSpecNproj
;
// # of spectator neutrons in projectile
25
UInt_t
fNSpecNtgt
;
// # of spectator neutrons in target
26
UInt_t
fNSpecPproj
;
// # of spectator protons in projectile
27
UInt_t
fNSpecPtgt
;
// # of spectator protons in target
28
29
void
Print
()
30
{
31
Printf(
" Run #/Event: %9d/%9d"
,
fRunNo
,
fEventId
);
32
Printf(
" Participants/binary: %4d/%4d/%3d"
,
fNtgt
,
fNproj
,
fNbin
);
33
Printf(
" Event type: %7s%12s"
,(
fType
==1?
"Non"
:
34
fType
==2?
"Single"
:
35
"Double"
),
"-diffractive"
);
36
Printf(
" IP: (%-5.1f,%-5.1f,%-5.1f)"
,
fIpX
,
fIpY
,
fIpZ
);
37
Printf(
" Impact par./cent.: (%13f/%-3d)"
,
fB
,
Int_t
(
fC
));
38
Printf(
" Reaction plane: %19f"
,
fPhiR
);
39
Printf(
" Specs (Nt,Np,Pt,Pp): %4d/%4d/%4d/%4d"
,
40
fNSpecNtgt
,
fNSpecNproj
,
fNSpecPtgt
,
fNSpecPproj
);
41
}
42
void
Clear
(
Option_t
* option=
""
)
43
{
44
Reset
(0,0);
45
}
46
void
Reset
(
UInt_t
runNo,
UInt_t
eventNo)
47
{
48
fRunNo
= runNo;
49
fEventId
= eventNo;
50
fIpX
= 1024;
51
fIpY
= 1024;
52
fIpZ
= 1024;
53
fNtgt
= -1;
54
fNproj
= -1;
55
fNbin
= -1;
56
fPhiR
= -1;
57
fB
= -1;
58
fC
= -1;
59
fNSpecNtgt
= -1;
60
fNSpecNproj
= -1;
61
fNSpecPtgt
= -1;
62
fNSpecPproj
= -1;
63
fEG
=
kUnknown
;
64
}
65
66
enum
EG_t
{
67
kUnknown
= 0,
68
kPythia
,
69
kHijing
,
70
kDPMJet
,
71
kEPOS
,
72
}
fEG
;
73
};
74
#endif
75
//
76
// EOF
77
//
FastShortHeader::Reset
void Reset(UInt_t runNo, UInt_t eventNo)
Definition:
FastShortHeader.C:46
FastShortHeader::kUnknown
Definition:
FastShortHeader.C:67
Double_t
double Double_t
Definition:
External.C:58
FastShortHeader::fB
Double_t fB
Definition:
FastShortHeader.C:21
FastShortHeader::Clear
void Clear(Option_t *option="")
Definition:
FastShortHeader.C:42
FastShortHeader::kHijing
Definition:
FastShortHeader.C:69
FastShortHeader::EG_t
EG_t
Definition:
FastShortHeader.C:66
FastShortHeader::fNproj
UInt_t fNproj
Definition:
FastShortHeader.C:15
FastShortHeader::fIpX
Double_t fIpX
Definition:
FastShortHeader.C:18
FastShortHeader::fNSpecNproj
UInt_t fNSpecNproj
Definition:
FastShortHeader.C:24
FastShortHeader::fNSpecPtgt
UInt_t fNSpecPtgt
Definition:
FastShortHeader.C:27
Int_t
int Int_t
Definition:
External.C:63
UInt_t
unsigned int UInt_t
Definition:
External.C:33
FastShortHeader::Print
void Print()
Definition:
FastShortHeader.C:29
FastShortHeader::kDPMJet
Definition:
FastShortHeader.C:70
FastShortHeader::fPhiR
Double_t fPhiR
Definition:
FastShortHeader.C:23
FastShortHeader::fNSpecNtgt
UInt_t fNSpecNtgt
Definition:
FastShortHeader.C:25
FastShortHeader::fRunNo
UInt_t fRunNo
Definition:
FastShortHeader.C:12
FastShortHeader::fEventId
UInt_t fEventId
Definition:
FastShortHeader.C:13
FastShortHeader::fNbin
UInt_t fNbin
Definition:
FastShortHeader.C:16
FastShortHeader
Definition:
FastShortHeader.C:11
FastShortHeader::fEG
enum FastShortHeader::EG_t fEG
FastShortHeader::fType
UInt_t fType
Definition:
FastShortHeader.C:17
FastShortHeader::fNtgt
UInt_t fNtgt
Definition:
FastShortHeader.C:14
FastShortHeader::fIpZ
Double_t fIpZ
Definition:
FastShortHeader.C:20
FastShortHeader::kEPOS
Definition:
FastShortHeader.C:71
FastShortHeader::fIpY
Double_t fIpY
Definition:
FastShortHeader.C:19
FastShortHeader::fNSpecPproj
UInt_t fNSpecPproj
Definition:
FastShortHeader.C:26
Option_t
const char Option_t
Definition:
External.C:48
FastShortHeader::kPythia
Definition:
FastShortHeader.C:68
FastShortHeader::fC
Double_t fC
Definition:
FastShortHeader.C:22
PWGLF
FORWARD
analysis2
sim
FastShortHeader.C
Generated on Mon Dec 19 2016 16:51:25 for AliPhysics by
1.8.6