swh:1:snp:af87cd67498ef4fe47c76ed3e7caffe5b61facaf
Tip revision: 6b661ceee44d673abb2e040e60cfd89b5974048d authored by Unknown Author on 11 July 2004, 04:14:20 UTC
This commit was manufactured by cvs2svn to create tag 'v4-00-06'.
This commit was manufactured by cvs2svn to create tag 'v4-00-06'.
Tip revision: 6b661ce
TVirtualMCApplication.cxx
// @(#)root/vmc:$Name: $:$Id: TVirtualMCApplication.cxx,v 1.2 2003/09/23 14:03:15 brun Exp $
// Author: Ivana Hrivnacova, 27/03/2002
#include "TVirtualMCApplication.h"
#include "TError.h"
//______________________________________________________________________________
//
// Interface to a user Monte Carlo application.
//______________________________________________________________________________
ClassImp(TVirtualMCApplication)
TVirtualMCApplication* TVirtualMCApplication::fgInstance = 0;
//_____________________________________________________________________________
TVirtualMCApplication::TVirtualMCApplication(const char *name,
const char *title)
: TNamed(name,title)
{
//
// Standard constructor
//
if (fgInstance) {
Fatal("TVirtualMCApplication",
"Attempt to create two instances of singleton.");
}
fgInstance = this;
}
//_____________________________________________________________________________
TVirtualMCApplication::TVirtualMCApplication()
: TNamed()
{
//
// Default constructor
//
fgInstance = this;
}
//_____________________________________________________________________________
TVirtualMCApplication::~TVirtualMCApplication()
{
//
// Destructor
//
fgInstance = 0;
}