LDataHeader


class description - source file - inheritance tree

class LDataHeader : public TNamed

    private:
void Recognize(const char* what) public:
LDataHeader LDataHeader() LDataHeader LDataHeader(const char* filename) LDataHeader LDataHeader(const int argc, const char** argv) LDataHeader LDataHeader(const LDataHeader&) virtual void ~LDataHeader() void Add(const char* filename) void Add(const int argc, const char** argv) virtual void Browse(TBrowser*) Float_t CalcIndexToTime(const Int_t idx) const static TClass* Class() void CorrectRanges(Float_t& low, Float_t& up, Int_t n) Float_t* GetBias() const Float_t GetBias(const Int_t z) Float_t GetBias(const Float_t z) TH1F* GetBiasHist() int GetForce() const Long_t GetJobID() const void GetJobID(char* jobID) const Float_t GetUo() const virtual TClass* IsA() const virtual void PrintARG() void ResetBias() void SetBias(Float_t* bias) void SetBias(const Float_t bias, const Float_t Uo = 0.0) void SetDefaults() void SetForce(const int i) void SetGradient(const Float_t gradient, const Float_t Uo = 0.0) void SetJobID(const Long_t id) void SetLaserMode(const Int_t mode, const Float_t par = 0) void SetUo(const Float_t bias) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members


    protected:
Float_t* fbias [fspacez+2] external field in z axis (0-index) Bool_t f_IsDefault Guard for SetDefault() public:
Long_t fjobID identification of job Int_t fmax max number of bins Int_t fN1 number of repetitions at one energy configuration N1 Int_t force if 1 include only those that do not exit on first jump - see hoppclient.cc Int_t fwspacex working space x size Int_t fwspacey working space y size Int_t fwspacez working space z size Int_t fspacex lattice x size Int_t fspacey lattice y size Int_t fspacez lattice z size (gradient direction) Float_t fbasex basecell x size Float_t fbasey basecell y size Float_t fbasez basecell z size Float_t fresolution delta t of a bin Float_t ftemperature temperature of lattice Float_t fgamma intersite wavefunctions cover Float_t fsigma lattice energy disorder gaussian width Float_t falpha absorption coeficient Int_t flasermode mode of laser simulation 0-none 1-gaus Float_t flaserpar parameter for laser mode Float_t rtmin time range min Float_t rtmax time range max Float_t rpmin position range min Float_t rpmax position range max Float_t rvmin velocity range min Float_t rvmax velocity range max Float_t remin energy range min Float_t remax energy range max Int_t nbint number of bins for time Int_t nbinp number of bins for position Int_t nbinv number of bins for velocity Int_t nbine number of bins for energy

Class Description

  This is data header class
  to store montecarlo simulation data

 REMEMBER to call SetDefaults() after all parameter adjustment!
          example is in script create_header.C

 To initialize fbias array call
 ResetBias() or SetBias(0.0,0.0);


 Logs:

  $Log: LDataHeader.cc,v $
  Revision 1.24  2004/09/03 10:37:55  cvs
  bias array is now possible to be loaded from parameters by external file

  Revision 1.23  2004/08/25 08:05:00  cvs
  there was a bug in deletion of fbias array. now corrected

  Revision 1.22  2004/04/15 12:19:21  cvs
  bugs...

  Revision 1.21  2004/04/13 15:14:21  cvs
  bugs...

  Revision 1.20  2004/04/13 14:13:33  cvs
  hopping is client, that can comunicate only throuth stdin/out

  Revision 1.19  2004/04/09 13:21:05  cvs
  added cputime logging...

  Revision 1.18  2004/04/09 09:54:37  cvs
  found why there are some peaks at bins e.g. 22,63,105,147... when TOF is drawn.
  This was due to different number of bins in simulation and storage. To avoid this, both numbers of bins are set equal and less than MAX_BINS!

  Revision 1.17  2004/02/09 14:26:25  cvs
  added new LDataHeader version and force field also in streamer

  Revision 1.16  2003/12/23 08:38:28  cvs
  bug workaround in TLServer done.

  Revision 1.15  2003/12/22 14:32:36  cvs
  added simulation of laser -> LDataHeader version 5
  modified hoppserver sigint interruption

  Revision 1.14  2003/12/15 16:17:04  cvs
  found a bug in SetDefaults. Time range was slightly miscalculated, so notches occured in all graphs...

  Revision 1.13  2003/11/24 11:27:15  cvs
  added version control

  Revision 1.12  2003/11/11 17:33:03  cvs
  LServer upgraded

  Revision 1.11  2003/11/03 13:54:40  cvs
  TLServer is now threaded, LData and LDataHeader have now right Draw and Paint methods, LIV is controlled and comments were added.

  Revision 1.10  2003/09/25 10:57:40  cvs
  added force member to LDataHeader class

  Revision 1.9  2003/08/28 14:41:18  cvs
  corrected the bug in LData::Add(float,float,float,...). Description of bug: position index, that was obtained by simulation, was not shifted by -1 like was shifted the range of position in LDataHeader::SetDefaults.

  Revision 1.8  2003/08/20 10:26:50  cvs
  Added scripts directory with two utilities now:
  modify_header which modify existing header and send it database
  deliver_header program and script which deliver header to clients

  libLComm was made ROOT compatible and GetBias(z) was added to LDataHeader

  Revision 1.7  2003/07/25 11:36:26  cvs
  simulation of IV measurements is done with iv program
  some minority fixes to LDisorder - corrected ft to match the recorded position

  Revision 1.6  2003/07/15 14:19:35  cvs
  corrected ranges when creating histograms. See LDataHeader::Defaults(). Added Draw(".bias.") to draw bias array

  Revision 1.5  2003/07/09 13:27:39  cvs
  Modified ranges for histograms stored in LData. Ranges are set by LDataHeader->SetDefaults() and MAX_BINS in Config.h

  Revision 1.4  2003/06/26 14:46:16  cvs
  found a bug in LSpace::GetEnergy() with fbias. Bug successfully resolved :)

  Revision 1.3  2003/06/26 09:27:11  cvs
  added log fields...


LDataHeader():TNamed("header","Monte Carlo simulation header")

LDataHeader(const char* filename):TNamed("header","Monte Carlo simulation header")
constructor, which sets all data from a file. It uses Add(filename)

LDataHeader(const int argc,const char** argv):TNamed("header","Monte Carlo simulation header")
constructor, which sets all data from input line parameters, using the same names of parameters as in the file. uses Add(arvc,argv)

~LDataHeader()
destructor
free memory used by fbias array

void Add(const char* filename)
sets all data from a file

void Add(const int argc,const char** argv)
sets all data from input line parameters, using the same names of parameters as in the file

void Recognize(const char* what)
Recognize parameters from input file
OBSOLETE use scripts create_header.C and modify_header.C instead!

void PrintARG()
print out string that is appropriate to initialize new header!

void CorrectRanges(Float_t& low,Float_t& up,Int_t n)
this is used to correct lower and upper range of the histogram
the problem is for eg. the coordinates of eight hopping sites
are 1,2,3,4,5,6,7,8 If you want do draw histograms you have to
enter lower and upper range, which is 0.5 and 8.5
if you say 1 and 8 it is not correct. So this method correct the
ranges, so that the center of histogram bin is the true coordinate

void SetDefaults()
this set default parameters for data storing in LData
WARNING:call this method after having fbias filled!!!
time is measured from 0
NEVER FORGET THIS!!!

void SetGradient(const Float_t gradient,const Float_t Uo)
calculate fbias array. It starts at the index, which is outside
the hopping states, because the metal is at known bias, not organic!
U(z)=Uo-E*z    E...const
Uo=fbias[0] ... default is 0.0eV

TH1F* GetBiasHist()
see LDataHeader::SetDefults to se how the ranges are set

void SetBias(const Float_t bias,const Float_t Uo)
calculate and correct fbias array. It starts at the z=0.
it is advised to adjust fbias[0] to contain the correct
value
U(z)=Uo-E*z    E...const
Uo=fbias[0] ... default is 0.0eV

void SetBias(Float_t* bias)
copy array to new one

Float_t GetBias(const Int_t z)
return bias potential for sites
argument z is site index [0..fspacez+1]

Float_t GetBias(const Float_t z)
return bias potential in between points
argument z is space coordinate not site index [-fbasez..fspacez*fbasez]
see Defaults() for such ranges

SetLaserMode(const Int_t mode,const Float_t par)
set the mode to simulate laser operation. Available modes are:
 0 - no laser simulation, all are generated at time zero
 1 - gaus laser simulation, parameter [0] is sigma of gaus pulse duration
     sigma is in units of fmax, floating points are allowable

CalcIndexToTime(const Int_t idx) const
this calculate real time from LDisorder experiment
here is the laser simulation

Browse(TBrowser*)

Streamer(TBuffer &R__b)
special streamer for LDataHeader
pazi fbias array



Inline Functions


               void SetJobID(const Long_t id)
             Long_t GetJobID() const
               void GetJobID(char* jobID) const
               void SetForce(const int i)
                int GetForce() const
            Float_t GetBias(const Float_t z)
               void ResetBias()
               void SetUo(const Float_t bias)
            Float_t GetUo() const
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void StreamerNVirtual(TBuffer& b)
        LDataHeader LDataHeader(const LDataHeader&)


Author: Egon Pavlica
Last update: Sat Oct 16 19:10:31 2004


ROOT page - Class index - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.