Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4NtupleBooking Struct Reference

#include <G4NtupleBookingManager.hh>

Public Member Functions

 G4NtupleBooking ()=default
 
 ~G4NtupleBooking ()=default
 
void SetDeleted (G4bool deleted, G4bool keepSetting)
 
G4bool GetDeleted () const
 
void Reset ()
 

Public Attributes

tools::ntuple_booking fNtupleBooking
 
G4int fNtupleId { G4Analysis::kInvalidId }
 
G4String fFileName
 
G4bool fActivation { true }
 
std::pair< G4bool, G4boolfDeleted { false, false }
 

Detailed Description

Definition at line 44 of file G4NtupleBookingManager.hh.

Constructor & Destructor Documentation

◆ G4NtupleBooking()

G4NtupleBooking::G4NtupleBooking ( )
default

◆ ~G4NtupleBooking()

G4NtupleBooking::~G4NtupleBooking ( )
default

Member Function Documentation

◆ GetDeleted()

G4bool G4NtupleBooking::GetDeleted ( ) const
inline

Definition at line 52 of file G4NtupleBookingManager.hh.

52 {
53 return fDeleted.first;
54 }
std::pair< G4bool, G4bool > fDeleted

◆ Reset()

void G4NtupleBooking::Reset ( )
inline

Definition at line 55 of file G4NtupleBookingManager.hh.

55 {
56 if (! fDeleted.second) {
57 // Reset information unless "keepSetting" option is true
58 fFileName.clear();
59 fActivation = true;
60 }
61 SetDeleted(false, false);
62 }
void SetDeleted(G4bool deleted, G4bool keepSetting)

Referenced by G4NtupleBookingManager::CreateNtuple().

◆ SetDeleted()

void G4NtupleBooking::SetDeleted ( G4bool deleted,
G4bool keepSetting )
inline

Definition at line 49 of file G4NtupleBookingManager.hh.

49 {
50 fDeleted = std::make_pair(deleted, keepSetting);
51 }

Referenced by Reset().

Member Data Documentation

◆ fActivation

G4bool G4NtupleBooking::fActivation { true }

Definition at line 67 of file G4NtupleBookingManager.hh.

67{ true };

Referenced by Reset().

◆ fDeleted

std::pair<G4bool, G4bool> G4NtupleBooking::fDeleted { false, false }

Definition at line 68 of file G4NtupleBookingManager.hh.

68{ false, false };

Referenced by GetDeleted(), Reset(), and SetDeleted().

◆ fFileName

G4String G4NtupleBooking::fFileName

Definition at line 66 of file G4NtupleBookingManager.hh.

Referenced by Reset(), and G4TNtupleDescription< NT, FT >::SetFileName().

◆ fNtupleBooking

tools::ntuple_booking G4NtupleBooking::fNtupleBooking

◆ fNtupleId

G4int G4NtupleBooking::fNtupleId { G4Analysis::kInvalidId }

Definition at line 65 of file G4NtupleBookingManager.hh.

constexpr G4int kInvalidId

Referenced by G4NtupleBookingManager::CreateNtuple().


The documentation for this struct was generated from the following file: