51 fFileMessenger(nullptr),
52 fH1Messenger(nullptr),
53 fH2Messenger(nullptr),
54 fH3Messenger(nullptr),
55 fP1Messenger(nullptr),
56 fP2Messenger(nullptr),
57 fNtupleMessenger(nullptr),
58 fH1HnMessenger(nullptr),
59 fH2HnMessenger(nullptr),
60 fH3HnMessenger(nullptr),
61 fP1HnMessenger(nullptr),
62 fP2HnMessenger(nullptr),
63 fAnalysisDir(nullptr),
64 fSetActivationCmd(nullptr),
66 fCompressionCmd(nullptr)
68 fAnalysisDir = G4Analysis::make_unique<G4UIdirectory>(
"/analysis/");
71 fSetActivationCmd = G4Analysis::make_unique<G4UIcmdWithABool>(
"/analysis/setActivation",
this);
72 G4String guidance =
"Set activation. \n";
73 guidance +=
"When this option is enabled, only the histograms marked as activated\n";
74 guidance +=
"are returned, filled or saved on file.\n";
75 guidance +=
"No warning is issued when Get or Fill is called on inactive histogram.";
79 fVerboseCmd = G4Analysis::make_unique<G4UIcmdWithAnInteger>(
"/analysis/verbose",
this);
81 fVerboseCmd->SetParameterName(
"VerboseLevel",
false);
82 fVerboseCmd->SetRange(
"VerboseLevel>=0 && VerboseLevel<=4");
84 fCompressionCmd = G4Analysis::make_unique<G4UIcmdWithAnInteger>(
"/analysis/compression",
this);
87 fCompressionCmd->SetRange(
"CompressionLevel>=0 && CompressionLevel<=4");
89 fFileMessenger = G4Analysis::make_unique<G4FileMessenger>(manager);
90 fH1Messenger = G4Analysis::make_unique<G4H1Messenger>(manager);
91 fH2Messenger = G4Analysis::make_unique<G4H2Messenger>(manager);
92 fH3Messenger = G4Analysis::make_unique<G4H3Messenger>(manager);
93 fP1Messenger = G4Analysis::make_unique<G4P1Messenger>(manager);
94 fP2Messenger = G4Analysis::make_unique<G4P2Messenger>(manager);
109 fH1HnMessenger = G4Analysis::make_unique<G4HnMessenger>(h1HnManager);
115 fH2HnMessenger = G4Analysis::make_unique<G4HnMessenger>(h2HnManager);
121 fH2HnMessenger = G4Analysis::make_unique<G4HnMessenger>(h2HnManager);
127 fP1HnMessenger = G4Analysis::make_unique<G4HnMessenger>(p1HnManager);
133 fP2HnMessenger = G4Analysis::make_unique<G4HnMessenger>(p2HnManager);
std::unique_ptr< G4HnMessenger > fP1HnMessenger
std::unique_ptr< G4HnMessenger > fH2HnMessenger
void SetCompressionLevel(G4int level)
std::unique_ptr< G4HnMessenger > fH1HnMessenger
std::unique_ptr< G4UIcmdWithABool > fSetActivationCmd
void SetVerboseLevel(G4int verboseLevel)
std::unique_ptr< G4P2Messenger > fP2Messenger
std::unique_ptr< G4HnMessenger > fP2HnMessenger
virtual ~G4AnalysisMessenger()
void SetH3HnManager(G4HnManager &h2HnManager)
std::unique_ptr< G4UIdirectory > fAnalysisDir
std::unique_ptr< G4FileMessenger > fFileMessenger
void SetH1HnManager(G4HnManager &h1HnManager)
virtual void SetNewValue(G4UIcommand *command, G4String value) final
std::unique_ptr< G4P1Messenger > fP1Messenger
void SetActivation(G4bool activation)
std::unique_ptr< G4H1Messenger > fH1Messenger
std::unique_ptr< G4UIcmdWithAnInteger > fCompressionCmd
void SetP2HnManager(G4HnManager &h2HnManager)
std::unique_ptr< G4UIcmdWithAnInteger > fVerboseCmd
G4AnalysisMessenger(G4VAnalysisManager *manager)
void SetP1HnManager(G4HnManager &h1HnManager)
std::unique_ptr< G4H3Messenger > fH3Messenger
G4VAnalysisManager * fManager
Associated class.
std::unique_ptr< G4H2Messenger > fH2Messenger
std::unique_ptr< G4NtupleMessenger > fNtupleMessenger
void SetH2HnManager(G4HnManager &h2HnManager)