Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
EmAcceptance Class Reference

#include <EmAcceptance.hh>

Public Member Functions

 EmAcceptance ()
 
 ~EmAcceptance ()
 
void BeginOfAcceptance (const G4String &title, G4int stat)
 
void EndOfAcceptance ()
 
void EmAcceptanceGauss (const G4String &title, G4int stat, G4double avr, G4double avr0, G4double rms, G4double limit)
 
 EmAcceptance ()
 
 ~EmAcceptance ()
 
void BeginOfAcceptance (const G4String &title, G4int stat)
 
void EndOfAcceptance ()
 
void EmAcceptanceGauss (const G4String &title, G4int stat, G4double avr, G4double avr0, G4double rms, G4double limit)
 
 EmAcceptance ()
 
 ~EmAcceptance ()
 
void BeginOfAcceptance (const G4String &title, G4int stat)
 
void EndOfAcceptance ()
 
void EmAcceptanceGauss (const G4String &title, G4int stat, G4double avr, G4double avr0, G4double rms, G4double limit)
 

Detailed Description

Definition at line 41 of file TestEm2/include/EmAcceptance.hh.

Constructor & Destructor Documentation

EmAcceptance::EmAcceptance ( )

Definition at line 38 of file TestEm2/src/EmAcceptance.cc.

39  : fIsAccepted(false)
40 {}
EmAcceptance::~EmAcceptance ( )

Definition at line 44 of file TestEm2/src/EmAcceptance.cc.

45 {}
EmAcceptance::EmAcceptance ( )
EmAcceptance::~EmAcceptance ( )
EmAcceptance::EmAcceptance ( )
EmAcceptance::~EmAcceptance ( )

Member Function Documentation

void EmAcceptance::BeginOfAcceptance ( const G4String title,
G4int  stat 
)

Definition at line 49 of file TestEm2/src/EmAcceptance.cc.

References G4cout, and G4endl.

Referenced by Run::ComputeStatistics(), and HistoManager::EndOfRun().

50 {
51  G4cout << G4endl;
52  G4cout << "<<<<ACCEPTANCE>>>> " << stat << " events for " << title << G4endl;
53  fIsAccepted = true;
54 }
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
void EmAcceptance::BeginOfAcceptance ( const G4String title,
G4int  stat 
)
void EmAcceptance::BeginOfAcceptance ( const G4String title,
G4int  stat 
)
void EmAcceptance::EmAcceptanceGauss ( const G4String title,
G4int  stat,
G4double  avr,
G4double  avr0,
G4double  rms,
G4double  limit 
)

Definition at line 68 of file TestEm2/src/EmAcceptance.cc.

References G4cout, G4endl, and test::x.

Referenced by Run::ComputeStatistics(), and HistoManager::EndOfRun().

71 {
72  G4double x = std::sqrt((G4double)stat);
73  G4double dde = avr - avr0;
74  G4double de = dde*x/rms;
75  if(std::fabs(de) > limit) fIsAccepted = false;
76 
77  G4cout << title << ": " << avr << " del" << title << "= " << dde
78  << " nrms= " << de << G4endl;
79 }
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
double G4double
Definition: G4Types.hh:76
void EmAcceptance::EmAcceptanceGauss ( const G4String title,
G4int  stat,
G4double  avr,
G4double  avr0,
G4double  rms,
G4double  limit 
)
void EmAcceptance::EmAcceptanceGauss ( const G4String title,
G4int  stat,
G4double  avr,
G4double  avr0,
G4double  rms,
G4double  limit 
)
void EmAcceptance::EndOfAcceptance ( )

Definition at line 58 of file TestEm2/src/EmAcceptance.cc.

References G4cout, and G4endl.

Referenced by Run::ComputeStatistics(), and HistoManager::EndOfRun().

59 {
60  G4String resume = "IS ACCEPTED";
61  if(!fIsAccepted) resume = "IS NOT ACCEPTED";
62  G4cout << "<<<<END>>>> " << resume << G4endl;
63  G4cout << G4endl;
64 }
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
void EmAcceptance::EndOfAcceptance ( )
void EmAcceptance::EndOfAcceptance ( )

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