1 #ifndef SS_CHAIN_DIST_CPP 2 #define SS_CHAIN_DIST_CPP 11 #include "SSChainDist.h" 12 #include <mcMd/simulation/Simulation.h> 13 #include <mcMd/links/LinkMaster.h> 14 #include <mcMd/chemistry/Molecule.h> 15 #include <mcMd/chemistry/Atom.h> 16 #include <simp/species/Species.h> 17 #include <simp/boundary/Boundary.h> 18 #include <util/misc/FileMaster.h> 49 { accumulator_.
clear(); }
61 for (idLink=0; idLink < nLinks0; idLink++) {
65 accumulator_.
sample((
double)iAtom0);
66 accumulator_.
sample((
double)iAtom1);
84 accumulator_.
output(outputFile_);
int nLink() const
Get the total number of active Links.
void openOutputFile(const std::string &filename, std::ofstream &out, std::ios_base::openmode mode=std::ios_base::out) const
Open an output file.
virtual void setup()
Clear accumulator.
A set of interacting Molecules enclosed by a Boundary.
System & system()
Return reference to parent system.
A Link represents a crosslink between two Atoms.
File containing preprocessor macros for error handling.
Classes used by all simpatico molecular simulations.
void readOutputFileName(std::istream &in)
Read outputFileName from file.
void sample(long iStep)
Add atoms attached to links to SSChainDist histogram.
virtual void writeParam(std::ostream &out)
Write all parameters to an output stream.
void readInterval(std::istream &in)
Read interval from file, with error checking.
SSChainDist(System &system)
Constructor.
Utility classes for scientific computation.
void sample(double value)
Sample a value.
virtual void readParameters(std::istream &in)
Read parameters from file.
Template for Analyzer associated with one System.
void output(std::ostream &out)
Output the distribution to file.
virtual void clear()
Clear (i.e., zero) previously allocated histogram.
Single-processor Monte Carlo (MC) and molecular dynamics (MD).
const Atom & atom1() const
Get Atom1 connected to a Link.
virtual void output()
Output results to output file.
void setClassName(const char *className)
Set class name string.
int indexInMolecule() const
Get local index for this Atom within the parent molecule;.
void readParamComposite(std::istream &in, ParamComposite &child, bool next=true)
Add and read a required child ParamComposite.
Link & link(int id) const
Return an active link by an internal set index.
FileMaster & fileMaster()
Get the FileMaster by reference.
bool isAtInterval(long counter) const
Return true iff counter is a multiple of the interval.
const std::string & outputFileName() const
Return outputFileName string.
const Atom & atom0() const
Get Atom0 connected to a Link.
LinkMaster & linkMaster() const
Get the LinkMaster by reference.