Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4P1ToolsManager Class Reference

#include <G4P1ToolsManager.hh>

+ Inheritance diagram for G4P1ToolsManager:

Public Member Functions

 G4P1ToolsManager (const G4AnalysisManagerState &state)
 
virtual ~G4P1ToolsManager ()
 
G4int AddP1 (const G4String &name, tools::histo::p1d *p1d)
 
void AddP1Vector (const std::vector< tools::histo::p1d * > &p1Vector)
 
tools::histo::p1d * GetP1 (G4int id, G4bool warn=true, G4bool onlyIfActive=true) const
 
std::vector< tools::histo::p1d * >::iterator BeginP1 ()
 
std::vector< tools::histo::p1d * >::iterator EndP1 ()
 
std::vector< tools::histo::p1d * >::const_iterator BeginConstP1 () const
 
std::vector< tools::histo::p1d * >::const_iterator EndConstP1 () const
 
const std::vector< tools::histo::p1d * > & GetP1Vector () const
 
const std::vector< G4HnInformation * > & GetHnVector () const
 
- Public Member Functions inherited from G4VP1Manager
 G4VP1Manager ()
 
virtual ~G4VP1Manager ()
 
 G4VP1Manager (const G4VP1Manager &rhs)=delete
 
G4VP1Manageroperator= (const G4VP1Manager &rhs)=delete
 
- Public Member Functions inherited from G4THnManager< tools::histo::p1d >
 G4THnManager (const G4AnalysisManagerState &state, const G4String &hnType)
 
virtual ~G4THnManager ()
 
G4bool Reset ()
 
G4bool IsEmpty () const
 
void AddTVector (const std::vector< tools::histo::p1d * > &tVector)
 
void Merge (G4Mutex &mergeMutex, G4THnManager< tools::histo::p1d > *masterInstance)
 

Protected Member Functions

virtual G4int CreateP1 (const G4String &name, const G4String &title, G4int nbins, G4double xmin, G4double xmax, G4double ymin=0, G4double ymax=0, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none", const G4String &xbinScheme="linear") final
 
virtual G4int CreateP1 (const G4String &name, const G4String &title, const std::vector< G4double > &edges, G4double ymin=0, G4double ymax=0, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none") final
 
virtual G4bool SetP1 (G4int id, G4int nbins, G4double xmin, G4double xmax, G4double ymin=0, G4double ymax=0, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none", const G4String &xbinScheme="linear") final
 
virtual G4bool SetP1 (G4int id, const std::vector< G4double > &edges, G4double ymin=0, G4double ymax=0, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none") final
 
virtual G4bool ScaleP1 (G4int id, G4double factor) final
 
virtual G4bool FillP1 (G4int id, G4double xvalue, G4double yvalue, G4double weight=1.0) final
 
virtual G4int GetP1Id (const G4String &name, G4bool warn=true) const final
 
virtual G4int GetP1Nbins (G4int id) const final
 
virtual G4double GetP1Xmin (G4int id) const final
 
virtual G4double GetP1Xmax (G4int id) const final
 
virtual G4double GetP1XWidth (G4int id) const final
 
virtual G4double GetP1Ymin (G4int id) const final
 
virtual G4double GetP1Ymax (G4int id) const final
 
virtual G4bool SetP1Title (G4int id, const G4String &title) final
 
virtual G4bool SetP1XAxisTitle (G4int id, const G4String &title) final
 
virtual G4bool SetP1YAxisTitle (G4int id, const G4String &title) final
 
virtual G4String GetP1Title (G4int id) const final
 
virtual G4String GetP1XAxisTitle (G4int id) const final
 
virtual G4String GetP1YAxisTitle (G4int id) const final
 
virtual std::shared_ptr< G4HnManagerGetHnManager () final
 
virtual G4int CreateP1 (const G4String &name, const G4String &title, G4int nbins, G4double xmin, G4double xmax, G4double ymin=0, G4double ymax=0, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none", const G4String &xbinScheme="linear")=0
 
virtual G4int CreateP1 (const G4String &name, const G4String &title, const std::vector< G4double > &edges, G4double ymin=0, G4double ymax=0, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none")=0
 
virtual G4bool SetP1 (G4int id, G4int nbins, G4double xmin, G4double xmax, G4double ymin=0, G4double ymax=0, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none", const G4String &xbinScheme="linear")=0
 
virtual G4bool SetP1 (G4int id, const std::vector< G4double > &edges, G4double ymin=0, G4double ymax=0, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none")=0
 
virtual G4bool ScaleP1 (G4int id, G4double factor)=0
 
virtual G4bool FillP1 (G4int id, G4double xvalue, G4double yvalue, G4double weight=1.0)=0
 
virtual G4int GetP1Id (const G4String &name, G4bool warn=true) const =0
 
virtual G4int GetP1Nbins (G4int id) const =0
 
virtual G4double GetP1Xmin (G4int id) const =0
 
virtual G4double GetP1Xmax (G4int id) const =0
 
virtual G4double GetP1XWidth (G4int id) const =0
 
virtual G4double GetP1Ymin (G4int id) const =0
 
virtual G4double GetP1Ymax (G4int id) const =0
 
virtual G4bool SetP1Title (G4int id, const G4String &title)=0
 
virtual G4bool SetP1XAxisTitle (G4int id, const G4String &title)=0
 
virtual G4bool SetP1YAxisTitle (G4int id, const G4String &title)=0
 
virtual G4String GetP1Title (G4int id) const =0
 
virtual G4String GetP1XAxisTitle (G4int id) const =0
 
virtual G4String GetP1YAxisTitle (G4int id) const =0
 
virtual std::shared_ptr< G4HnManagerGetHnManager ()=0
 
- Protected Member Functions inherited from G4THnManager< tools::histo::p1d >
std::vector< tools::histo::p1d * >::iterator BeginT ()
 
std::vector< tools::histo::p1d * >::iterator EndT ()
 
std::vector< tools::histo::p1d * >::const_iterator BeginConstT () const
 
std::vector< tools::histo::p1d * >::const_iterator EndConstT () const
 
tools::histo::p1d * GetTInFunction (G4int id, G4String functionName, G4bool warn=true, G4bool onlyIfActive=true) const
 
G4int RegisterT (tools::histo::p1d *t, const G4String &name)
 
G4int GetTId (const G4String &name, G4bool warn=true) const
 

Additional Inherited Members

- Protected Attributes inherited from G4THnManager< tools::histo::p1d >
const G4AnalysisManagerStatefState
 
std::vector< tools::histo::p1d * > fTVector
 
std::map< G4String, G4intfNameIdMap
 
std::shared_ptr< G4HnManagerfHnManager
 

Detailed Description

Definition at line 52 of file G4P1ToolsManager.hh.

Constructor & Destructor Documentation

◆ G4P1ToolsManager()

G4P1ToolsManager::G4P1ToolsManager ( const G4AnalysisManagerState state)
explicit

Definition at line 48 of file G4P1ToolsManager.cc.

◆ ~G4P1ToolsManager()

G4P1ToolsManager::~G4P1ToolsManager ( )
virtual

Definition at line 54 of file G4P1ToolsManager.cc.

55{}

Member Function Documentation

◆ AddP1()

G4int G4P1ToolsManager::AddP1 ( const G4String name,
tools::histo::p1d *  p1d 
)

Definition at line 557 of file G4P1ToolsManager.cc.

558{
559#ifdef G4VERBOSE
560 if ( fState.GetVerboseL4() )
561 fState.GetVerboseL4()->Message("add", "P1", name);
562#endif
563
564 // Add annotation
565 AddP1Annotation(p1d, "none", "none", "none", "none");
566 // Add information
567 AddP1Information(name, "none", "none", "none", "none", G4BinScheme::kLinear);
568
569 // Register profile
570 auto id = RegisterT(p1d, name);
571
572#ifdef G4VERBOSE
573 if ( fState.GetVerboseL2() )
574 fState.GetVerboseL2()->Message("add", "P1", name);
575#endif
576 return id;
577}
const G4AnalysisVerbose * GetVerboseL2() const
const G4AnalysisVerbose * GetVerboseL4() const
void Message(const G4String &action, const G4String &object, const G4String &objectName, G4bool success=true) const
const G4AnalysisManagerState & fState
Definition: G4THnManager.hh:82
G4int RegisterT(tools::histo::p1d *t, const G4String &name)

Referenced by G4XmlAnalysisReader::ReadP1Impl(), G4CsvAnalysisReader::ReadP1Impl(), G4Hdf5AnalysisReader::ReadP1Impl(), and G4RootAnalysisReader::ReadP1Impl().

◆ AddP1Vector()

void G4P1ToolsManager::AddP1Vector ( const std::vector< tools::histo::p1d * > &  p1Vector)

Definition at line 580 of file G4P1ToolsManager.cc.

582{
583 AddTVector(p1Vector);
584}
void AddTVector(const std::vector< tools::histo::p1d * > &tVector)

◆ BeginConstP1()

std::vector< tools::histo::p1d * >::const_iterator G4P1ToolsManager::BeginConstP1 ( ) const
inline

Definition at line 178 of file G4P1ToolsManager.hh.

179{ return BeginConstT(); }
std::vector< tools::histo::p1d * >::const_iterator BeginConstT() const

◆ BeginP1()

std::vector< tools::histo::p1d * >::iterator G4P1ToolsManager::BeginP1 ( )
inline

Definition at line 171 of file G4P1ToolsManager.hh.

172{ return BeginT(); }
std::vector< tools::histo::p1d * >::iterator BeginT()

◆ CreateP1() [1/2]

G4int G4P1ToolsManager::CreateP1 ( const G4String name,
const G4String title,
const std::vector< G4double > &  edges,
G4double  ymin = 0,
G4double  ymax = 0,
const G4String xunitName = "none",
const G4String yunitName = "none",
const G4String xfcnName = "none",
const G4String yfcnName = "none" 
)
finalprotectedvirtual

Implements G4VP1Manager.

Definition at line 288 of file G4P1ToolsManager.cc.

293{
294#ifdef G4VERBOSE
295 if ( fState.GetVerboseL4() )
296 fState.GetVerboseL4()->Message("create", "P1", name);
297#endif
298 tools::histo::p1d* p1d
299 = CreateToolsP1(title, edges, ymin, ymax,
300 xunitName, yunitName, xfcnName, yfcnName);
301
302 // Add annotation
303 AddP1Annotation(p1d, xunitName, yunitName, xfcnName, yfcnName);
304
305 // Save P1 information
306 AddP1Information(
307 name, xunitName, yunitName, xfcnName, yfcnName, G4BinScheme::kUser);
308
309 // Register profile
310 G4int id = RegisterT(p1d, name);
311
312#ifdef G4VERBOSE
313 if ( fState.GetVerboseL2() )
314 fState.GetVerboseL2()->Message("create", "P1", name);
315#endif
316 return id;
317}
int G4int
Definition: G4Types.hh:85

◆ CreateP1() [2/2]

G4int G4P1ToolsManager::CreateP1 ( const G4String name,
const G4String title,
G4int  nbins,
G4double  xmin,
G4double  xmax,
G4double  ymin = 0,
G4double  ymax = 0,
const G4String xunitName = "none",
const G4String yunitName = "none",
const G4String xfcnName = "none",
const G4String yfcnName = "none",
const G4String xbinScheme = "linear" 
)
finalprotectedvirtual

Implements G4VP1Manager.

Definition at line 253 of file G4P1ToolsManager.cc.

259{
260#ifdef G4VERBOSE
261 if ( fState.GetVerboseL4() )
262 fState.GetVerboseL4()->Message("create", "P1", name);
263#endif
264 tools::histo::p1d* p1d
265 = CreateToolsP1(title, nbins, xmin, xmax, ymin, ymax,
266 xunitName, yunitName, xfcnName, yfcnName,
267 xbinSchemeName);
268
269 // Add annotation
270 AddP1Annotation(p1d, xunitName, yunitName, xfcnName, yfcnName);
271
272 // Save P1 information
273 auto xbinScheme = GetBinScheme(xbinSchemeName);
274 AddP1Information(
275 name, xunitName, yunitName, xfcnName, yfcnName, xbinScheme);
276
277 // Register profile
278 G4int id = RegisterT(p1d, name);
279
280#ifdef G4VERBOSE
281 if ( fState.GetVerboseL2() )
282 fState.GetVerboseL2()->Message("create", "P1", name);
283#endif
284 return id;
285}
G4BinScheme GetBinScheme(const G4String &binSchemeName)
Definition: G4BinScheme.cc:35

◆ EndConstP1()

std::vector< tools::histo::p1d * >::const_iterator G4P1ToolsManager::EndConstP1 ( ) const
inline

Definition at line 182 of file G4P1ToolsManager.hh.

183{ return EndConstT(); }
std::vector< tools::histo::p1d * >::const_iterator EndConstT() const

◆ EndP1()

std::vector< tools::histo::p1d * >::iterator G4P1ToolsManager::EndP1 ( )
inline

Definition at line 174 of file G4P1ToolsManager.hh.

175{ return EndT(); }
std::vector< tools::histo::p1d * >::iterator EndT()

◆ FillP1()

G4bool G4P1ToolsManager::FillP1 ( G4int  id,
G4double  xvalue,
G4double  yvalue,
G4double  weight = 1.0 
)
finalprotectedvirtual

Implements G4VP1Manager.

Definition at line 399 of file G4P1ToolsManager.cc.

401{
402 auto p1d = GetTInFunction(id, "FillP1", true, false);
403 if ( ! p1d ) return false;
404
405 if ( fState.GetIsActivation() && ( ! fHnManager->GetActivation(id) ) ) {
406 //G4cout << "Skipping FillP1 for " << id << G4endl;
407 return false;
408 }
409
410 auto xInfo
411 = fHnManager->GetHnDimensionInformation(id, kX, "FillP1");
412 auto yInfo
413 = fHnManager->GetHnDimensionInformation(id, kY, "FillP1");
414
415 p1d->fill(xInfo->fFcn(xvalue/xInfo->fUnit),
416 yInfo->fFcn(yvalue/yInfo->fUnit), weight);
417
418#ifdef G4VERBOSE
419 if ( fState.GetVerboseL4() ) {
420 G4ExceptionDescription description;
421 description << " id " << id
422 << " xvalue " << xvalue
423 << " xfcn(xvalue/xunit) " << xInfo->fFcn(xvalue/xInfo->fUnit)
424 << " yvalue " << yvalue
425 << " yfcn(yvalue/yunit) " << yInfo->fFcn(yvalue/yInfo->fUnit)
426 << " weight " << weight;
427 fState.GetVerboseL4()->Message("fill", "P1", description);
428 }
429#endif
430 return true;
431}
std::ostringstream G4ExceptionDescription
Definition: G4Exception.hh:40
std::shared_ptr< G4HnManager > fHnManager
Definition: G4THnManager.hh:85
tools::histo::p1d * GetTInFunction(G4int id, G4String functionName, G4bool warn=true, G4bool onlyIfActive=true) const
const G4int kY
const G4int kX

◆ GetHnManager()

std::shared_ptr< G4HnManager > G4P1ToolsManager::GetHnManager ( )
inlinefinalprotectedvirtual

Implements G4VP1Manager.

Definition at line 191 of file G4P1ToolsManager.hh.

192{ return std::shared_ptr<G4HnManager>(fHnManager); }

◆ GetHnVector()

const std::vector< G4HnInformation * > & G4P1ToolsManager::GetHnVector ( ) const
inline

◆ GetP1()

tools::histo::p1d * G4P1ToolsManager::GetP1 ( G4int  id,
G4bool  warn = true,
G4bool  onlyIfActive = true 
) const

Definition at line 587 of file G4P1ToolsManager.cc.

589{
590 return GetTInFunction(id, "GetP1", warn, onlyIfActive);
591}

◆ GetP1Id()

G4int G4P1ToolsManager::GetP1Id ( const G4String name,
G4bool  warn = true 
) const
finalprotectedvirtual

Implements G4VP1Manager.

Definition at line 434 of file G4P1ToolsManager.cc.

435{
436 return GetTId(name, warn);
437}
G4int GetTId(const G4String &name, G4bool warn=true) const

◆ GetP1Nbins()

G4int G4P1ToolsManager::GetP1Nbins ( G4int  id) const
finalprotectedvirtual

Implements G4VP1Manager.

Definition at line 440 of file G4P1ToolsManager.cc.

441{
442 auto p1d = GetTInFunction(id, "GetP1Nbins");
443 if ( ! p1d ) return 0;
444
445 return GetNbins(*p1d, kX);
446}
G4int GetNbins(const G4ToolsBaseHisto &baseHisto, G4int dimension)

◆ GetP1Title()

G4String G4P1ToolsManager::GetP1Title ( G4int  id) const
finalprotectedvirtual

Implements G4VP1Manager.

Definition at line 525 of file G4P1ToolsManager.cc.

526{
527 auto p1d = GetTInFunction(id, "GetP1Title");
528 if ( ! p1d ) return "";
529
530 return GetTitle(*p1d);
531}
G4String GetTitle(const G4ToolsBaseHisto &baseHisto)

◆ GetP1Vector()

const std::vector< tools::histo::p1d * > & G4P1ToolsManager::GetP1Vector ( ) const
inline

◆ GetP1XAxisTitle()

G4String G4P1ToolsManager::GetP1XAxisTitle ( G4int  id) const
finalprotectedvirtual

Implements G4VP1Manager.

Definition at line 535 of file G4P1ToolsManager.cc.

536{
537 auto p1d = GetTInFunction(id, "GetP1XAxisTitle");
538 if ( ! p1d ) return "";
539
540 return GetAxisTitle(*p1d, kX, fHnManager->GetHnType());
541}
G4String GetAxisTitle(const G4ToolsBaseHisto &baseHisto, G4int dimension, const G4String &hnType)

◆ GetP1Xmax()

G4double G4P1ToolsManager::GetP1Xmax ( G4int  id) const
finalprotectedvirtual

Implements G4VP1Manager.

Definition at line 460 of file G4P1ToolsManager.cc.

461{
462 auto p1d = GetTInFunction(id, "GetP1Xmax");
463 if ( ! p1d ) return 0.;
464
465 return GetMax(*p1d, kX);
466}
G4double GetMax(const G4ToolsBaseHisto &baseHisto, G4int dimension)

◆ GetP1Xmin()

G4double G4P1ToolsManager::GetP1Xmin ( G4int  id) const
finalprotectedvirtual

Implements G4VP1Manager.

Definition at line 449 of file G4P1ToolsManager.cc.

450{
451// Returns xmin value with applied unit and profile function
452
453 auto p1d = GetTInFunction(id, "GetP1Xmin");
454 if ( ! p1d ) return 0.;
455
456 return GetMin(*p1d, kX);
457}
G4double GetMin(const G4ToolsBaseHisto &baseHisto, G4int dimension)

◆ GetP1XWidth()

G4double G4P1ToolsManager::GetP1XWidth ( G4int  id) const
finalprotectedvirtual

Implements G4VP1Manager.

Definition at line 469 of file G4P1ToolsManager.cc.

470{
471 auto p1d = GetTInFunction(id, "GetP1XWidth", true, false);
472 if ( ! p1d ) return 0.;
473
474 return GetWidth(*p1d, kX, fHnManager->GetHnType());
475}
G4double GetWidth(const G4ToolsBaseHisto &baseHisto, G4int dimension, const G4String &hnType)

◆ GetP1YAxisTitle()

G4String G4P1ToolsManager::GetP1YAxisTitle ( G4int  id) const
finalprotectedvirtual

Implements G4VP1Manager.

Definition at line 544 of file G4P1ToolsManager.cc.

545{
546 auto p1d = GetTInFunction(id, "GetP1YAxisTitle");
547 if ( ! p1d ) return "";
548
549 return GetAxisTitle(*p1d, kY, fHnManager->GetHnType());
550}

◆ GetP1Ymax()

G4double G4P1ToolsManager::GetP1Ymax ( G4int  id) const
finalprotectedvirtual

Implements G4VP1Manager.

Definition at line 489 of file G4P1ToolsManager.cc.

490{
491 auto p1d = GetTInFunction(id, "GetP1Ymax");
492 if ( ! p1d ) return 0.;
493
494 return p1d->max_v();
495}

◆ GetP1Ymin()

G4double G4P1ToolsManager::GetP1Ymin ( G4int  id) const
finalprotectedvirtual

Implements G4VP1Manager.

Definition at line 478 of file G4P1ToolsManager.cc.

479{
480// Returns xmin value with applied unit and profile function
481
482 auto p1d = GetTInFunction(id, "GetP1Ymin");
483 if ( ! p1d ) return 0.;
484
485 return p1d->min_v();
486}

◆ ScaleP1()

G4bool G4P1ToolsManager::ScaleP1 ( G4int  id,
G4double  factor 
)
finalprotectedvirtual

Implements G4VP1Manager.

Definition at line 390 of file G4P1ToolsManager.cc.

391{
392 auto p1d = GetTInFunction(id, "ScaleP1", false, false);
393 if ( ! p1d ) return false;
394
395 return p1d->scale(factor);
396}

◆ SetP1() [1/2]

G4bool G4P1ToolsManager::SetP1 ( G4int  id,
const std::vector< G4double > &  edges,
G4double  ymin = 0,
G4double  ymax = 0,
const G4String xunitName = "none",
const G4String yunitName = "none",
const G4String xfcnName = "none",
const G4String yfcnName = "none" 
)
finalprotectedvirtual

Implements G4VP1Manager.

Definition at line 356 of file G4P1ToolsManager.cc.

361{
362 auto p1d = GetTInFunction(id, "SetP1", false, false);
363 if ( ! p1d ) return false;
364
365 auto info = fHnManager->GetHnInformation(id,"SetP1");
366#ifdef G4VERBOSE
367 if ( fState.GetVerboseL4() )
368 fState.GetVerboseL4()->Message("configure", "P1", info->GetName());
369#endif
370
371 // Configure tools p1
372 ConfigureToolsP1(p1d, edges, ymin, ymax,
373 xunitName, yunitName, xfcnName, yfcnName);
374
375 // Add annotation
376 AddP1Annotation(p1d, xunitName, yunitName, xfcnName, yfcnName);
377
378 // Update information
379 UpdateP1Information(
380 info, xunitName, yunitName, xfcnName, yfcnName, G4BinScheme::kUser);
381
382 // Set activation
383 fHnManager->SetActivation(id, true);
384
385 return true;
386}

◆ SetP1() [2/2]

G4bool G4P1ToolsManager::SetP1 ( G4int  id,
G4int  nbins,
G4double  xmin,
G4double  xmax,
G4double  ymin = 0,
G4double  ymax = 0,
const G4String xunitName = "none",
const G4String yunitName = "none",
const G4String xfcnName = "none",
const G4String yfcnName = "none",
const G4String xbinScheme = "linear" 
)
finalprotectedvirtual

Implements G4VP1Manager.

Definition at line 320 of file G4P1ToolsManager.cc.

326{
327 auto p1d = GetTInFunction(id, "SetP1", false, false);
328 if ( ! p1d ) return false;
329
330 auto info = fHnManager->GetHnInformation(id,"SetP1");
331#ifdef G4VERBOSE
332 if ( fState.GetVerboseL4() )
333 fState.GetVerboseL4()->Message("configure", "P1", info->GetName());
334#endif
335
336 // Configure tools p1
337 ConfigureToolsP1(
338 p1d, nbins, xmin, xmax, ymin, ymax,
339 xunitName, yunitName, xfcnName, yfcnName, xbinSchemeName);
340
341 // Add annotation
342 AddP1Annotation(p1d, xunitName, yunitName, xfcnName, yfcnName);
343
344 // Update information
345 auto xbinScheme = GetBinScheme(xbinSchemeName);
346 UpdateP1Information(
347 info, xunitName, yunitName, xfcnName, yfcnName, xbinScheme);
348
349 // Set activation
350 fHnManager->SetActivation(id, true);
351
352 return true;
353}

◆ SetP1Title()

G4bool G4P1ToolsManager::SetP1Title ( G4int  id,
const G4String title 
)
finalprotectedvirtual

Implements G4VP1Manager.

Definition at line 498 of file G4P1ToolsManager.cc.

499{
500 auto p1d = GetTInFunction(id, "SetP1Title");
501 if ( ! p1d ) return false;
502
503 return SetTitle(*p1d, title);
504}
G4bool SetTitle(G4ToolsBaseHisto &baseHisto, const G4String &title)

◆ SetP1XAxisTitle()

G4bool G4P1ToolsManager::SetP1XAxisTitle ( G4int  id,
const G4String title 
)
finalprotectedvirtual

Implements G4VP1Manager.

Definition at line 507 of file G4P1ToolsManager.cc.

508{
509 auto p1d = GetTInFunction(id, "SetP1XAxisTitle");
510 if ( ! p1d ) return false;
511
512 return SetAxisTitle(*p1d, kX, title);
513}
G4bool SetAxisTitle(G4ToolsBaseHisto &baseHisto, G4int dimension, const G4String &title)

◆ SetP1YAxisTitle()

G4bool G4P1ToolsManager::SetP1YAxisTitle ( G4int  id,
const G4String title 
)
finalprotectedvirtual

Implements G4VP1Manager.

Definition at line 516 of file G4P1ToolsManager.cc.

517{
518 auto p1d = GetTInFunction(id, "SetP1YAxisTitle");
519 if ( ! p1d ) return false;
520
521 return SetAxisTitle(*p1d, kY, title);
522}

The documentation for this class was generated from the following files: