AliPhysics  88b7ad0 (88b7ad0)
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 //====================================================================
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,
88  } fEG;
89 };
90 #endif
91 //
92 // EOF
93 //
void Reset(UInt_t runNo, UInt_t eventNo)
double Double_t
Definition: External.C:58
void Clear(Option_t *option="")
int Int_t
Definition: External.C:63
unsigned int UInt_t
Definition: External.C:33
enum FastShortHeader::EG_t fEG
const char Option_t
Definition: External.C:48