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)
23 AliGenPythiaEventHeader::AliGenPythiaEventHeader()
25 // Default Constructor
28 for (Int_t i = 0; i < 4; i++) fZquench[i] = 0.;
33 AliGenPythiaEventHeader::AliGenPythiaEventHeader(const char* name):AliGenEventHeader(name)
38 for (Int_t i = 0; i < 4; i++) fZquench[i] = 0.;
44 void AliGenPythiaEventHeader::AddJet(Float_t px, Float_t py, Float_t pz, Float_t e)
50 fJets[0][fNJets] = px;
51 fJets[1][fNJets] = py;
52 fJets[2][fNJets] = pz;
56 printf("\nWarning: More than 10 jets triggered !!\n");
60 void AliGenPythiaEventHeader::AddUQJet(Float_t px, Float_t py, Float_t pz, Float_t e)
66 fUQJets[0][fNUQJets] = px;
67 fUQJets[1][fNUQJets] = py;
68 fUQJets[2][fNUQJets] = pz;
69 fUQJets[3][fNUQJets] = e;
72 printf("\nWarning: More than 10 jets triggered !!\n");
76 void AliGenPythiaEventHeader::SetZQuench(Double_t z[4])
79 // Set quenching fraction
81 for (Int_t i = 0; i < 4; i++) fZquench[i] = z[i];
84 void AliGenPythiaEventHeader::GetZQuench(Double_t z[4])
87 // Get quenching fraction
89 for (Int_t i = 0; i < 4; i++) z[i] = fZquench[i];
92 void AliGenPythiaEventHeader::TriggerJet(Int_t i, Float_t p[4])
98 printf("\nWarning: TriggerJet, index out of Range!!\n");
107 void AliGenPythiaEventHeader::UQJet(Int_t i, Float_t p[4])
113 printf("\nWarning: Unquenched Jets, index out of Range!!\n");
115 p[0] = fUQJets[0][i];
116 p[1] = fUQJets[1][i];
117 p[2] = fUQJets[2][i];
118 p[3] = fUQJets[3][i];
122 void AliGenPythiaEventHeader::SetXYJet(Double_t x, Double_t y)
126 // Add jet production point