X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=PYTHIA6%2FAliGenPythia.h;h=8ccb53f0abd81e767cd921bec227f040e5e2a3d8;hb=710f52729f51908dc19549c0f1a72473341ff033;hp=6096f56bb24be8b4d53f74de02253f5efbbcd8e5;hpb=9dfe63b3acc53f2b492e03c9a5a6d3838b2de37f;p=u%2Fmrichter%2FAliRoot.git diff --git a/PYTHIA6/AliGenPythia.h b/PYTHIA6/AliGenPythia.h index 6096f56bb24..8ccb53f0abd 100644 --- a/PYTHIA6/AliGenPythia.h +++ b/PYTHIA6/AliGenPythia.h @@ -31,7 +31,7 @@ class AliGenPythia : public AliGenMC { public: - typedef enum {kFlavorSelection, kParentSelection} StackFillOpt_t; + typedef enum {kFlavorSelection, kParentSelection, kHeavyFlavor} StackFillOpt_t; typedef enum {kCountAll, kCountParents, kCountTrackables} CountMode_t; typedef enum {kCluster, kCell} JetRecMode_t; @@ -44,6 +44,7 @@ class AliGenPythia : public AliGenMC virtual void SetEventListRange(Int_t eventFirst=-1, Int_t eventLast=-1); // Select process type virtual void SetProcess(Process_t proc = kPyCharm) {fProcess = proc;} + virtual void SetTune(Int_t itune) {fItune = itune;} // Select structure function virtual void SetStrucFunc(StrucFunc_t func = kCTEQ5L) {fStrucFunc = func;} @@ -102,7 +103,9 @@ class AliGenPythia : public AliGenMC virtual void SetPhotonInPHOS(Bool_t b) {fCheckPHOS = b; fPhotonInCalo = b;} // Trigger on a minimum multiplicity - virtual void SetTriggerChargedMultiplicity(Int_t multiplicity, Float_t etamax = 0) {fTriggerMultiplicity = multiplicity; fTriggerMultiplicityEta = etamax; } + virtual void SetTriggerChargedMultiplicity(Int_t multiplicity, Float_t etamax = 0, Float_t ptmin = -1.) + {fTriggerMultiplicity = multiplicity; fTriggerMultiplicityEta = etamax; + fTriggerMultiplicityPtMin = ptmin;} virtual void SetPhotonInPHOSeta(Bool_t b) {fCheckPHOSeta = b; fPhotonInCalo = b;} virtual void SetFragPhotonOrPi0MinPt(Float_t pt) {fFragPhotonOrPi0MinPt = pt;} @@ -111,8 +114,9 @@ class AliGenPythia : public AliGenMC // Trigger and rotate event void RotatePhi(Int_t iphcand, Bool_t& okdd); // Trigger on a single particle - virtual void SetTriggerParticle(Int_t particle = 0, Float_t etamax = 0.9) - {fTriggerParticle = particle; fTriggerEta = etamax;} + virtual void SetTriggerParticle(Int_t particle = 0, Float_t etamax = 0.9, Float_t ptmin = -1, Float_t ptmax = 1000) + {fTriggerParticle = particle; fTriggerEta = etamax; fTriggerMinPt = ptmin; fTriggerMaxPt = ptmax;} + // // Heavy flavor options // @@ -142,9 +146,12 @@ class AliGenPythia : public AliGenMC void SetQhat(Float_t qhat) {fQhat = qhat;} //Set initial medium length. void SetLength(Float_t length) {fLength = length;} - + //set parameters for pyquen afterburner + virtual void SetPyquenPar(Float_t t0=1., Float_t tau0=0.1, Int_t nf=0,Int_t iengl=0, Int_t iangl=3) + {fpyquenT = t0; fpyquenTau = tau0; fpyquenNf=nf;fpyquenEloss=iengl;fpyquenAngle=iangl;} virtual void SetHadronisation(Int_t flag = 1) {fHadronisation = flag;} - virtual void SetReadFromFile(const Text_t *filname) {fFileName = filname; fReadFromFile = 1;} + virtual void SetPatchOmegaDalitz(Int_t flag = 1) {fPatchOmegaDalitz = flag;} + virtual void SetReadFromFile(const Text_t *filname) {fkFileName = filname; fReadFromFile = 1;} // // Pile-up @@ -162,7 +169,7 @@ class AliGenPythia : public AliGenMC Float_t minet = 10., Float_t r = 1.); void LoadEvent(AliStack* stack, Int_t flag = 0, Int_t reHadr = 0); - void LoadEvent(TObjArray* stack, Int_t flag = 0, Int_t reHadr = 0); + void LoadEvent(const TObjArray* stack, Int_t flag = 0, Int_t reHadr = 0); // Getters virtual Process_t GetProcess() const {return fProcess;} virtual StrucFunc_t GetStrucFunc() const {return fStrucFunc;} @@ -179,15 +186,19 @@ class AliGenPythia : public AliGenMC virtual void GetGammaPhiRange(Float_t& phimin, Float_t& phimax) const {phimin = fPhiMinGamma*180./TMath::Pi(); phimax = fPhiMaxGamma*180./TMath::Pi();} // - Bool_t IsInEMCAL(Float_t phi, Float_t eta); - Bool_t IsInPHOS(Float_t phi, Float_t eta); + Bool_t IsInEMCAL(Float_t phi, Float_t eta) const; + Bool_t IsInPHOS(Float_t phi, Float_t eta) const; + Bool_t IsFromHeavyFlavor(Int_t ipart); // virtual void FinishRun(); - Bool_t CheckTrigger(TParticle* jet1, TParticle* jet2); + Bool_t CheckTrigger(const TParticle* jet1, const TParticle* jet2); //Used in some processes to selected child properties Bool_t CheckKinematicsOnChild(); void GetSubEventTime(); + void SetTuneForDiff(Bool_t a=kTRUE) {fkTuneForDiff=a;} + AliDecayer * GetDecayer(){return fDecayer;} + protected: // adjust the weight from kinematic cuts void AdjustWeights() const; @@ -195,6 +206,7 @@ class AliGenPythia : public AliGenMC void MakeHeader(); void GeneratePileup(); Process_t fProcess; //Process type + Int_t fItune; // Pythia tune > 6.4 StrucFunc_t fStrucFunc; //Structure Function Float_t fKineBias; //!Bias from kinematic selection Int_t fTrials; //!Number of trials for current event @@ -218,11 +230,18 @@ class AliGenPythia : public AliGenMC Int_t fGinit; //initial state gluon radiation Int_t fGfinal; //final state gluon radiation Int_t fHadronisation; //hadronisation + Bool_t fPatchOmegaDalitz; //flag for omega dalitz decay patch Int_t fNpartons; //Number of partons before hadronisation Int_t fReadFromFile; //read partons from file Int_t fQuench; //Flag for quenching Float_t fQhat; //Transport coefficient (GeV^2/fm) Float_t fLength; //Medium length (fm) + Float_t fpyquenT; //Pyquen initial temperature + Float_t fpyquenTau; //Pyquen initial proper time + Int_t fpyquenNf; //Pyquen number of flavours into the game + Int_t fpyquenEloss; //Pyquen type of energy loss + Int_t fpyquenAngle; //Pyquen radiation angle for gluons + Float_t fImpact; //Impact parameter for quenching simulation (q-pythia) Float_t fPtKick; //Transverse momentum kick Bool_t fFullEvent; //!Write Full event if true AliDecayer *fDecayer; //!Pointer to the decayer instance @@ -258,8 +277,11 @@ class AliGenPythia : public AliGenMC Int_t fNucPdf; // Nuclear pdf 0: EKS98 1: EPS08 Int_t fTriggerParticle; // Trigger on this particle ... Float_t fTriggerEta; // .. within |eta| < fTriggerEta - Int_t fTriggerMultiplicity; // Trigger on events with a minimum charged multiplicity - Float_t fTriggerMultiplicityEta; // in a given eta range + Float_t fTriggerMinPt; // .. within pt > fTriggerMinPt + Float_t fTriggerMaxPt; // .. within pt < fTriggerMaxPt + Int_t fTriggerMultiplicity; // Trigger on events with a minimum charged multiplicity + Float_t fTriggerMultiplicityEta; // in a given eta range + Float_t fTriggerMultiplicityPtMin; // above this pT CountMode_t fCountMode; // Options for counting when the event will be finished. // fCountMode = kCountAll --> All particles that end up in the // stack are counted @@ -271,7 +293,7 @@ class AliGenPythia : public AliGenMC AliGenPythiaEventHeader* fHeader; //! Event header AliRunLoader* fRL; //! Run Loader - const Text_t* fFileName; //! Name of file to read from + const Text_t* fkFileName; //! Name of file to read from Bool_t fFragPhotonInCalo; // Option to ask for Fragmentation Photon in calorimeters acceptance @@ -292,11 +314,18 @@ class AliGenPythia : public AliGenMC Float_t fEMCALMaxPhi; // Maximum phi EMCAL Float_t fEMCALEta; // Maximum eta EMCAL + Bool_t fkTuneForDiff; // Pythia tune + Int_t fProcDiff; private: AliGenPythia(const AliGenPythia &Pythia); AliGenPythia & operator=(const AliGenPythia & rhs); - ClassDef(AliGenPythia,9) // AliGenerator interface to Pythia + + Bool_t CheckDiffraction(); + Bool_t GetWeightsDiffraction(Double_t M, Double_t &Mmin, Double_t &Mmax, + Double_t &wSD, Double_t &wDD, Double_t &wND); + + ClassDef(AliGenPythia, 12) // AliGenerator interface to Pythia }; #endif