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.;
35 AliGenPythiaEventHeader::AliGenPythiaEventHeader(const char* name):
36 AliGenEventHeader(name),
46 for (Int_t i = 0; i < 4; i++) fZquench[i] = 0.;
49 void AliGenPythiaEventHeader::AddJet(Float_t px, Float_t py, Float_t pz, Float_t e)
55 fJets[0][fNJets] = px;
56 fJets[1][fNJets] = py;
57 fJets[2][fNJets] = pz;
61 printf("\nWarning: More than 10 jets triggered !!\n");
65 void AliGenPythiaEventHeader::AddUQJet(Float_t px, Float_t py, Float_t pz, Float_t e)
71 fUQJets[0][fNUQJets] = px;
72 fUQJets[1][fNUQJets] = py;
73 fUQJets[2][fNUQJets] = pz;
74 fUQJets[3][fNUQJets] = e;
77 printf("\nWarning: More than 10 jets triggered !!\n");
81 void AliGenPythiaEventHeader::SetZQuench(Double_t z[4])
84 // Set quenching fraction
86 for (Int_t i = 0; i < 4; i++) fZquench[i] = z[i];
89 void AliGenPythiaEventHeader::GetZQuench(Double_t z[4])
92 // Get quenching fraction
94 for (Int_t i = 0; i < 4; i++) z[i] = fZquench[i];
97 void AliGenPythiaEventHeader::TriggerJet(Int_t i, Float_t p[4])
103 printf("\nWarning: TriggerJet, index out of Range!!\n");
112 void AliGenPythiaEventHeader::UQJet(Int_t i, Float_t p[4])
118 printf("\nWarning: Unquenched Jets, index out of Range!!\n");
120 p[0] = fUQJets[0][i];
121 p[1] = fUQJets[1][i];
122 p[2] = fUQJets[2][i];
123 p[3] = fUQJets[3][i];
127 void AliGenPythiaEventHeader::SetXYJet(Double_t x, Double_t y)
131 // Add jet production point