dbselect
Loading...
Searching...
No Matches
test_reload_sequence.cc File Reference

Exercises reload_geometry → BeamOn → reload_geometry → BeamOn without the GUI. More...

#include "dbselect_options.h"
#include "gdetectorConstruction.h"
#include "gsd.h"
#include "gsystemConventions.h"
#include "G4RunManagerFactory.hh"
#include "G4VUserPrimaryGeneratorAction.hh"
#include "G4VUserActionInitialization.hh"
#include "G4UserEventAction.hh"
#include "G4ParticleGun.hh"
#include "G4ParticleTable.hh"
#include "G4HCofThisEvent.hh"
#include "G4Event.hh"
#include "G4SystemOfUnits.hh"
#include "QBBC.hh"
#include <atomic>
#include <iostream>
#include <memory>
#include <string>
Include dependency graph for test_reload_sequence.cc:

Go to the source code of this file.

Data Structures

class  PrimaryGenerator
 
class  EventAction
 
class  ActionInit
 

Functions

int main (int argc, char *argv[])
 

Detailed Description

Three-phase sequence: Phase 1: simple_flux → BeamOn(10) — expects flux hits Phase 2: b1 → BeamOn(10) — exercises dosimeter SD setup / teardown Phase 3: simple_flux → BeamOn(10) — expects flux hits again (regression check)

Primary success criterion: no segfault at any phase boundary. Secondary criterion: flux hits > 0 in phases 1 and 3.

Covers the DET1010 / uninitialized-gHitsCollection bug that caused segfaults when switching geometry between runs (stale SD objects reuse / deactivation path).

Definition in file test_reload_sequence.cc.

Function Documentation

◆ main()

int main ( int argc,
char * argv[] )

Definition at line 130 of file test_reload_sequence.cc.