AliPhysics
8b695ca (8b695ca)
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
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
UInt_t
fTrigMask
;
// Trigger mask
29
30
enum
{
31
kV0A
= 0x1,
32
kV0C
= 0x2,
33
kADA
= 0x4,
34
kADC
= 0x8,
35
kEta1
= 0x10
36
};
37
void
Print
()
38
{
39
Printf(
" Run #/Event: %9d/%9d"
, fRunNo, fEventId);
40
Printf(
" Participants/binary: %4d/%4d/%3d"
, fNtgt, fNproj, fNbin);
41
Printf(
" Event type: %7s%12s"
,(fType==1?
"Non"
:
42
fType==2?
"Single"
:
43
"Double"
),
"-diffractive"
);
44
Printf(
" IP: (%-5.1f,%-5.1f,%-5.1f)"
,fIpX,fIpY,fIpZ);
45
Printf(
" Impact par./cent.: (%13f/%-3d)"
, fB,
Int_t
(fC));
46
Printf(
" Reaction plane: %19f"
, fPhiR);
47
Printf(
" Specs (Nt,Np,Pt,Pp): %4d/%4d/%4d/%4d"
,
48
fNSpecNtgt, fNSpecNproj, fNSpecPtgt, fNSpecPproj);
49
Printf(
" Trigger mask: 0x%04x (V0A:%d V0C:%d Eta1:%d)"
,
50
fTrigMask,
51
(fTrigMask&
kV0A
) ==kV0A,
52
(fTrigMask&
kV0C
) ==kV0C,
53
(fTrigMask&
kADA
) ==kADA,
54
(fTrigMask&
kADC
) ==kADC,
55
(fTrigMask&
kEta1
)==kEta1);
56
}
57
void
Clear
(
Option_t
* option=
""
)
58
{
59
Reset
(0,0);
60
}
61
void
Reset
(
UInt_t
runNo,
UInt_t
eventNo)
62
{
63
fRunNo = runNo;
64
fEventId = eventNo;
65
fIpX = 1024;
66
fIpY = 1024;
67
fIpZ = 1024;
68
fNtgt = -1;
69
fNproj = -1;
70
fNbin = -1;
71
fPhiR = -1;
72
fB = -1;
73
fC = -1;
74
fNSpecNtgt = -1;
75
fNSpecNproj = -1;
76
fNSpecPtgt = -1;
77
fNSpecPproj = -1;
78
fEG
=
kUnknown
;
79
fTrigMask = 0;
80
}
81
82
enum
EG_t
{
83
kUnknown
= 0,
84
kPythia
,
85
kHijing
,
86
kDPMJet
,
87
kEPOS
,
88
}
fEG
;
89
};
90
#endif
91
//
92
// EOF
93
//
FastShortHeader::Reset
void Reset(UInt_t runNo, UInt_t eventNo)
Definition:
FastShortHeader.C:61
FastShortHeader::kUnknown
Definition:
FastShortHeader.C:83
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:57
FastShortHeader::kHijing
Definition:
FastShortHeader.C:85
FastShortHeader::kADC
Definition:
FastShortHeader.C:34
FastShortHeader::EG_t
EG_t
Definition:
FastShortHeader.C:82
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::kV0C
Definition:
FastShortHeader.C:32
FastShortHeader::Print
void Print()
Definition:
FastShortHeader.C:37
FastShortHeader::kEta1
Definition:
FastShortHeader.C:35
FastShortHeader::kDPMJet
Definition:
FastShortHeader.C:86
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:87
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::fTrigMask
UInt_t fTrigMask
Definition:
FastShortHeader.C:28
FastShortHeader::kPythia
Definition:
FastShortHeader.C:84
FastShortHeader::kV0A
Definition:
FastShortHeader.C:31
FastShortHeader::kADA
Definition:
FastShortHeader.C:33
FastShortHeader::fC
Double_t fC
Definition:
FastShortHeader.C:22
PWGLF
FORWARD
analysis2
sim
FastShortHeader.C
Generated on Mon Jan 14 2019 22:51:56 for AliPhysics by
1.8.11