/*
$Log$
+Revision 1.36.6.3 2002/10/10 16:40:08 hristov
+Updating VirtualMC to v3-09-02
+
+Revision 1.39 2002/09/16 08:21:16 morsch
+Use TDatabasePDG::Instance();
+
+Revision 1.38 2002/05/30 14:59:12 morsch
+Check geometrical acceptance. (G. Martinez)
+
+Revision 1.37 2002/04/17 10:20:44 morsch
+Coding Rule violations corrected.
+
+Revision 1.36 2002/02/08 16:50:50 morsch
+Add name and title in constructor.
+
Revision 1.35 2002/01/21 10:02:40 morsch
ty is Double_t
Abort if too high rapidity causes numerical paroblem. User has to specify
*/
+
+
+// Class to generate particles from using paramtrized pT and y distributions.
+// Distributions are obtained from pointer to object of type AliGenLib.
+// (For example AliGenMUONlib)
+// Decays are performed using Pythia.
+// andreas.morsch@cern.ch
+
#include "AliGenParam.h"
#include "AliDecayerPythia.h"
#include "AliGenMUONlib.h"
}
-AliGenParam::AliGenParam(const AliGenParam & Paramd)
+AliGenParam::AliGenParam(const AliGenParam & Param)
{
// copy constructor
+ Param.Copy(*this);
}
//____________________________________________________________
//
if(!particles) particles = new TClonesArray("TParticle",1000);
- static TDatabasePDG *pDataBase = new TDatabasePDG();
- if(!pDataBase) pDataBase = new TDatabasePDG();
+ TDatabasePDG *pDataBase = TDatabasePDG::Instance();
//
Float_t random[6];
//
// select decay particles
Int_t np=fDecayer->ImportParticles(particles);
+
+ // Selecting GeometryAcceptance for particles fPdgCodeParticleforAcceptanceCut;
+ if (fGeometryAcceptance)
+ if (!CheckAcceptanceGeometry(np,particles)) continue;
Int_t ncsel=0;
Int_t* pFlag = new Int_t[np];
Int_t* pParent = new Int_t[np];
} else {
iparent = -1;
}
+
SetTrack(fTrackIt*trackIt[i], iparent, kf,
pc, och, polar,
0, kPDecay, nt, wgtch);