Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CexmcException.hh File Reference
#include <stdexcept>
#include <G4Types.hh>
Include dependency graph for CexmcException.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CexmcException
 

Enumerations

enum  CexmcExceptionType {
  CexmcUnknownException, CexmcSystemException, CexmcEventActionIsNotInitialized, CexmcCmdLineParseException,
  CexmcPreinitException, CexmcFileCompressException, CexmcReadProjectIncomplete, CexmcProjectExists,
  CexmcCmdIsNotAllowed, CexmcBadAngularRange, CexmcBadThreshold, CexmcBadCalorimeterTriggerAlgorithm,
  CexmcBadOCVetoAlgorithm, CexmcBadOCVetoFraction, CexmcCalorimeterRegionNotInitialized, CexmcCalorimeterGeometryDataNotInitialized,
  CexmcMultipleDetectorRoles, CexmcKinematicsException, CexmcPoorEventData, CexmcIncompatibleGeometry,
  CexmcIncompleteProductionModel, CexmcIncompatibleProductionModel, CexmcBeamAndIncidentParticlesMismatch, CexmcInvalidAngularRange,
  CexmcWeirdException
}
 

Functions

void ThrowExceptionIfProjectIsRead (CexmcExceptionType type, G4bool extraCond=true)
 

Enumeration Type Documentation

Enumerator
CexmcUnknownException 
CexmcSystemException 
CexmcEventActionIsNotInitialized 
CexmcCmdLineParseException 
CexmcPreinitException 
CexmcFileCompressException 
CexmcReadProjectIncomplete 
CexmcProjectExists 
CexmcCmdIsNotAllowed 
CexmcBadAngularRange 
CexmcBadThreshold 
CexmcBadCalorimeterTriggerAlgorithm 
CexmcBadOCVetoAlgorithm 
CexmcBadOCVetoFraction 
CexmcCalorimeterRegionNotInitialized 
CexmcCalorimeterGeometryDataNotInitialized 
CexmcMultipleDetectorRoles 
CexmcKinematicsException 
CexmcPoorEventData 
CexmcIncompatibleGeometry 
CexmcIncompleteProductionModel 
CexmcIncompatibleProductionModel 
CexmcBeamAndIncidentParticlesMismatch 
CexmcInvalidAngularRange 
CexmcWeirdException 

Definition at line 51 of file CexmcException.hh.

52 {
77 #ifdef CEXMC_USE_CUSTOM_FILTER
78  CexmcCFBadSource,
79  CexmcCFParseError,
80  CexmcCFUninitialized,
81  CexmcCFUninitializedVector,
82  CexmcCFUnexpectedContext,
83  CexmcCFUnexpectedFunction,
84  CexmcCFUnexpectedVariable,
85  CexmcCFUnexpectedVariableUsage,
86  CexmcCFUnexpectedVectorIndex,
87 #endif
89 };

Function Documentation

void ThrowExceptionIfProjectIsRead ( CexmcExceptionType  type,
G4bool  extraCond = true 
)

Definition at line 179 of file CexmcException.cc.

181 {
182  CexmcRunManager * runManager( static_cast< CexmcRunManager * >(
184  if ( runManager->ProjectIsRead() && extraCond )
185  throw CexmcException( type );
186 }
static G4RunManager * GetRunManager()
Definition: G4RunManager.cc:79

Here is the call graph for this function:

Here is the caller graph for this function: