Line data Source code
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 :
14 0 : class AliGenHijingEventHeader : public AliGenEventHeader, public AliCollisionGeometry
15 : {
16 : public:
17 : AliGenHijingEventHeader(const char* name);
18 : AliGenHijingEventHeader();
19 0 : virtual ~AliGenHijingEventHeader() {}
20 : // Getters
21 0 : Float_t TotalEnergy() const {return fTotalEnergy;}
22 0 : Int_t Trials() const {return fTrials;}
23 0 : Int_t GetTrueNPart() const {return fNPart;}
24 0 : Bool_t GetSpectatorsInTheStack() const {return fAreSpectatorsInTheStack;}
25 0 : Bool_t GetFragmentationFromData() const {return fIsDataFragmentationSet;}
26 0 : Int_t GetFreeProjSpecn() const {return fFreeProjSpecn;}
27 0 : Int_t GetFreeProjSpecp() const {return fFreeProjSpecp;}
28 0 : Int_t GetFreeTargSpecn() const {return fFreeTargSpecn;}
29 0 : Int_t GetFreeTargSpecp() const {return fFreeTargSpecp;}
30 :
31 : // Setters
32 0 : void SetTotalEnergy(Float_t energy) {fTotalEnergy=energy;}
33 : void SetJets(const TLorentzVector* jet1, const TLorentzVector* jet2,
34 : const TLorentzVector* jet3, const TLorentzVector* jet4)
35 0 : {fJet1 = *jet1; fJet2 = *jet2; fJetFsr1 = *jet3; fJetFsr2 = *jet4;}
36 : void GetJets(TLorentzVector& jet1, TLorentzVector& jet2,
37 : TLorentzVector& jet3, TLorentzVector& jet4) const
38 0 : {jet1 = fJet1; jet2 = fJet2; jet3 = fJetFsr1; jet4 = fJetFsr2;}
39 0 : void SetTrials(Int_t trials) {fTrials = trials;}
40 0 : void SetTrueNPart(Int_t npart) {fNPart = npart;}
41 0 : void SetSpectatorsInTheStack(Bool_t what) {fAreSpectatorsInTheStack=what;}
42 0 : void SetDataFromFragmentation(Bool_t what) {fIsDataFragmentationSet=what;}
43 : void SetFreeSpectators(Int_t specnproj, Int_t specpproj, Int_t specntarg, Int_t specptarg)
44 0 : {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 176 : ClassDef(AliGenHijingEventHeader,6) // Event header for hijing event
63 : };
64 :
65 : #endif
|