CAnalysis Class Reference

class controlling analysis routines More...

#include <CAnalysis.hpp>

Collaboration diagram for CAnalysis:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 CAnalysis (CUserInput *uinp, CDataReader *dr)
 constructor
 ~CAnalysis ()
 destructor
void analyze ()
 do analysis

Private Member Functions

void fillSummaryFiles ()
 Do all calculations needed to fill the summary files.
void writeSummaryFiles ()
void plottingRoutines ()
void analysisRoutines ()
void redundantRoutines ()

Static Private Member Functions

static void initFortranStuff ()

Private Attributes

CUserInput_uinp
CDataReader_dr
Cube< double > _sumfile

Static Private Attributes

static const int defval = -99
static const int nfeh = NFEH
static const int nsumfile = 9
static const int ncol [9] = {11+nfeh,23,14,11,11,27,9,9,9}


Detailed Description

class controlling analysis routines

Constructor & Destructor Documentation

CAnalysis::CAnalysis ( CUserInput uinp,
CDataReader dr 
)

constructor

Parameters:
uinp pointer to a CUserInput instance: provides all the user input needed to know what to analyze where and how.
maybe it would be better not to store a datareader object but to pass a datareader object into the analysis function. As it is now only 1 datareader is constructed, but that should/will change.


Member Function Documentation

void CAnalysis::analyze (  ) 

do analysis

based on the information in the user input instance execute some analysis routine(s)

void CAnalysis::initFortranStuff (  )  [static, private]

Before calling fortran routines, some stuff needs to be initialized (e.g. particle types). Call the necessary routines here.

void CAnalysis::writeSummaryFiles (  )  [private]

write the summary files to disk


Member Data Documentation

pointer to the instance providing the data

Cube<double> CAnalysis::_sumfile [private]

3D array, allocated as _sumfile(NFMAX+1, NCOLMAX, NBACK)

The masterpiece of this code, the sumfile array contains all the information calculated by the various subprograms of hyplot. These files are written as ASCII files at the end of the hyplot execution, and can be found in rundir/data/sumfiles

NFMAX+1: we go from 0 to NFMAX

Column index 1 : Select the row of a summary file Column index 2 : Select the column of a summary file. Each column contains one specific quantity calculated by hyplot. Column index 3 : Select a summary file (e.g. [][][2] : file 3 => XXXX.02.dat or XXXX.03.dat (depends if you are starting from 0 or 1), with XXXX the run number.

pointer to the instance providing user input data

const int CAnalysis::defval = -99 [static, private]

default value used in a summary file for a non-computed field

const int CAnalysis::ncol = {11+nfeh,23,14,11,11,27,9,9,9} [static, private]

number of columns in each summary file

const int CAnalysis::nfeh = NFEH [static, private]

number of feh columns in summary file 1

const int CAnalysis::nsumfile = 9 [static, private]

number of summary files


The documentation for this class was generated from the following files:

Generated on Fri Oct 16 18:59:58 2009 for HYPLOT by  doxygen 1.5.8