00001 /***************************************************************************** 00002 * Project: RooFit * 00003 * Package: RooFitCore * 00004 * File: $Id: RooMPSentinel.h,v 1.7 2007/05/11 09:11:30 verkerke Exp $ 00005 * Authors: * 00006 * WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu * 00007 * DK, David Kirkby, UC Irvine, dkirkby@uci.edu * 00008 * * 00009 * Copyright (c) 2000-2005, Regents of the University of California * 00010 * and Stanford University. All rights reserved. * 00011 * * 00012 * Redistribution and use in source and binary forms, * 00013 * with or without modification, are permitted according to the terms * 00014 * listed in LICENSE (http://roofit.sourceforge.net/license.txt) * 00015 *****************************************************************************/ 00016 #ifndef ROO_MP_SENTINEL 00017 #define ROO_MP_SENTINEL 00018 00019 #include "Rtypes.h" 00020 #include "RooArgSet.h" 00021 class RooRealMPFE ; 00022 00023 class RooMPSentinel { 00024 public: 00025 00026 RooMPSentinel() ; 00027 virtual ~RooMPSentinel() ; 00028 00029 protected: 00030 00031 friend class RooRealMPFE ; 00032 void add(RooRealMPFE& mpfe) ; 00033 void remove(RooRealMPFE& mpfe) ; 00034 00035 RooMPSentinel(const RooMPSentinel&) { 00036 // Default constructor 00037 } 00038 RooArgSet _mpfeSet ; 00039 00040 ClassDef(RooMPSentinel,1) // Singleton class that terminate MP server processes when parent exists 00041 }; 00042 00043 #endif