SetJetEtRange();
SetGammaPhiRange();
SetGammaEtaRange();
+ SetTriggerParticle();
SetPtKick();
SetQuench();
SetHadronisation();
SetJetEtRange();
SetGammaPhiRange();
SetGammaEtaRange();
+ SetTriggerParticle();
SetJetReconstructionMode();
SetQuench();
SetHadronisation();
}
if (jev >= fNpart || fNpart == -1) {
fKineBias=Float_t(fNpart)/Float_t(fTrials);
- printf("\n Trials: %i %i %i\n",fTrials, fNpart, jev);
-
fQ += fPythia->GetVINT(51);
fX1 += fPythia->GetVINT(41);
fX2 += fPythia->GetVINT(42);
// converts from mm/c to s
const Float_t kconv=0.001/2.999792458e8;
-
-
Int_t np = (fHadronisation) ? fParticles->GetEntriesFast() : fNpartons;
if (!CheckTrigger(jet1, jet2)) return 0;
}
+ if (fTriggerParticle) {
+ Bool_t triggered = kFALSE;
+ for (i = 0; i < np; i++) {
+ TParticle * iparticle = (TParticle *) fParticles->At(i);
+ kf = CheckPDGCode(iparticle->GetPdgCode());
+ if (TMath::Abs(kf) != fTriggerParticle) continue;
+ if (iparticle->Pt() == 0.) continue;
+ if (TMath::Abs(iparticle->Eta()) > fTriggerEta) continue;
+ triggered = kTRUE;
+ break;
+ }
+ if (!triggered) return 0;
+ }
+
//Introducing child cuts in case kPyW, kPyZ, kPyMb, and kPyMbNonDiff
if ( (fProcess == kPyW || fProcess == kPyZ || fProcess == kPyMb || fProcess == kPyMbNonDiffr)
}
+
for (i = 0; i < np; i++) {
Int_t trackIt = 0;
TParticle * iparticle = (TParticle *) fParticles->At(i);
} // particle loop
if (pParent) delete[] pParent;
-
- printf("\n I've put %i particles on the stack \n",nc);
return 1;
}
{fEtaMinGamma = etamin; fEtaMaxGamma = etamax;}
virtual void SetGammaPhiRange(Float_t phimin = 0., Float_t phimax = 360.)
{fPhiMinGamma = TMath::Pi()*phimin/180.; fPhiMaxGamma = TMath::Pi()*phimax/180.;}
+
+ // Trigger on a particle
+ virtual void SetTriggerParticle(Int_t particle = 0, Float_t etamax = 0.9)
+ {fTriggerParticle = particle; fTriggerEta = etamax;}
// Set option for feed down from higher family
virtual void SetFeedDownHigherFamily(Bool_t opt) {
fFeedDownOpt = opt;
// parents and their decays
Bool_t fFeedDownOpt; // Option to set feed down from higher
// quark families (e.g. b->c)
- Bool_t fFragmentation; // Option to activate fragmentation by Pythia
- Bool_t fSetNuclei; // Flag indicating that SetNuclei has been called
- Bool_t fNewMIS; // Flag for the new multipple interactions scenario
- Bool_t fHFoff; // Flag for switching heafy flavor production off
+ Bool_t fFragmentation; // Option to activate fragmentation by Pythia
+ Bool_t fSetNuclei; // Flag indicating that SetNuclei has been called
+ Bool_t fNewMIS; // Flag for the new multipple interactions scenario
+ Bool_t fHFoff; // Flag for switching heafy flavor production off
+ Int_t fTriggerParticle; // Trigger on this particle ...
+ Float_t fTriggerEta; // .. within |eta| < fTriggerEta
//
-
CountMode_t fCountMode; // Options for counting when the event will be finished.
AliGenPythiaEventHeader* fHeader; //! Event header
AliRunLoader* fRL; //! Run Loader