SLAC PEP-II
BABAR
SLAC<->RAL
Babar logo
HEPIC E,S & H Databases PDG HEP preprints
Organization Detector Computing Physics Documentation
Personnel Glossary Sitemap Search Hypernews
Unwrap page!
Simulation Home
Sim Codes
Event Generators
Bogus/BgsApp
SimApp
Bear
Moose
Fast Simulation
Geant4 Home
Subsystems
PEP
SVT
DCH
DRC
EMC
IFR
Mixing/Trigger
Backgrounds
Mixing
Trigger Simulation
MC Truth/QA
MC Truth
Micro/Mini
QA Histograms
Sim Error Reports
REMEDY
MC Production
Production Home
Test Production
Tools
Database
CERNLIB
CLHEP
Event display
RandControl
Scripts
Check this page for HTML 4.01 Transitional compliance with the
W3C Validator
(More checks...)
!
!       bbutil.db
!
!       Database for utility data, eg. error codes.
!       This database is to be processed using dbio, not dbin.
!
!
database bbutil  0100  ! database version number

! New error codes can be defined at runtime via make statements
! in a runutil.db file. (Instantiations read at runtime
! do not have to immediately follow the template definition.)
!
! Instantiations processed at dbio run time (ie. those appearing
! in this file) do need to follow the template definition.

! Severity levels:
!  1 - informational
!  2 - warning
!  3 - severe warning (still continue)
!  4 - error; skip event
!  5 - severe error; terminate

incname bberr

dimension errcmax 200

template errc(errcmax)    ! Error codes
  char name      ! string identifier
  char desc      ! description
  int  sev       ! severity level
end template

! Define standard error codes

! Informational:
define errc "evcnt" "Event count" 1   ! Note new template instantiator, DEFINE
! ...
! Error - skip event:
define errc "div0" "Divide by zero" 4

template errint(errcmax)  ! Auxiliary err code info, internal use only
  int cnt        ! occurrence count
end template

parameter ierr_info  1
parameter ierr_warn  2
parameter ierr_swarn 3
parameter ierr_err   4
parameter ierr_serr  5
parameter ierr_die   5

structure errpars
  char name(5) "Info" "Warn" "SevereWarning" "Error" "SevereError"
end structure

end