FluxGenerator Class Reference

ABC defines FluxGenerator interface. More...

#include <FluxGenerator.h>

Inheritance diagram for FluxGenerator:
FluxGen_OneOverE

List of all members.

Public Member Functions

virtual void Configure (const char *option="")=0
 Configure the generator from a text string.
virtual TParticle GetParticle () const =0
virtual std::vector< int > GetParticleList () const =0
 Report the list of potential particles that might be returned.
virtual Double_t GetMaxEnergy () const =0
 Report the maximum energy that will be returned.
double GetPOTs () const
 Each generator (where relevant) must return the POTs.
void ClearPOTs ()
 FluxGenerator ()
 Default ctor/dtor can't be defined to be = 0 or ROOTCINT barfs.
virtual ~FluxGenerator ()

Private Attributes

double fAccumPOTs
 Make these mutable so the calls can be made on a const obj.

Detailed Description

ABC defines FluxGenerator interface.

Author:
(last to touch it)
Author
rhatcher
Version:
Revision
1.3
Date:
Date
2006/05/18 21:25:28

Contact: rhatcher@fnal.gov

Created on: Wed Apr 13 18:16:24 2005

Id
FluxGenerator.h,v 1.3 2006/05/18 21:25:28 rhatcher Exp

Definition at line 29 of file FluxGenerator.h.


Constructor & Destructor Documentation

FluxGenerator::FluxGenerator (  )  [inline]

Default ctor/dtor can't be defined to be = 0 or ROOTCINT barfs.

Definition at line 58 of file FluxGenerator.h.

00058 : fAccumPOTs(0) {}

virtual FluxGenerator::~FluxGenerator (  )  [inline, virtual]

Definition at line 59 of file FluxGenerator.h.

00059 {}


Member Function Documentation

void FluxGenerator::ClearPOTs (  )  [inline]

Definition at line 55 of file FluxGenerator.h.

References fAccumPOTs.

00055 { fAccumPOTs = 0; }

virtual void FluxGenerator::Configure ( const char *  option = ""  )  [pure virtual]

Configure the generator from a text string.

Public interface:- Each generator that inherits from this interface must supply the following methods:

Implemented in FluxGen_OneOverE.

Referenced by EvtKinNuModule::BeginJob().

virtual Double_t FluxGenerator::GetMaxEnergy (  )  const [pure virtual]

Report the maximum energy that will be returned.

Implemented in FluxGen_OneOverE.

virtual TParticle FluxGenerator::GetParticle (  )  const [pure virtual]

Return a new particle. Users must be aware that the particle might be weighted (see TParticle::GetWeight()).

Implemented in FluxGen_OneOverE.

Referenced by NuTransport::GenerateEvent().

virtual std::vector<int> FluxGenerator::GetParticleList (  )  const [pure virtual]

Report the list of potential particles that might be returned.

Implemented in FluxGen_OneOverE.

double FluxGenerator::GetPOTs (  )  const [inline]

Each generator (where relevant) must return the POTs.

Concrete methods common to all FluxGenerator class This means this is file is not strictly an ABC

Definition at line 54 of file FluxGenerator.h.

References fAccumPOTs.

00054 { return fAccumPOTs; }  // logical const


Member Data Documentation

double FluxGenerator::fAccumPOTs [mutable, private]

Make these mutable so the calls can be made on a const obj.

Definition at line 64 of file FluxGenerator.h.

Referenced by ClearPOTs(), and GetPOTs().


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

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1