//-----------------------------------------------------------------------------
// Class: AliDpmJetRndm
-// Random Number Interface to Fortran
-// Since AliGenDpmJet belongs to another module (TDPMjet) one cannot
-// pass the ponter to the generator via static variable
+// Responsibilities: Interface to Root random number generator
+// from Fortran (re-implements FINCTION dt_rndm_dpmjet)
+// Very similar to AliHijingRndm
+// Note: Since AliGenDpmJet belongs to another module (TDPMjet) one cannot
+// pass the ponter to the generator via static variable
+// Collaborators: AliGenDPMjet class
//-----------------------------------------------------------------------------
-#include <TError.h>
+#include <TRandom.h>
#include "AliDpmJetRndm.h"
ClassImp(AliDpmJetRndm)
-//_______________________________________________________________________
-AliDpmJetRndm::AliDpmJetRndm()
-{
- //
- // Default ctor
- //
-}
-
-//_______________________________________________________________________
-AliDpmJetRndm::AliDpmJetRndm(const AliDpmJetRndm& rn)
-{
- //
- // Copy constructor
- //
- rn.Copy(*this);
-}
-
-//_______________________________________________________________________
-AliDpmJetRndm::~AliDpmJetRndm() {
- //
- // Destructor
- //
- fgDpmJetRandom=0;
-}
-
-//_______________________________________________________________________
-void AliDpmJetRndm::Copy(AliDpmJetRndm&) const
-{
- //
- // No copy is allowed
- //
- ::Fatal("Copy","Not implemented\n");
-}
//_______________________________________________________________________
void AliDpmJetRndm::SetDpmJetRandom(TRandom *ran) {
Double_t type_of_call dt_rndm_dpmjet(Int_t &)
{
+ // Wrapper to static method which retrieves the
+ // pointer to the Root (C++) generator
Float_t r;
do r = AliDpmJetRndm::GetDpmJetRandom()->Rndm();
while(0 >= r || r >= 1);