Public Member Functions | Private Attributes | Friends | List of all members
genie::exceptions::EVGThreadException Class Reference

An exception thrown by EventRecordVisitorI when the normal processing sequence has to be disrupted (fast-fwd at the end or step-back) More...

#include "/cvmfs/nova.opensciencegrid.org/externals/genie/v3_00_06_p01/Linux64bit+2.6-2.12-e17-debug/GENIE-Generator/src/Framework/EventGen/EVGThreadException.h"

Public Member Functions

 EVGThreadException ()
 
 EVGThreadException (const EVGThreadException &exception)
 
 ~EVGThreadException ()
 
void SetReason (string reason)
 
void SwitchOnFastForward (void)
 
void SwitchOnStepBack (void)
 
void SetReturnStep (int s)
 
string ShowReason (void) const
 
bool FastForward (void) const
 
bool StepBack (void) const
 
int ReturnStep (void) const
 
void Init (void)
 
void Copy (const EVGThreadException &exception)
 
void Print (ostream &stream) const
 

Private Attributes

bool fFastFwd
 
bool fStepBack
 
int fReturnStep
 
string fReason
 

Friends

ostream & operator<< (ostream &stream, const EVGThreadException &exception)
 

Detailed Description

An exception thrown by EventRecordVisitorI when the normal processing sequence has to be disrupted (fast-fwd at the end or step-back)

Author
Costas Andreopoulos <costas.andreopoulos stfc.ac.uk> University of Liverpool & STFC Rutherford Appleton Lab

September 27, 2005

Copyright (c) 2003-2019, The GENIE Collaboration For the full text of the license visit http://copyright.genie-mc.org or see $GENIE/LICENSE

Definition at line 36 of file EVGThreadException.h.

Constructor & Destructor Documentation

EVGThreadException::EVGThreadException ( )

Definition at line 34 of file EVGThreadException.cxx.

References Init().

35 {
36  this->Init();
37 }
EVGThreadException::EVGThreadException ( const EVGThreadException exception)

Definition at line 39 of file EVGThreadException.cxx.

40 {
41  this->Copy(exc);
42 }
void Copy(const EVGThreadException &exception)
EVGThreadException::~EVGThreadException ( )

Definition at line 44 of file EVGThreadException.cxx.

45 {
46 
47 }

Member Function Documentation

void EVGThreadException::Copy ( const EVGThreadException exception)

Definition at line 57 of file EVGThreadException.cxx.

References fFastFwd, fReason, fReturnStep, and fStepBack.

Referenced by ReturnStep().

bool genie::exceptions::EVGThreadException::FastForward ( void  ) const
inline

Definition at line 50 of file EVGThreadException.h.

References fFastFwd.

Referenced by genie::EventGenerator::ProcessEventRecord().

void EVGThreadException::Init ( void  )
void EVGThreadException::Print ( ostream &  stream) const

Definition at line 65 of file EVGThreadException.cxx.

References allTimeWatchdog::endl.

Referenced by genie::exceptions::operator<<(), and ReturnStep().

66 {
67  stream << "**EXCEPTION Reason: " << this->ShowReason() << endl;
68 }
int genie::exceptions::EVGThreadException::ReturnStep ( void  ) const
inline
void genie::exceptions::EVGThreadException::SetReason ( string  reason)
inline

Definition at line 44 of file EVGThreadException.h.

References fReason.

Referenced by genie::DISHadronicSystemGenerator::AddFragmentationProducts(), genie::NucleonDecayPrimaryVtxGenerator::AddInitialState(), genie::SKHadronicSystemGenerator::CalculateHadronicSystem_AtharSingleKaon(), genie::SKKinematicsGenerator::CalculateKin_AtharSingleKaon(), genie::MECGenerator::DecayNucleonCluster(), genie::NucleonDecayPrimaryVtxGenerator::GenerateDecayedNucleonPosition(), genie::NucleonDecayPrimaryVtxGenerator::GenerateDecayProducts(), genie::NNBarOscPrimaryVtxGenerator::GenerateDecayProducts(), genie::MECGenerator::GenerateNSVInitialHadrons(), genie::NNBarOscPrimaryVtxGenerator::GenerateOscillatingNeutronPosition(), genie::VertexGenerator::GenerateVertex(), genie::FermiMover::KickHitNucleon(), genie::QELEventGeneratorSM::MaxDiffv(), genie::KineGeneratorWithCache::MaxXSec(), genie::QELEventGeneratorSM::MaxXSec2(), genie::DFRHadronicSystemGenerator::ProcessEventRecord(), genie::DISPrimaryLeptonGenerator::ProcessEventRecord(), genie::DFRPrimaryLeptonGenerator::ProcessEventRecord(), genie::SKPrimaryLeptonGenerator::ProcessEventRecord(), genie::NuEKinematicsGenerator::ProcessEventRecord(), genie::DFRKinematicsGenerator::ProcessEventRecord(), genie::DMDISOutgoingDarkGenerator::ProcessEventRecord(), genie::QELKinematicsGenerator::ProcessEventRecord(), genie::COHElKinematicsGenerator::ProcessEventRecord(), genie::RESKinematicsGenerator::ProcessEventRecord(), genie::DMELKinematicsGenerator::ProcessEventRecord(), genie::IBDKinematicsGenerator::ProcessEventRecord(), genie::DISKinematicsGenerator::ProcessEventRecord(), genie::QELEventGenerator::ProcessEventRecord(), genie::DMDISKinematicsGenerator::ProcessEventRecord(), genie::PauliBlocker::ProcessEventRecord(), genie::BaryonResonanceDecayer::ProcessEventRecord(), genie::QELEventGeneratorSM::ProcessEventRecord(), genie::MECGenerator::SelectEmpiricalKinematics(), genie::MECGenerator::SelectNSVLeptonKinematics(), genie::QELKinematicsGenerator::SpectralFuncExperimentalCode(), genie::DMELKinematicsGenerator::SpectralFuncExperimentalCode(), and genie::COHKinematicsGenerator::throwOnTooManyIterations().

void genie::exceptions::EVGThreadException::SetReturnStep ( int  s)
inline
string genie::exceptions::EVGThreadException::ShowReason ( void  ) const
inline

Definition at line 49 of file EVGThreadException.h.

References fReason.

bool genie::exceptions::EVGThreadException::StepBack ( void  ) const
inline

Definition at line 51 of file EVGThreadException.h.

References fStepBack.

Referenced by genie::EventGenerator::ProcessEventRecord().

void genie::exceptions::EVGThreadException::SwitchOnFastForward ( void  )
inline

Definition at line 45 of file EVGThreadException.h.

References fFastFwd.

Referenced by genie::DISHadronicSystemGenerator::AddFragmentationProducts(), genie::NucleonDecayPrimaryVtxGenerator::AddInitialState(), genie::SKKinematicsGenerator::CalculateKin_AtharSingleKaon(), genie::NucleonDecayPrimaryVtxGenerator::GenerateDecayedNucleonPosition(), genie::NucleonDecayPrimaryVtxGenerator::GenerateDecayProducts(), genie::NNBarOscPrimaryVtxGenerator::GenerateDecayProducts(), genie::MECGenerator::GenerateNSVInitialHadrons(), genie::NNBarOscPrimaryVtxGenerator::GenerateOscillatingNeutronPosition(), genie::VertexGenerator::GenerateVertex(), genie::FermiMover::KickHitNucleon(), genie::QELEventGeneratorSM::MaxDiffv(), genie::KineGeneratorWithCache::MaxXSec(), genie::QELEventGeneratorSM::MaxXSec2(), genie::DISPrimaryLeptonGenerator::ProcessEventRecord(), genie::DFRPrimaryLeptonGenerator::ProcessEventRecord(), genie::SKPrimaryLeptonGenerator::ProcessEventRecord(), genie::DFRKinematicsGenerator::ProcessEventRecord(), genie::NuEKinematicsGenerator::ProcessEventRecord(), genie::COHElKinematicsGenerator::ProcessEventRecord(), genie::DMDISOutgoingDarkGenerator::ProcessEventRecord(), genie::QELKinematicsGenerator::ProcessEventRecord(), genie::RESKinematicsGenerator::ProcessEventRecord(), genie::DMELKinematicsGenerator::ProcessEventRecord(), genie::IBDKinematicsGenerator::ProcessEventRecord(), genie::DISKinematicsGenerator::ProcessEventRecord(), genie::QELEventGenerator::ProcessEventRecord(), genie::DMDISKinematicsGenerator::ProcessEventRecord(), genie::BaryonResonanceDecayer::ProcessEventRecord(), genie::PauliBlocker::ProcessEventRecord(), genie::QELEventGeneratorSM::ProcessEventRecord(), genie::MECGenerator::SelectEmpiricalKinematics(), genie::MECGenerator::SelectNSVLeptonKinematics(), genie::QELKinematicsGenerator::SpectralFuncExperimentalCode(), genie::DMELKinematicsGenerator::SpectralFuncExperimentalCode(), and genie::COHKinematicsGenerator::throwOnTooManyIterations().

void genie::exceptions::EVGThreadException::SwitchOnStepBack ( void  )
inline

Friends And Related Function Documentation

ostream& operator<< ( ostream &  stream,
const EVGThreadException exception 
)
friend

Definition at line 26 of file EVGThreadException.cxx.

Referenced by ReturnStep().

27  {
28  exc.Print(stream);
29  return stream;
30  }

Member Data Documentation

bool genie::exceptions::EVGThreadException::fFastFwd
private

Definition at line 63 of file EVGThreadException.h.

Referenced by Copy(), FastForward(), and SwitchOnFastForward().

string genie::exceptions::EVGThreadException::fReason
private

Definition at line 66 of file EVGThreadException.h.

Referenced by Copy(), SetReason(), and ShowReason().

int genie::exceptions::EVGThreadException::fReturnStep
private

Definition at line 65 of file EVGThreadException.h.

Referenced by Copy(), ReturnStep(), and SetReturnStep().

bool genie::exceptions::EVGThreadException::fStepBack
private

Definition at line 64 of file EVGThreadException.h.

Referenced by Copy(), StepBack(), and SwitchOnStepBack().


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