#include <AliStructFuncType.h>
class THerwig6;
+class AliGenHerwigEventHeader;
class TArrayI;
class TParticle;
class TClonesArray;
virtual void SetHardProcessFile(TString filename) {fFileName=TString(filename);};
virtual void SetEventListRange(Int_t eventFirst=-1, Int_t eventLast=-1);
- virtual Bool_t CheckParton(TParticle* parton1, TParticle* parton2);
+ virtual Bool_t CheckParton(const TParticle* parton1, const TParticle* parton2);
virtual void GetPartonEtaRange(Float_t& etamin, Float_t& etamax) const
{etamin = fEtaMinParton; etamax = fEtaMaxParton;}
{fPhiMinGamma = TMath::Pi()*phimin/180.; fPhiMaxGamma = TMath::Pi()*phimax/180.;}
protected:
- Bool_t SelectFlavor(Int_t pid);
-
+ Bool_t SelectFlavor(Int_t pid) const;
+ void MakeHeader();
protected:
TString fAutPDF; // PDF group
Int_t fModPDF; // PDF set
- StrucFunc_t fStrucFunc; //Structure Function
+ StrucFunc_t fStrucFunc; // Structure Function
Int_t fKeep; // Flag to keep full event information
Int_t fDecaysOff; // Flag to turn off decays of pi0, K_s, D, Lambda, sigma
Int_t fTrigger; // Trigger type
Float_t fEtaMaxGamma; // Maximum eta of triggered gamma
Float_t fPhiMinGamma; // Minimum phi of triggered gamma
Float_t fPhiMaxGamma; // Maximum phi of triggered gamma
-
+ AliGenHerwigEventHeader* fHeader; //! Event header
private:
AliGenHerwig(const AliGenHerwig &Herwig);
AliGenHerwig & operator=(const AliGenHerwig & rhs);
// adjust the weight from kinematic cuts
void AdjustWeights();
// check seleted daughters
- Bool_t DaughtersSelection(TParticle* iparticle, TClonesArray* particles);
+ Bool_t DaughtersSelection(const TParticle* iparticle, const TClonesArray* particles);
// check if stable
- Bool_t Stable(TParticle* particle);
+ Bool_t Stable(const TParticle* particle) const;
void InitPDF();