AliRoot Core  3dc7879 (3dc7879)
AliGenHijingEventHeader.h
Go to the documentation of this file.
1 #ifndef ALIGENHIJINGEVENTHEADER_H
2 #define ALIGENHIJINGEVENTHEADER_H
3 
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice */
6 
7 /* $Id$ */
8 
9 #include <TLorentzVector.h>
10 
11 #include "AliGenEventHeader.h"
12 #include "AliCollisionGeometry.h"
13 
15 {
16  public:
17  AliGenHijingEventHeader(const char* name);
20  // Getters
21  Float_t TotalEnergy() const {return fTotalEnergy;}
22  Int_t Trials() const {return fTrials;}
23  Int_t GetTrueNPart() const {return fNPart;}
26  Int_t GetFreeProjSpecn() const {return fFreeProjSpecn;}
27  Int_t GetFreeProjSpecp() const {return fFreeProjSpecp;}
28  Int_t GetFreeTargSpecn() const {return fFreeTargSpecn;}
29  Int_t GetFreeTargSpecp() const {return fFreeTargSpecp;}
30 
31  // Setters
32  void SetTotalEnergy(Float_t energy) {fTotalEnergy=energy;}
33  void SetJets(const TLorentzVector* jet1, const TLorentzVector* jet2,
34  const TLorentzVector* jet3, const TLorentzVector* jet4)
35  {fJet1 = *jet1; fJet2 = *jet2; fJetFsr1 = *jet3; fJetFsr2 = *jet4;}
36  void GetJets(TLorentzVector& jet1, TLorentzVector& jet2,
37  TLorentzVector& jet3, TLorentzVector& jet4) const
38  {jet1 = fJet1; jet2 = fJet2; jet3 = fJetFsr1; jet4 = fJetFsr2;}
39  void SetTrials(Int_t trials) {fTrials = trials;}
40  void SetTrueNPart(Int_t npart) {fNPart = npart;}
43  void SetFreeSpectators(Int_t specnproj, Int_t specpproj, Int_t specntarg, Int_t specptarg)
44  {fFreeProjSpecn=specnproj; fFreeProjSpecp=specpproj; fFreeTargSpecn=specntarg; fFreeTargSpecp=specptarg;}
45 
46 protected:
47  Float_t fTotalEnergy; // Total energy of produced particles
48  Int_t fTrials; // Number of trials to fulfill trigger condition
49  Int_t fNPart; // True number of participants
50  TLorentzVector fJet1; // 4-Momentum-Vector of first triggered jet
51  TLorentzVector fJet2; // 4-Momentum-Vector of second triggered jet
52  TLorentzVector fJetFsr1; // 4-Momentum-Vector of first triggered jet
53  TLorentzVector fJetFsr2; // 4-Momentum-Vector of second triggered jet
54  // Added by Chiara O. for spectator generation
55  Bool_t fAreSpectatorsInTheStack; // check whether spectators are in the stack
56  Bool_t fIsDataFragmentationSet; // check if the data driven correction is switched on
57  Int_t fFreeProjSpecn; // Num. of spectator neutrons from projectile nucleus
58  Int_t fFreeProjSpecp; // Num. of spectator protons from projectile nucleus
59  Int_t fFreeTargSpecn; // Num. of spectator neutrons from target nucleus
60  Int_t fFreeTargSpecp; // Num. of spectator protons from target nucleus
61 
62  ClassDef(AliGenHijingEventHeader,6) // Event header for hijing event
63 };
64 
65 #endif
Bool_t GetSpectatorsInTheStack() const
void GetJets(TLorentzVector &jet1, TLorentzVector &jet2, TLorentzVector &jet3, TLorentzVector &jet4) const
Bool_t GetFragmentationFromData() const
void SetDataFromFragmentation(Bool_t what)
void SetJets(const TLorentzVector *jet1, const TLorentzVector *jet2, const TLorentzVector *jet3, const TLorentzVector *jet4)
void SetTotalEnergy(Float_t energy)
void SetFreeSpectators(Int_t specnproj, Int_t specpproj, Int_t specntarg, Int_t specptarg)
void SetSpectatorsInTheStack(Bool_t what)