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():
32 // Default Constructor
33 for (Int_t i = 0; i < 4; i++) fZquench[i] = 0.;
34 for (Int_t i = 0; i < 4; i++)
35 for (Int_t j = 0; j < 10; j++) {
41 AliGenPythiaEventHeader::AliGenPythiaEventHeader(const char* name):
42 AliGenEventHeader(name),
53 for (Int_t i = 0; i < 4; i++) fZquench[i] = 0.;
54 for (Int_t i = 0; i < 4; i++)
55 for (Int_t j = 0; j < 10; j++) {
61 void AliGenPythiaEventHeader::AddJet(Float_t px, Float_t py, Float_t pz, Float_t e)
67 fJets[0][fNJets] = px;
68 fJets[1][fNJets] = py;
69 fJets[2][fNJets] = pz;
73 printf("\nWarning: More than 10 jets triggered !!\n");
77 void AliGenPythiaEventHeader::AddUQJet(Float_t px, Float_t py, Float_t pz, Float_t e)
83 fUQJets[0][fNUQJets] = px;
84 fUQJets[1][fNUQJets] = py;
85 fUQJets[2][fNUQJets] = pz;
86 fUQJets[3][fNUQJets] = e;
89 printf("\nWarning: More than 10 jets triggered !!\n");
93 void AliGenPythiaEventHeader::SetZQuench(Double_t z[4])
96 // Set quenching fraction
98 for (Int_t i = 0; i < 4; i++) fZquench[i] = z[i];
101 void AliGenPythiaEventHeader::GetZQuench(Double_t z[4])
104 // Get quenching fraction
106 for (Int_t i = 0; i < 4; i++) z[i] = fZquench[i];
109 void AliGenPythiaEventHeader::TriggerJet(Int_t i, Float_t p[4])
115 printf("\nWarning: TriggerJet, index out of Range!!\n");
124 void AliGenPythiaEventHeader::UQJet(Int_t i, Float_t p[4])
130 printf("\nWarning: Unquenched Jets, index out of Range!!\n");
132 p[0] = fUQJets[0][i];
133 p[1] = fUQJets[1][i];
134 p[2] = fUQJets[2][i];
135 p[3] = fUQJets[3][i];
139 void AliGenPythiaEventHeader::SetXYJet(Double_t x, Double_t y)
143 // Add jet production point