GENIEGenerator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 <EVGThreadException.h>

Collaboration diagram for genie::exceptions::EVGThreadException:
Collaboration graph
[legend]

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 <c.andreopoulos cern.ch> University of Liverpool
Created:
September 27, 2005
License:
Copyright (c) 2003-2024, The GENIE Collaboration For the full text of the license visit http://copyright.genie-mc.org

Definition at line 35 of file EVGThreadException.h.

Constructor & Destructor Documentation

EVGThreadException::EVGThreadException ( )

Definition at line 28 of file EVGThreadException.cxx.

References Init().

29 {
30  this->Init();
31 }
EVGThreadException::EVGThreadException ( const EVGThreadException exception)

Definition at line 33 of file EVGThreadException.cxx.

References Copy().

34 {
35  this->Copy(exc);
36 }
void Copy(const EVGThreadException &exception)
EVGThreadException::~EVGThreadException ( )

Definition at line 38 of file EVGThreadException.cxx.

39 {
40 
41 }

Member Function Documentation

void EVGThreadException::Copy ( const EVGThreadException exception)

Definition at line 51 of file EVGThreadException.cxx.

References fFastFwd, fReason, fReturnStep, and fStepBack.

Referenced by EVGThreadException().

52 {
53  fReason = exc.fReason;
54  fFastFwd = exc.fFastFwd;
55  fStepBack = exc.fStepBack;
56  fReturnStep = exc.fReturnStep;
57 }
bool genie::exceptions::EVGThreadException::FastForward ( void  ) const
inline

Definition at line 49 of file EVGThreadException.h.

References fFastFwd.

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

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

Definition at line 59 of file EVGThreadException.cxx.

References ShowReason().

Referenced by genie::exceptions::operator<<().

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

Definition at line 43 of file EVGThreadException.h.

References fReason.

Referenced by genie::NucleonDecayPrimaryVtxGenerator::AddInitialState(), genie::SKHadronicSystemGenerator::CalculateHadronicSystem_AtharSingleKaon(), genie::SKKinematicsGenerator::CalculateKin_AtharSingleKaon(), genie::MECGenerator::DecayNucleonCluster(), genie::NucleonDecayPrimaryVtxGenerator::GenerateDecayedNucleonPosition(), genie::NucleonDecayPrimaryVtxGenerator::GenerateDecayProducts(), genie::NNBarOscPrimaryVtxGenerator::GenerateDecayProducts(), genie::hnl::Decayer::GenerateDecayProducts(), genie::CEvNSEventGenerator::GenerateKinematics(), genie::COHDNuEventGenerator::GenerateKinematics(), genie::MECGenerator::GenerateNSVInitialHadrons(), genie::QELEventGeneratorSuSA::GenerateNucleon(), genie::NNBarOscPrimaryVtxGenerator::GenerateOscillatingNeutronPosition(), genie::VertexGenerator::GenerateVertex(), genie::hnl::FluxCreator::HNLEnergy(), genie::FermiMover::KickHitNucleon(), genie::KineGeneratorWithCache::MaxXSec(), genie::DFRPrimaryLeptonGenerator::ProcessEventRecord(), genie::DISPrimaryLeptonGenerator::ProcessEventRecord(), genie::HELeptonKinematicsGenerator::ProcessEventRecord(), genie::DFRHadronicSystemGenerator::ProcessEventRecord(), genie::DFRKinematicsGenerator::ProcessEventRecord(), genie::NuEKinematicsGenerator::ProcessEventRecord(), genie::SKPrimaryLeptonGenerator::ProcessEventRecord(), genie::QELKinematicsGenerator::ProcessEventRecord(), genie::DMEKinematicsGenerator::ProcessEventRecord(), genie::PythiaBaseHadro2019::ProcessEventRecord(), genie::RESKinematicsGenerator::ProcessEventRecord(), genie::DMDISOutgoingDarkGenerator::ProcessEventRecord(), genie::QELEventGenerator::ProcessEventRecord(), genie::DMELKinematicsGenerator::ProcessEventRecord(), genie::IBDKinematicsGenerator::ProcessEventRecord(), genie::DISKinematicsGenerator::ProcessEventRecord(), genie::HEDISKinematicsGenerator::ProcessEventRecord(), genie::DMELEventGenerator::ProcessEventRecord(), genie::DMDISKinematicsGenerator::ProcessEventRecord(), genie::PauliBlocker::ProcessEventRecord(), genie::BaryonResonanceDecayer::ProcessEventRecord(), genie::LeptoHadronization::ProcessEventRecord(), genie::AGCharm2019::ProcessEventRecord(), genie::QELEventGeneratorSM::ProcessEventRecord(), genie::SPPEventGenerator::ProcessEventRecord(), genie::AGKYLowW2019::ProcessEventRecord(), genie::MECGenerator::SelectEmpiricalKinematics(), genie::QELEventGeneratorSuSA::SelectLeptonKinematics(), genie::MECGenerator::SelectNSVLeptonKinematics(), genie::MECGenerator::SelectSuSALeptonKinematics(), 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 48 of file EVGThreadException.h.

References fReason.

Referenced by Print().

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

Definition at line 50 of file EVGThreadException.h.

References fStepBack.

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

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

Definition at line 44 of file EVGThreadException.h.

References fFastFwd.

Referenced by genie::NucleonDecayPrimaryVtxGenerator::AddInitialState(), genie::SKKinematicsGenerator::CalculateKin_AtharSingleKaon(), genie::NucleonDecayPrimaryVtxGenerator::GenerateDecayedNucleonPosition(), genie::NucleonDecayPrimaryVtxGenerator::GenerateDecayProducts(), genie::NNBarOscPrimaryVtxGenerator::GenerateDecayProducts(), genie::hnl::Decayer::GenerateDecayProducts(), genie::CEvNSEventGenerator::GenerateKinematics(), genie::COHDNuEventGenerator::GenerateKinematics(), genie::MECGenerator::GenerateNSVInitialHadrons(), genie::QELEventGeneratorSuSA::GenerateNucleon(), genie::NNBarOscPrimaryVtxGenerator::GenerateOscillatingNeutronPosition(), genie::VertexGenerator::GenerateVertex(), genie::hnl::FluxCreator::HNLEnergy(), genie::FermiMover::KickHitNucleon(), genie::KineGeneratorWithCache::MaxXSec(), genie::DFRPrimaryLeptonGenerator::ProcessEventRecord(), genie::HELeptonKinematicsGenerator::ProcessEventRecord(), genie::DISPrimaryLeptonGenerator::ProcessEventRecord(), genie::SKPrimaryLeptonGenerator::ProcessEventRecord(), genie::NuEKinematicsGenerator::ProcessEventRecord(), genie::DFRKinematicsGenerator::ProcessEventRecord(), genie::QELKinematicsGenerator::ProcessEventRecord(), genie::DMEKinematicsGenerator::ProcessEventRecord(), genie::PythiaBaseHadro2019::ProcessEventRecord(), genie::DMDISOutgoingDarkGenerator::ProcessEventRecord(), genie::RESKinematicsGenerator::ProcessEventRecord(), genie::QELEventGenerator::ProcessEventRecord(), genie::IBDKinematicsGenerator::ProcessEventRecord(), genie::DMELKinematicsGenerator::ProcessEventRecord(), genie::DISKinematicsGenerator::ProcessEventRecord(), genie::HEDISKinematicsGenerator::ProcessEventRecord(), genie::DMELEventGenerator::ProcessEventRecord(), genie::DMDISKinematicsGenerator::ProcessEventRecord(), genie::PauliBlocker::ProcessEventRecord(), genie::BaryonResonanceDecayer::ProcessEventRecord(), genie::LeptoHadronization::ProcessEventRecord(), genie::AGCharm2019::ProcessEventRecord(), genie::QELEventGeneratorSM::ProcessEventRecord(), genie::SPPEventGenerator::ProcessEventRecord(), genie::AGKYLowW2019::ProcessEventRecord(), genie::MECGenerator::SelectEmpiricalKinematics(), genie::QELEventGeneratorSuSA::SelectLeptonKinematics(), genie::MECGenerator::SelectNSVLeptonKinematics(), genie::MECGenerator::SelectSuSALeptonKinematics(), 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 20 of file EVGThreadException.cxx.

21  {
22  exc.Print(stream);
23  return stream;
24  }

Member Data Documentation

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

Definition at line 62 of file EVGThreadException.h.

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

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

Definition at line 65 of file EVGThreadException.h.

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

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

Definition at line 64 of file EVGThreadException.h.

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

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

Definition at line 63 of file EVGThreadException.h.

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


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