]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TEvtGen/EvtGenBase/EvtParticleDecay.hh
AliDecayer realisation for the EvtGen code and EvtGen itself.
[u/mrichter/AliRoot.git] / TEvtGen / EvtGenBase / EvtParticleDecay.hh
diff --git a/TEvtGen/EvtGenBase/EvtParticleDecay.hh b/TEvtGen/EvtGenBase/EvtParticleDecay.hh
new file mode 100644 (file)
index 0000000..d39b1c4
--- /dev/null
@@ -0,0 +1,64 @@
+//--------------------------------------------------------------------------
+//
+// Environment:
+//      This software is part of the EvtGen package developed jointly
+//      for the BaBar and CLEO collaborations.  If you use all or part
+//      of it, please give an appropriate acknowledgement.
+//
+// Copyright Information: See EvtGen/COPYRIGHT
+//      Copyright (C) 1998      Caltech, UCSB
+//
+// Module: EvtGen/EvtParticleDecay.hh
+//
+// Description:
+//
+// Modification history:
+//
+//    DJL/RYD     August 11, 1998         Module created
+//
+//------------------------------------------------------------------------
+
+#ifndef EVTPARTICLEDECAY_HH
+#define EVTPARTICLEDECAY_HH
+
+#include "EvtGenBase/EvtDecayBase.hh"
+
+
+class EvtParticleDecay{
+
+public:
+
+  EvtParticleDecay(){
+    _decay=0;
+    _brfrsum=0.0;
+    _massmin=0.0;
+  }
+
+  ~EvtParticleDecay(){
+
+    if (_decay!=0) delete _decay;
+
+  }
+
+  void chargeConj(EvtParticleDecay* decay);
+
+  void setDecayModel(EvtDecayBase* decay) {_decay=decay;}
+  EvtDecayBase* getDecayModel() {return _decay;}
+  double getBrfrSum() {return _brfrsum;}
+  void setBrfrSum(double brfrsum) {_brfrsum=brfrsum;}
+  double getMassMin() {return _massmin;}
+  void setMassMin(double massmin) {_massmin=massmin;}
+
+  void printSummary();
+
+private:
+
+  EvtDecayBase* _decay;
+
+  double _brfrsum;
+  double _massmin;
+
+};
+
+#endif
+