Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Structures | Enumerations | Functions
CexmcException.hh File Reference
#include <stdexcept>
#include <G4Types.hh>

Go to the source code of this file.

Data Structures

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.

References G4RunManager::GetRunManager(), and CexmcRunManager::ProjectIsRead().

Referenced by CexmcEnergyDepositDigitizer::AddCrystalResolutionRange(), CexmcProductionModel::ApplyFermiMotion(), CexmcEnergyDepositDigitizer::ApplyFiniteCrystalResolution(), CexmcEnergyDepositDigitizer::ClearCrystalResolutionData(), CexmcParticleGun::SetBeamParticle(), CexmcEnergyDepositDigitizer::SetCalorimeterLeftThreshold(), CexmcEnergyDepositDigitizer::SetCalorimeterRightThreshold(), CexmcEnergyDepositDigitizer::SetCalorimetersThreshold(), CexmcEnergyDepositDigitizer::SetCalorimeterTriggerAlgorithm(), CexmcPrimaryGeneratorAction::SetFwhmDirX(), CexmcPrimaryGeneratorAction::SetFwhmDirY(), CexmcPrimaryGeneratorAction::SetFwhmMomentumAmp(), CexmcPrimaryGeneratorAction::SetFwhmPosX(), CexmcPrimaryGeneratorAction::SetFwhmPosY(), CexmcEnergyDepositDigitizer::SetMonitorThreshold(), CexmcParticleGun::SetOrigDirection(), CexmcParticleGun::SetOrigMomentumAmp(), CexmcParticleGun::SetOrigPosition(), CexmcEnergyDepositDigitizer::SetOuterCrystalsVetoAlgorithm(), CexmcEnergyDepositDigitizer::SetOuterCrystalsVetoFraction(), CexmcEnergyDepositDigitizer::SetVetoCounterLeftThreshold(), CexmcEnergyDepositDigitizer::SetVetoCounterRightThreshold(), and CexmcEnergyDepositDigitizer::SetVetoCountersThreshold().

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