/*****************************************************************************
 * Project: RooFit                                                           *
 * Package: RooFitCore                                                       *
 *    File: $Id: RooMPSentinel.h,v 1.7 2007/05/11 09:11:30 verkerke Exp $
 * Authors:                                                                  *
 *   WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu       *
 *   DK, David Kirkby,    UC Irvine,         dkirkby@uci.edu                 *
 *                                                                           *
 * Copyright (c) 2000-2005, Regents of the University of California          *
 *                          and Stanford University. All rights reserved.    *
 *                                                                           *
 * Redistribution and use in source and binary forms,                        *
 * with or without modification, are permitted according to the terms        *
 * listed in LICENSE (http://roofit.sourceforge.net/license.txt)             *
 *****************************************************************************/
#ifndef ROO_MP_SENTINEL
#define ROO_MP_SENTINEL

#include "Rtypes.h"
#include "RooArgSet.h"
class RooRealMPFE ;

class RooMPSentinel {
public:

  RooMPSentinel() ;
  virtual ~RooMPSentinel() ;
 
protected:

  friend class RooRealMPFE ;
  void add(RooRealMPFE& mpfe) ;
  void remove(RooRealMPFE& mpfe) ;

  RooMPSentinel(const RooMPSentinel&) {
    // Default constructor
  }
  RooArgSet _mpfeSet ;
  
  ClassDef(RooMPSentinel,1) // Singleton class that terminate MP server processes when parent exists
};

#endif
 RooMPSentinel.h:1
 RooMPSentinel.h:2
 RooMPSentinel.h:3
 RooMPSentinel.h:4
 RooMPSentinel.h:5
 RooMPSentinel.h:6
 RooMPSentinel.h:7
 RooMPSentinel.h:8
 RooMPSentinel.h:9
 RooMPSentinel.h:10
 RooMPSentinel.h:11
 RooMPSentinel.h:12
 RooMPSentinel.h:13
 RooMPSentinel.h:14
 RooMPSentinel.h:15
 RooMPSentinel.h:16
 RooMPSentinel.h:17
 RooMPSentinel.h:18
 RooMPSentinel.h:19
 RooMPSentinel.h:20
 RooMPSentinel.h:21
 RooMPSentinel.h:22
 RooMPSentinel.h:23
 RooMPSentinel.h:24
 RooMPSentinel.h:25
 RooMPSentinel.h:26
 RooMPSentinel.h:27
 RooMPSentinel.h:28
 RooMPSentinel.h:29
 RooMPSentinel.h:30
 RooMPSentinel.h:31
 RooMPSentinel.h:32
 RooMPSentinel.h:33
 RooMPSentinel.h:34
 RooMPSentinel.h:35
 RooMPSentinel.h:36
 RooMPSentinel.h:37
 RooMPSentinel.h:38
 RooMPSentinel.h:39
 RooMPSentinel.h:40
 RooMPSentinel.h:41
 RooMPSentinel.h:42
 RooMPSentinel.h:43