ThePEG::LWHFactory Class Reference

Here is the documentation of the LWHFactory class. More...

#include <LWHFactory.h>

Inheritance diagram for ThePEG::LWHFactory:

ThePEG::FactoryBase ThePEG::Interfaced ThePEG::InterfacedBase ThePEG::Base ThePEG::Named ThePEG::Pointer::ReferenceCounted

List of all members.

Public Member Functions

Manipulate histograms
virtual void normalizeToXSec (tH1DPtr histogram, CrossSection unit=picobarn) const
 Rescale the given histogram so that the integral over the bins will give the correct integrated cross section for the observable in the given unit.
virtual void normalizeToXSecFraction (tH1DPtr histogram) const
 Rescale the given histogram so that the integral over the bins gives the fraction of the total cross section generated which is contained in the bins.
virtual void normalizeToUnity (tH1DPtr histogram) const
 Rescale the given histogram so that the integral over the bins gives one.
Functions used by the persistent I/O system.
void persistentOutput (PersistentOStream &os) const
 Function used to write out object persistently.
void persistentInput (PersistentIStream &is, int version)
 Function used to read in object persistently.

Static Public Member Functions

static void Init ()
 The standard Init function used to initialize the interfaces.

Protected Member Functions

Clone Methods.
virtual IBPtr clone () const
 Make a simple clone of this object.
virtual IBPtr fullclone () const
 Make a clone of this object, possibly modifying the cloned object to make it sane.
Standard Interfaced functions.
virtual void doinitrun ()
 Initialize this object.

Private Member Functions

LWHFactoryoperator= (const LWHFactory &)
 The assignment operator is private and must never be called.

Static Private Attributes

static ClassDescription
< LWHFactory
initLWHFactory
 The static object used to initialize the description of this class.


Detailed Description

Here is the documentation of the LWHFactory class.

It inherits from the abstract FactoryBase class and implements the Light-Weight Histogram package, LWH. This implements the most rudimentary histogramming facilities according to the AIDA interface specifications. Currently the only thing that is supported is simple, equally binned, one dimensional histograms. It is mainly intended to be used in applications where one needs to fill simple histograms and output them. With LWH it is then possible to do this without the overhead of a full AIDA implementation, but still having the option to use a full implementation later on with minimal changes.

See also:
The interfaces defined for LWHFactory.

Definition at line 36 of file LWHFactory.h.


Member Function Documentation

void ThePEG::LWHFactory::persistentOutput ( PersistentOStream os  )  const

Function used to write out object persistently.

Parameters:
os the persistent output stream written to.

Reimplemented from ThePEG::FactoryBase.

void ThePEG::LWHFactory::persistentInput ( PersistentIStream is,
int  version 
)

Function used to read in object persistently.

Parameters:
is the persistent input stream read from.
version the version number of the object when written.

Reimplemented from ThePEG::FactoryBase.

static void ThePEG::LWHFactory::Init (  )  [static]

The standard Init function used to initialize the interfaces.

Called exactly once for each class by the class description system before the main function starts or when this class is dynamically loaded.

Reimplemented from ThePEG::FactoryBase.

virtual IBPtr ThePEG::LWHFactory::clone (  )  const [inline, protected, virtual]

Make a simple clone of this object.

Returns:
a pointer to the new object.

Implements ThePEG::InterfacedBase.

Definition at line 98 of file LWHFactory.h.

References ThePEG::Pointer::new_ptr().

virtual IBPtr ThePEG::LWHFactory::fullclone (  )  const [inline, protected, virtual]

Make a clone of this object, possibly modifying the cloned object to make it sane.

Returns:
a pointer to the new object.

Reimplemented from ThePEG::InterfacedBase.

Definition at line 104 of file LWHFactory.h.

References ThePEG::Pointer::new_ptr().

virtual void ThePEG::LWHFactory::doinitrun (  )  [protected, virtual]

Initialize this object.

Called in the run phase just before a run begins.

Reimplemented from ThePEG::FactoryBase.

LWHFactory& ThePEG::LWHFactory::operator= ( const LWHFactory  )  [private]

The assignment operator is private and must never be called.

In fact, it should not even be implemented.


Member Data Documentation

The static object used to initialize the description of this class.

Indicates that this is a concrete class with persistent data.

Definition at line 127 of file LWHFactory.h.


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

Generated on Thu Apr 29 12:42:57 2010 for ThePEG by  doxygen 1.5.5