Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-08-06 09:24:27

0001 // -*- C++ -*-
0002 //
0003 // MPISampler.icc is a part of Herwig - A multi-purpose Monte Carlo event generator
0004 // Copyright (C) 2002-2019 The Herwig Collaboration
0005 //
0006 // Herwig is licenced under version 3 of the GPL, see COPYING for details.
0007 // Please respect the MCnet academic guidelines, see GUIDELINES for details.
0008 //
0009 //
0010 // This is the implementation of the inlined member functions of
0011 // the MPISampler class.
0012 //
0013 
0014 namespace Herwig {
0015 
0016 inline MPISampler::MPISampler()
0017 : theEps(100*Constants::epsilon), theMargin(1.1),
0018   theNTry(1000) {}
0019 
0020 inline MPISampler::MPISampler(const MPISampler & x)
0021   : SamplerBase(x), theProcessHandler(x.theProcessHandler), theEps(x.theEps), 
0022     theMargin(x.theMargin), theNTry(x.theNTry) {}
0023 
0024 inline void MPISampler::setProcessHandler(tProHdlPtr proh){
0025   theProcessHandler = proh;
0026 }
0027 
0028 inline IBPtr MPISampler::clone() const {
0029   return new_ptr(*this);
0030 }
0031 
0032 inline IBPtr MPISampler::fullclone() const {
0033   return new_ptr(*this);
0034 }
0035 
0036 inline void MPISampler::doupdate() {
0037   SamplerBase::doupdate();
0038   // First update base class.
0039   bool redo = touched();
0040   // redo if touched.
0041 //  UpdateChecker::check(aDependentMember, redo);
0042   // Update referenced objects on which this depends redo is set to true
0043   // if the dependent object is touched.
0044 //  for_each(ContainerOfDependencies, UpdateChecker(redo));
0045   // Update a container of references.
0046 //  for_each(MapOfDependencies, UpdateMapChecker(redo));
0047   // Update a map of references.
0048   if ( !redo ) return;
0049   // return if nothing has been touched. Otherwise do the actual update.
0050 //  touch()
0051   // Touch if anything has changed.
0052 }
0053 
0054 inline void MPISampler::doinit() {
0055   SamplerBase::doinit();
0056 }
0057 
0058 inline void MPISampler::rebind(const TranslationMap & trans)
0059   {
0060   // dummy = trans.translate(dummy);
0061   SamplerBase::rebind(trans);
0062 }
0063 
0064 inline IVector MPISampler::getReferences() {
0065   IVector ret = SamplerBase::getReferences();
0066   // ret.push_back(dummy);
0067   return ret;
0068 }
0069 
0070 }