Geant4  10.02.p03
Par02EventInformation Class Reference

#include <Par02EventInformation.hh>

Inheritance diagram for Par02EventInformation:
Collaboration diagram for Par02EventInformation:

Public Member Functions

 Par02EventInformation ()
 A default constructor. Sets flag fDoSmearing to true. More...
 
 Par02EventInformation (G4bool aSmear)
 
virtual ~Par02EventInformation ()
 
virtual void Print () const
 Prints event information. More...
 
void SetDoSmearing (G4bool aSmear)
 
G4bool GetDoSmearing ()
 Gets the flag indicating if smearing should be done. More...
 
- Public Member Functions inherited from G4VUserEventInformation
 G4VUserEventInformation ()
 
virtual ~G4VUserEventInformation ()
 

Private Attributes

G4bool fDoSmearing
 

Detailed Description

Event information.

Describes the information that can be associated with a G4Event class object.

Author
Anna Zaborowska

Definition at line 42 of file Par02EventInformation.hh.

Constructor & Destructor Documentation

◆ Par02EventInformation() [1/2]

Par02EventInformation::Par02EventInformation ( )

A default constructor. Sets flag fDoSmearing to true.

Definition at line 35 of file Par02EventInformation.cc.

35 : fDoSmearing( true ) {}

◆ Par02EventInformation() [2/2]

Par02EventInformation::Par02EventInformation ( G4bool  aSmear)

A constructor.

Parameters
aSmearThe flag indicating if smearing should be done.

Definition at line 39 of file Par02EventInformation.cc.

39 : fDoSmearing( aSmear ) {}

◆ ~Par02EventInformation()

Par02EventInformation::~Par02EventInformation ( )
virtual

Definition at line 43 of file Par02EventInformation.cc.

43 {}

Member Function Documentation

◆ GetDoSmearing()

G4bool Par02EventInformation::GetDoSmearing ( )

Gets the flag indicating if smearing should be done.

Definition at line 53 of file Par02EventInformation.cc.

53  {
54  return fDoSmearing;
55 }
Here is the caller graph for this function:

◆ Print()

void Par02EventInformation::Print ( void  ) const
virtual

Prints event information.

Implements G4VUserEventInformation.

Definition at line 59 of file Par02EventInformation.cc.

59  {
60  G4cout << "Par02EventInformation: " << G4endl
61  << "do smearing: " << fDoSmearing << G4endl;
62 }
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61

◆ SetDoSmearing()

void Par02EventInformation::SetDoSmearing ( G4bool  aSmear)

Sets the flag indicating if smearing should be done.

Parameters
aSmearA boolean flag.

Definition at line 47 of file Par02EventInformation.cc.

47  {
48  fDoSmearing = aSmear;
49 }

Member Data Documentation

◆ fDoSmearing

G4bool Par02EventInformation::fDoSmearing
private

A flag indicating if smearing should be performed. It is read by implementations of G4VFastSimulationModel.

Definition at line 68 of file Par02EventInformation.hh.


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