]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EVGEN/AliGenPythiaEventHeader.cxx
New class to make V2 clusters starting from digits or hits (fast simulation). Origin...
[u/mrichter/AliRoot.git] / EVGEN / AliGenPythiaEventHeader.cxx
CommitLineData
c0ac61ca 1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
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 **************************************************************************/
15
16/*
17$Log$
5ab58e8e 18Revision 1.1 2001/07/13 09:34:53 morsch
19Event header class for Pythia added.
20
c0ac61ca 21*/
22
23#include "AliGenPythiaEventHeader.h"
24ClassImp(AliGenPythiaEventHeader)
25
5ab58e8e 26
27void AliGenPythiaEventHeader::AddJet(Float_t px, Float_t py, Float_t pz, Float_t e)
28{
29//
30// Add a jet
31//
32 if (fNJets < 10) {
33 fJets[0][fNJets] = px;
34 fJets[1][fNJets] = py;
35 fJets[2][fNJets] = pz;
36 fJets[3][fNJets] = e;
37 fNJets++;
38 } else {
39 printf("\nWarning: More than 10 jets triggered !!\n");
40 }
41}
42
43void AliGenPythiaEventHeader::TriggerJet(Int_t i, Float_t p[4])
44{
45//
46// Give back jet #i
47//
48 if (i >= fNJets) {
49 printf("\nWarning: TriggerJet, index out of Range!!\n");
50 } else {
51 p[0] = fJets[0][i];
52 p[1] = fJets[1][i];
53 p[2] = fJets[2][i];
54 p[3] = fJets[3][i];
55 }
56}