File: MPISampler.icc

package info (click to toggle)
herwig%2B%2B 2.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 27,128 kB
  • ctags: 24,739
  • sloc: cpp: 188,949; fortran: 23,193; sh: 11,365; python: 5,069; ansic: 3,539; makefile: 1,865; perl: 2
file content (70 lines) | stat: -rw-r--r-- 1,926 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
// -*- C++ -*-
//
// MPISampler.icc is a part of Herwig++ - A multi-purpose Monte Carlo event generator
// Copyright (C) 2002-2011 The Herwig Collaboration
//
// Herwig++ is licenced under version 2 of the GPL, see COPYING for details.
// Please respect the MCnet academic guidelines, see GUIDELINES for details.
//
//
// This is the implementation of the inlined member functions of
// the MPISampler class.
//

namespace Herwig {

inline MPISampler::MPISampler()
: theEps(100*Constants::epsilon), theMargin(1.1),
  theNTry(1000) {}

inline MPISampler::MPISampler(const MPISampler & x)
  : SamplerBase(x), theProcessHandler(x.theProcessHandler), theEps(x.theEps), 
    theMargin(x.theMargin), theNTry(x.theNTry) {}

inline void MPISampler::setProcessHandler(tProHdlPtr proh){
  theProcessHandler = proh;
}

inline IBPtr MPISampler::clone() const {
  return new_ptr(*this);
}

inline IBPtr MPISampler::fullclone() const {
  return new_ptr(*this);
}

inline void MPISampler::doupdate() {
  SamplerBase::doupdate();
  // First update base class.
  bool redo = touched();
  // redo if touched.
//  UpdateChecker::check(aDependentMember, redo);
  // Update referenced objects on which this depends redo is set to true
  // if the dependent object is touched.
//  for_each(ContainerOfDependencies, UpdateChecker(redo));
  // Update a container of references.
//  for_each(MapOfDependencies, UpdateMapChecker(redo));
  // Update a map of references.
  if ( !redo ) return;
  // return if nothing has been touched. Otherwise do the actual update.
//  touch()
  // Touch if anything has changed.
}

inline void MPISampler::doinit() {
  SamplerBase::doinit();
}

inline void MPISampler::rebind(const TranslationMap & trans)
  {
  // dummy = trans.translate(dummy);
  SamplerBase::rebind(trans);
}

inline IVector MPISampler::getReferences() {
  IVector ret = SamplerBase::getReferences();
  // ret.push_back(dummy);
  return ret;
}

}