LCOV - code coverage report
Current view: top level - PYTHIA6/AliPythia6 - AliPythiaRndm.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 1 11 9.1 %
Date: 2016-06-14 17:26:59 Functions: 1 13 7.7 %

          Line data    Source code
       1             : #ifndef ALIPYTHIARNDM_H
       2             : #define ALIPYTHIARNDM_H
       3             : /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
       4             :  * See cxx source for full Copyright notice                               */
       5             : 
       6             : /* $Id$ */
       7             : 
       8             : #include <Rtypes.h>
       9             : #include <TError.h>
      10             : 
      11             : class TRandom;
      12             : 
      13             : class AliPythiaRndm {
      14             :  public:
      15           0 :   AliPythiaRndm() {
      16             :     // Default constructor. The static data member is initialized
      17             :     // in the implementation file
      18           0 :   }
      19           0 :   AliPythiaRndm(const AliPythiaRndm & /*rn*/) {
      20             :     // Copy constructor: no copy allowed for the object
      21           0 :     ::Fatal("Copy constructor","Not allowed\n");
      22           0 :   }
      23           0 :   virtual ~AliPythiaRndm() {
      24             :     // Destructor
      25           0 :     fgPythiaRandom=0;
      26           0 :   }
      27             :   AliPythiaRndm & operator=(const AliPythiaRndm& /*rn*/) {
      28             :     // Assignment operator: no assignment allowed
      29           0 :     ::Fatal("Assignment operator","Not allowed\n");
      30           0 :     return (*this);
      31             :   }
      32             : 
      33             :   static void SetPythiaRandom(TRandom *ran=0);
      34             :   static TRandom * GetPythiaRandom();
      35             : 
      36             : private:
      37             : 
      38             :   static TRandom * fgPythiaRandom; //! pointer to the random number generator
      39             : 
      40           2 :   ClassDef(AliPythiaRndm,0)  //Random Number generator wrapper (non persistent)
      41             : };
      42             : 
      43             : #endif
      44             : 

Generated by: LCOV version 1.11