This should work for pp.
[u/mrichter/AliRoot.git] / DPMJET / AliDpmJetRndm.cxx
index bf5de78a4ea3909c511168804eb3fcc5376369f4..55f7af1c166785c56df971c171cae07125f03911 100644 (file)
 
 //-----------------------------------------------------------------------------
 //   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"
 
@@ -30,39 +33,6 @@ TRandom * AliDpmJetRndm::fgDpmJetRandom=0;
 
 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) {
@@ -108,6 +78,8 @@ extern "C" {
 
   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);