#include <G4RootMainNtupleManager.hh>
Definition at line 51 of file G4RootMainNtupleManager.hh.
 
Definition at line 38 of file G4RootMainNtupleManager.cc.
   41    fNtupleBuilder(ntupleBuilder),
 
   42    fNtupleDirectory(
nullptr),
 
G4BaseAnalysisManager(const G4AnalysisManagerState &state)
 
 
 
 
      
        
          | G4RootMainNtupleManager::~G4RootMainNtupleManager  | 
          ( | 
           | ) | 
           | 
        
      
 
 
  
  
      
        
          | void G4RootMainNtupleManager::CreateNtuple  | 
          ( | 
          const tools::ntuple_booking &  | 
          ntupleBooking,  | 
         
        
           | 
           | 
          G4bool  | 
          warn = true  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
protected   | 
  
 
Definition at line 61 of file G4RootMainNtupleManager.cc.
   67   if ( ! fNtupleDirectory ) {
 
   71         << 
"      " << 
"Ntuple file must be defined first."  
   73         << 
"      " << 
"Cannot create main ntuples from builder.";
 
   74         G4Exception(
"G4RootAnalysisManager::CreateNtuplesFromBooking",
 
   83       ->
Message(
"create", 
"main ntuple", ntupleBooking.name());
 
   87   auto ntuple = 
new tools::wroot::ntuple(*fNtupleDirectory, ntupleBooking);
 
   89   auto basketSize = fNtupleBuilder->GetBasketSize();
 
   90   ntuple->set_basket_size(basketSize);
 
   92   fNtupleVector.push_back(ntuple);
 
   97       ->
Message(
"create", 
"main ntuple", ntupleBooking.name());
 
void Message(const G4String &action, const G4String &object, const G4String &objectName, G4bool success=true) const 
 
std::ostringstream G4ExceptionDescription
 
const G4AnalysisVerbose * GetVerboseL3() const 
 
const G4AnalysisVerbose * GetVerboseL4() const 
 
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
 
const G4AnalysisManagerState & fState
 
 
 
 
  
  
      
        
          | void G4RootMainNtupleManager::CreateNtuplesFromBooking  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
Definition at line 102 of file G4RootMainNtupleManager.cc.
  107   if ( ! fNtupleDirectory ) {
 
  110       << 
"      " << 
"Ntuple file must be defined first."  
  112       << 
"      " << 
"Cannot create main ntuples from builder.";
 
  113       G4Exception(
"G4RootAnalysisManager::CreateNtuplesFromBooking",
 
  118   auto& ntupleDescriptionVector 
 
  119     = fNtupleBuilder->GetNtupleDescriptionVector();
 
  121   for ( 
auto ntupleDescription : ntupleDescriptionVector ) {    
 
std::ostringstream G4ExceptionDescription
 
void CreateNtuple(const tools::ntuple_booking &ntupleBooking, G4bool warn=true)
 
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
 
 
 
 
  
  
      
        
          | unsigned int G4RootMainNtupleManager::GetBasketSize  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | tools::wroot::directory * G4RootMainNtupleManager::GetNtupleDirectory  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineprotected   | 
  
 
 
  
  
      
        
          | std::shared_ptr< tools::wroot::file > G4RootMainNtupleManager::GetNtupleFile  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineprotected   | 
  
 
 
  
  
      
        
          | const std::vector<tools::wroot::ntuple*>& G4RootMainNtupleManager::GetNtupleVector  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlineprotected   | 
  
 
 
  
  
      
        
          | G4bool G4RootMainNtupleManager::Merge  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | G4bool G4RootMainNtupleManager::Reset  | 
          ( | 
          G4bool  | 
          deleteNtuple | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
Definition at line 137 of file G4RootMainNtupleManager.cc.
  139   for ( 
auto ntuple : fNtupleVector ) {
 
  140     if ( deleteNtuple ) {
 
  145   fNtupleVector.clear(); 
 
 
 
 
  
  
      
        
          | void G4RootMainNtupleManager::SetNtupleDirectory  | 
          ( | 
          tools::wroot::directory *  | 
          directory | ) | 
           | 
         
       
   | 
  
inlineprotected   | 
  
 
 
  
  
      
        
          | void G4RootMainNtupleManager::SetNtupleFile  | 
          ( | 
          std::shared_ptr< tools::wroot::file >  | 
          rfile | ) | 
           | 
         
       
   | 
  
inlineprotected   | 
  
 
 
The documentation for this class was generated from the following files: