1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
18 #include "AliGenPythiaEventHeader.h"
19 ClassImp(AliGenPythiaEventHeader)
22 AliGenPythiaEventHeader::AliGenPythiaEventHeader():
33 // Default Constructor
34 for (Int_t i = 0; i < 4; i++) fZquench[i] = 0.;
35 for (Int_t i = 0; i < 4; i++)
36 for (Int_t j = 0; j < 10; j++) {
42 AliGenPythiaEventHeader::AliGenPythiaEventHeader(const char* name):
43 AliGenEventHeader(name),
55 for (Int_t i = 0; i < 4; i++) fZquench[i] = 0.;
56 for (Int_t i = 0; i < 4; i++)
57 for (Int_t j = 0; j < 10; j++) {
63 void AliGenPythiaEventHeader::AddJet(Float_t px, Float_t py, Float_t pz, Float_t e)
69 fJets[0][fNJets] = px;
70 fJets[1][fNJets] = py;
71 fJets[2][fNJets] = pz;
75 printf("\nWarning: More than 10 jets triggered !!\n");
79 void AliGenPythiaEventHeader::AddUQJet(Float_t px, Float_t py, Float_t pz, Float_t e)
85 fUQJets[0][fNUQJets] = px;
86 fUQJets[1][fNUQJets] = py;
87 fUQJets[2][fNUQJets] = pz;
88 fUQJets[3][fNUQJets] = e;
91 printf("\nWarning: More than 10 jets triggered !!\n");
95 void AliGenPythiaEventHeader::SetZQuench(Double_t z[4])
98 // Set quenching fraction
100 for (Int_t i = 0; i < 4; i++) fZquench[i] = z[i];
103 void AliGenPythiaEventHeader::GetZQuench(Double_t z[4]) const
106 // Get quenching fraction
108 for (Int_t i = 0; i < 4; i++) z[i] = fZquench[i];
111 void AliGenPythiaEventHeader::TriggerJet(Int_t i, Float_t p[4])
117 printf("\nWarning: TriggerJet, index out of Range!!\n");
126 void AliGenPythiaEventHeader::UQJet(Int_t i, Float_t p[4])
132 printf("\nWarning: Unquenched Jets, index out of Range!!\n");
134 p[0] = fUQJets[0][i];
135 p[1] = fUQJets[1][i];
136 p[2] = fUQJets[2][i];
137 p[3] = fUQJets[3][i];
141 void AliGenPythiaEventHeader::SetXYJet(Double_t x, Double_t y)
145 // Add jet production point