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():
31 // Default Constructor
32 for (Int_t i = 0; i < 4; i++) fZquench[i] = 0.;
33 for (Int_t i = 0; i < 4; i++)
34 for (Int_t j = 0; j < 10; j++) {
40 AliGenPythiaEventHeader::AliGenPythiaEventHeader(const char* name):
41 AliGenEventHeader(name),
51 for (Int_t i = 0; i < 4; i++) fZquench[i] = 0.;
52 for (Int_t i = 0; i < 4; i++)
53 for (Int_t j = 0; j < 10; j++) {
59 void AliGenPythiaEventHeader::AddJet(Float_t px, Float_t py, Float_t pz, Float_t e)
65 fJets[0][fNJets] = px;
66 fJets[1][fNJets] = py;
67 fJets[2][fNJets] = pz;
71 printf("\nWarning: More than 10 jets triggered !!\n");
75 void AliGenPythiaEventHeader::AddUQJet(Float_t px, Float_t py, Float_t pz, Float_t e)
81 fUQJets[0][fNUQJets] = px;
82 fUQJets[1][fNUQJets] = py;
83 fUQJets[2][fNUQJets] = pz;
84 fUQJets[3][fNUQJets] = e;
87 printf("\nWarning: More than 10 jets triggered !!\n");
91 void AliGenPythiaEventHeader::SetZQuench(Double_t z[4])
94 // Set quenching fraction
96 for (Int_t i = 0; i < 4; i++) fZquench[i] = z[i];
99 void AliGenPythiaEventHeader::GetZQuench(Double_t z[4])
102 // Get quenching fraction
104 for (Int_t i = 0; i < 4; i++) z[i] = fZquench[i];
107 void AliGenPythiaEventHeader::TriggerJet(Int_t i, Float_t p[4])
113 printf("\nWarning: TriggerJet, index out of Range!!\n");
122 void AliGenPythiaEventHeader::UQJet(Int_t i, Float_t p[4])
128 printf("\nWarning: Unquenched Jets, index out of Range!!\n");
130 p[0] = fUQJets[0][i];
131 p[1] = fUQJets[1][i];
132 p[2] = fUQJets[2][i];
133 p[3] = fUQJets[3][i];
137 void AliGenPythiaEventHeader::SetXYJet(Double_t x, Double_t y)
141 // Add jet production point