]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TEvtGen/EvtGenBase/EvtParticle.hh
Updates EvtGen Code
[u/mrichter/AliRoot.git] / TEvtGen / EvtGenBase / EvtParticle.hh
index 879505e98279b34bad38fcb6523c0c32ed164ed7..5809c10f4d85b4388f0e5a22008d56cade3b5770 100644 (file)
@@ -28,6 +28,7 @@
 #include "EvtGenBase/EvtId.hh"
 #include "EvtGenBase/EvtSpinType.hh"
 #include <string>
+#include <vector>
 
 class EvtDiracSpinor;
 class EvtVector4C;
@@ -157,6 +158,13 @@ public:
   */ 
   void makeDaughters(unsigned int ndaug,EvtId *id);
 
+  /**
+  * Creates the daughters in the list of ids and 
+  * adds them to the parent. Note that momentum
+  * is left uninitialized, this is _only_ creation.
+  */ 
+  void makeDaughters(unsigned int ndaug, std::vector<EvtId> idVector);
+
   /**
   * Similar to the routine above except that here 
   * momentum is generated according to phase space 
@@ -236,6 +244,12 @@ public:
   */
   EvtId getId() const;
 
+  /**
+  * Returns the PDG id of the particle
+  */
+  
+  int getPDGId() const;
+
   /** 
   * Returns particle type.
   */
@@ -370,7 +384,7 @@ public:
   //lange - April 29, 2002
   void setId(EvtId id) { _id=id;}
   void initDecay(bool useMinMass=false);
-  void generateMassTree();
+  bool generateMassTree();
 
   double compMassProb();
 
@@ -396,7 +410,9 @@ public:
   double* decayProb() {return _decayProb;}
   void setDecayProb( double p);
 
-  
+  // Return the name of the particle (from the EvtId number)
+  std::string getName();
+   
 protected:
 
   void setp( double e, double px, double py, double pz) {