Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 EmAcceptance.hh.

Constructor & Destructor Documentation

EmAcceptance::EmAcceptance ( )

Definition at line 38 of file EmAcceptance.cc.

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

Definition at line 44 of file 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 EmAcceptance.cc.

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

Here is the caller graph for this function:

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 EmAcceptance.cc.

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 }
tuple x
Definition: test.py:50
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
double G4double
Definition: G4Types.hh:76

Here is the caller graph for this function:

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 EmAcceptance.cc.

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

Here is the caller graph for this function:

void EmAcceptance::EndOfAcceptance ( )
void EmAcceptance::EndOfAcceptance ( )

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