Geant4  10.02.p03
EventAction Class Reference

Event action class. More...

#include <EventAction.hh>

Inheritance diagram for EventAction:
Collaboration diagram for EventAction:

Public Member Functions

 EventAction (DetectorConstruction *, PrimaryGeneratorAction *)
 
 ~EventAction ()
 
void BeginOfEventAction (const G4Event *)
 
void EndOfEventAction (const G4Event *)
 
void SumDeStep (G4int, G4int, G4int, G4double)
 
void WriteFibers (const G4Event *)
 
 EventAction (RunAction *)
 
 ~EventAction ()
 
void BeginOfEventAction (const G4Event *)
 
void EndOfEventAction (const G4Event *)
 
 EventAction (RunAction *, HistoManager *)
 
virtual ~EventAction ()
 
virtual void BeginOfEventAction (const G4Event *)
 
virtual void EndOfEventAction (const G4Event *)
 
void AddAbs (G4double de, G4double dl)
 
void AddGap (G4double de, G4double dl)
 
 EventAction (RunAction *, HistoManager *)
 
virtual ~EventAction ()
 
virtual void BeginOfEventAction (const G4Event *)
 
virtual void EndOfEventAction (const G4Event *)
 
void AddAbs (G4double de, G4double dl)
 
void AddGap (G4double de, G4double dl)
 
 EventAction (RunAction *, HistoManager *)
 
virtual ~EventAction ()
 
virtual void BeginOfEventAction (const G4Event *)
 
virtual void EndOfEventAction (const G4Event *)
 
void AddAbs (G4double de, G4double dl)
 
void AddGap (G4double de, G4double dl)
 
 EventAction (RunAction *, HistoManager *)
 
virtual ~EventAction ()
 
virtual void BeginOfEventAction (const G4Event *)
 
virtual void EndOfEventAction (const G4Event *)
 
void AddAbs (G4double de, G4double dl)
 
void AddGap (G4double de, G4double dl)
 
 EventAction ()
 
 ~EventAction ()
 
virtual void BeginOfEventAction (const G4Event *)
 
virtual void EndOfEventAction (const G4Event *)
 
void AddEdep (G4double Edep)
 
G4double GetEnergyDeposit ()
 
 EventAction ()
 
 ~EventAction ()
 
virtual void BeginOfEventAction (const G4Event *)
 
virtual void EndOfEventAction (const G4Event *)
 
void AddEdep (G4double edep)
 
G4double GetEdep () const
 
 EventAction ()
 
 ~EventAction ()
 
virtual void BeginOfEventAction (const G4Event *)
 
virtual void EndOfEventAction (const G4Event *)
 
void AddEdep (G4double edep)
 
 EventAction ()
 
 ~EventAction ()
 
virtual void BeginOfEventAction (const G4Event *)
 
virtual void EndOfEventAction (const G4Event *)
 
void SetPrintModulo (G4int val)
 
 EventAction (RunAction *)
 
 ~EventAction ()
 
virtual void BeginOfEventAction (const G4Event *)
 
virtual void EndOfEventAction (const G4Event *)
 
void AddEnergyDeposit (G4double edep)
 
void AddSecondary (G4double ekin)
 
 EventAction ()
 
virtual ~EventAction ()
 
virtual void BeginOfEventAction (const G4Event *)
 
virtual void EndOfEventAction (const G4Event *)
 
 EventAction (DetectorConstruction *)
 
 ~EventAction ()
 
virtual void BeginOfEventAction (const G4Event *)
 
virtual void EndOfEventAction (const G4Event *)
 
void SumEnergy (G4int k, G4double de, G4double dl)
 
 EventAction ()
 
 ~EventAction ()
 
virtual void BeginOfEventAction (const G4Event *)
 
virtual void EndOfEventAction (const G4Event *)
 
void addEdep (G4double Edep)
 
G4double GetEnergyDeposit ()
 
 EventAction ()
 
 ~EventAction ()
 
virtual void BeginOfEventAction (const G4Event *)
 
virtual void EndOfEventAction (const G4Event *)
 
void AddEnergy (G4double edep)
 
void AddTrakLenCharg (G4double length)
 
void AddTrakLenNeutr (G4double length)
 
void CountStepsCharg ()
 
void CountStepsNeutr ()
 
void SetTransmitFlag (G4int flag)
 
void SetReflectFlag (G4int flag)
 
 EventAction ()
 
virtual ~EventAction ()
 
virtual void BeginOfEventAction (const G4Event *)
 
virtual void EndOfEventAction (const G4Event *)
 
 EventAction ()
 
virtual ~EventAction ()
 
virtual void BeginOfEventAction (const G4Event *)
 
virtual void EndOfEventAction (const G4Event *)
 
 EventAction ()
 
virtual ~EventAction ()
 
virtual void BeginOfEventAction (const G4Event *)
 
virtual void EndOfEventAction (const G4Event *)
 
void SetPrintModulo (G4int val)
 
void AddEventToDebug (G4int val)
 
 EventAction ()
 
virtual ~EventAction ()
 
virtual void BeginOfEventAction (const G4Event *)
 
virtual void EndOfEventAction (const G4Event *)
 
void SetPrintModulo (G4int val)
 
void AddEventToDebug (G4int val)
 
 EventAction ()
 
virtual ~EventAction ()
 
virtual void BeginOfEventAction (const G4Event *)
 
virtual void EndOfEventAction (const G4Event *)
 
void AddEventToDebug (G4int val)
 
 EventAction ()
 
virtual ~EventAction ()
 
virtual void BeginOfEventAction (const G4Event *)
 
virtual void EndOfEventAction (const G4Event *)
 
void SetPrintModulo (G4int val)
 
void AddEventToDebug (G4int val)
 
 EventAction ()
 
 ~EventAction ()
 
virtual void BeginOfEventAction (const G4Event *)
 
virtual void EndOfEventAction (const G4Event *)
 
void AddEdep (G4double Edep)
 
void AddEflow (G4double Eflow)
 
 EventAction ()
 
 ~EventAction ()
 
virtual void BeginOfEventAction (const G4Event *)
 
virtual void EndOfEventAction (const G4Event *)
 
void SetPrintModulo (G4int pVal)
 
G4double GetEdep ()
 
void SetEdep (G4double pVal)
 
void AddEdep (G4double pVal)
 
 EventAction ()
 
virtual ~EventAction ()
 
virtual void BeginOfEventAction (const G4Event *)
 
virtual void EndOfEventAction (const G4Event *)
 
 EventAction ()
 
 ~EventAction ()
 
virtual void BeginOfEventAction (const G4Event *)
 
virtual void EndOfEventAction (const G4Event *)
 
void AddEdepEvent (G4double edep)
 
G4double GetEdepEvent ()
 
void AddEdepToNucleotide (G4int numStrand, G4int numNucl, G4double edep)
 
void SetEnergyThresForSSB (G4double val)
 
void SetDistanceThresForDSB (G4int val)
 
 EventAction ()
 
 ~EventAction ()
 
virtual void BeginOfEventAction (const G4Event *)
 
virtual void EndOfEventAction (const G4Event *)
 
void AddEdep (G4double edep)
 
 EventAction ()
 
 ~EventAction ()
 
virtual void BeginOfEventAction (const G4Event *)
 
virtual void EndOfEventAction (const G4Event *)
 
void AddEdep (G4double edep)
 
void AddInelastic ()
 
 EventAction ()
 
 ~EventAction ()
 
virtual void BeginOfEventAction (const G4Event *)
 
virtual void EndOfEventAction (const G4Event *)
 
 EventAction ()
 
 ~EventAction ()
 
virtual void BeginOfEventAction (const G4Event *)
 
virtual void EndOfEventAction (const G4Event *)
 
 EventAction ()
 
 ~EventAction ()
 
virtual void BeginOfEventAction (const G4Event *aevent)
 
virtual void EndOfEventAction (const G4Event *aevent)
 
 EventAction ()
 
 ~EventAction ()
 
virtual void BeginOfEventAction (const G4Event *aevent)
 
virtual void EndOfEventAction (const G4Event *aevent)
 
 EventAction (RunAction *)
 
virtual ~EventAction ()
 
virtual void BeginOfEventAction (const G4Event *)
 
virtual void EndOfEventAction (const G4Event *)
 
 EventAction ()
 
 ~EventAction ()
 
virtual void BeginOfEventAction (const G4Event *)
 
virtual void EndOfEventAction (const G4Event *)
 
void AddDecayChain (G4String val)
 
void AddEvisible (G4double val)
 
 EventAction ()
 
 ~EventAction ()
 
virtual void BeginOfEventAction (const G4Event *)
 
virtual void EndOfEventAction (const G4Event *)
 
void AddEdep (G4int iVol, G4double Edep, G4double time, G4double weight)
 
- Public Member Functions inherited from G4UserEventAction
 G4UserEventAction ()
 
virtual ~G4UserEventAction ()
 
virtual void SetEventManager (G4EventManager *value)
 

Public Attributes

ClusteringAlgofpClustering
 

Private Member Functions

EventActionoperator= (const EventAction &right)
 
 EventAction (const EventAction &)
 
EventActionoperator= (const EventAction &right)
 
 EventAction (const EventAction &)
 
EventActionoperator= (const EventAction &right)
 
 EventAction (const EventAction &)
 
void ComputeStrandBreaks (G4int *)
 

Private Attributes

DetectorConstructiondetector
 
PrimaryGeneratorActionprimary
 
G4int nbOfModules
 
G4int nbOfLayers
 
G4int kLayerMax
 
std::vector< G4doubleEtotLayer
 
std::vector< G4doubleEvisLayer
 
G4double EtotCalor
 
G4double EvisCalor
 
std::map< G4int, G4doubleEvisFiber
 
RunActionfRun
 
RunActionfRunAct
 
HistoManagerfHistoManager
 
G4double fEnergyAbs
 
G4double fEnergyGap
 
G4double fTrackLAbs
 
G4double fTrackLGap
 
G4int fPrintModulo
 
G4double fTotalEnergyDeposit
 
G4double fTotalEdep
 
EventActionMessengerfEventMessenger
 
RunActionfRunAction
 
G4double fEnergyDeposit
 
G4double fEnergySecondary
 
DetectorConstructionfDetector
 
G4double fTrackLengthCh [MaxAbsor]
 
G4double fTrakLenCharged
 
G4double fTrakLenNeutral
 
G4int fNbStepsCharged
 
G4int fNbStepsNeutral
 
G4int fTransmitFlag
 
G4int fReflectFlag
 
G4int fVerbose
 
G4UImanagerfUI
 
std::vector< G4intfSelectedEvents
 
G4int fSelected
 
G4bool fDebugStarted
 
G4int fNSelected
 
G4double fTotalEnergyFlow
 
G4double fEdep
 
EventActionMessengerfpEventMessenger
 
std::map< G4int, G4doublefEdepStrand1
 
std::map< G4int, G4doublefEdepStrand2
 
G4double fThresEdepForSSB
 
G4int fThresDistForDSB
 
G4double fNbInelastic
 
G4int fEventNumber
 
RunActionrunAction
 
G4String fDecayChain
 
G4double fEvisTot
 
G4double fEdep1
 
G4double fEdep2
 
G4double fWeight1
 
G4double fWeight2
 
G4double fTime0
 

Additional Inherited Members

- Protected Attributes inherited from G4UserEventAction
G4EventManagerfpEventManager
 

Detailed Description

Event action class.

Definition at line 45 of file advanced/amsEcal/include/EventAction.hh.

Constructor & Destructor Documentation

◆ EventAction() [1/37]

EventAction::EventAction ( DetectorConstruction det,
PrimaryGeneratorAction prim 
)

Definition at line 43 of file advanced/amsEcal/src/EventAction.cc.

Here is the call graph for this function:

◆ ~EventAction() [1/34]

EventAction::~EventAction ( )

Definition at line 55 of file advanced/amsEcal/src/EventAction.cc.

56 {
57 }
Here is the caller graph for this function:

◆ EventAction() [2/37]

EventAction::EventAction ( RunAction run)

Definition at line 44 of file advanced/microbeam/src/EventAction.cc.

45 :fRun(run)
46 {}
Here is the call graph for this function:

◆ ~EventAction() [2/34]

EventAction::~EventAction ( )

◆ EventAction() [3/37]

EventAction::EventAction ( RunAction run,
HistoManager histo 
)

Definition at line 46 of file extended/analysis/AnaEx01/shared/src/EventAction.cc.

Here is the call graph for this function:

◆ ~EventAction() [3/34]

virtual EventAction::~EventAction ( )
virtual

◆ EventAction() [4/37]

EventAction::EventAction ( RunAction ,
HistoManager  
)

◆ ~EventAction() [4/34]

virtual EventAction::~EventAction ( )
virtual

◆ EventAction() [5/37]

EventAction::EventAction ( RunAction ,
HistoManager  
)

◆ ~EventAction() [5/34]

virtual EventAction::~EventAction ( )
virtual

◆ EventAction() [6/37]

EventAction::EventAction ( RunAction ,
HistoManager  
)

◆ ~EventAction() [6/34]

virtual EventAction::~EventAction ( )
virtual

◆ EventAction() [7/37]

EventAction::EventAction ( )

Definition at line 44 of file extended/electromagnetic/TestEm1/src/EventAction.cc.

Here is the call graph for this function:

◆ ~EventAction() [7/34]

EventAction::~EventAction ( )

◆ EventAction() [8/37]

EventAction::EventAction ( )

◆ ~EventAction() [8/34]

EventAction::~EventAction ( )

◆ EventAction() [9/37]

EventAction::EventAction ( )

◆ ~EventAction() [9/34]

EventAction::~EventAction ( )

◆ EventAction() [10/37]

EventAction::EventAction ( )

◆ ~EventAction() [10/34]

EventAction::~EventAction ( )

◆ EventAction() [11/37]

EventAction::EventAction ( RunAction )

◆ ~EventAction() [11/34]

EventAction::~EventAction ( )

◆ EventAction() [12/37]

EventAction::EventAction ( )

◆ ~EventAction() [12/34]

virtual EventAction::~EventAction ( )
virtual

◆ EventAction() [13/37]

EventAction::EventAction ( DetectorConstruction det)

Definition at line 44 of file extended/electromagnetic/TestEm3/src/EventAction.cc.

Here is the call graph for this function:

◆ ~EventAction() [13/34]

EventAction::~EventAction ( )

◆ EventAction() [14/37]

EventAction::EventAction ( )

◆ ~EventAction() [14/34]

EventAction::~EventAction ( )

◆ EventAction() [15/37]

EventAction::EventAction ( )

◆ ~EventAction() [15/34]

EventAction::~EventAction ( )

◆ EventAction() [16/37]

EventAction::EventAction ( )

◆ ~EventAction() [16/34]

virtual EventAction::~EventAction ( )
virtual

◆ EventAction() [17/37]

EventAction::EventAction ( )

◆ ~EventAction() [17/34]

virtual EventAction::~EventAction ( )
virtual

◆ EventAction() [18/37]

EventAction::EventAction ( )

◆ ~EventAction() [18/34]

virtual EventAction::~EventAction ( )
virtual

◆ EventAction() [19/37]

EventAction::EventAction ( const EventAction )
private

◆ EventAction() [20/37]

EventAction::EventAction ( )

◆ ~EventAction() [19/34]

virtual EventAction::~EventAction ( )
virtual

◆ EventAction() [21/37]

EventAction::EventAction ( const EventAction )
private

◆ EventAction() [22/37]

EventAction::EventAction ( )

◆ ~EventAction() [20/34]

virtual EventAction::~EventAction ( )
virtual

◆ EventAction() [23/37]

EventAction::EventAction ( )

◆ ~EventAction() [21/34]

virtual EventAction::~EventAction ( )
virtual

◆ EventAction() [24/37]

EventAction::EventAction ( const EventAction )
private

◆ EventAction() [25/37]

EventAction::EventAction ( )

◆ ~EventAction() [22/34]

EventAction::~EventAction ( )

◆ EventAction() [26/37]

EventAction::EventAction ( )

◆ ~EventAction() [23/34]

EventAction::~EventAction ( )

◆ EventAction() [27/37]

EventAction::EventAction ( )

◆ ~EventAction() [24/34]

virtual EventAction::~EventAction ( )
virtual

◆ EventAction() [28/37]

EventAction::EventAction ( )

◆ ~EventAction() [25/34]

EventAction::~EventAction ( )

◆ EventAction() [29/37]

EventAction::EventAction ( )

◆ ~EventAction() [26/34]

EventAction::~EventAction ( )

◆ EventAction() [30/37]

EventAction::EventAction ( )

◆ ~EventAction() [27/34]

EventAction::~EventAction ( )

◆ EventAction() [31/37]

EventAction::EventAction ( )

◆ ~EventAction() [28/34]

EventAction::~EventAction ( )

◆ EventAction() [32/37]

EventAction::EventAction ( )

◆ ~EventAction() [29/34]

EventAction::~EventAction ( )

◆ EventAction() [33/37]

EventAction::EventAction ( )

◆ ~EventAction() [30/34]

EventAction::~EventAction ( )

◆ EventAction() [34/37]

EventAction::EventAction ( )

◆ ~EventAction() [31/34]

EventAction::~EventAction ( )

◆ EventAction() [35/37]

EventAction::EventAction ( RunAction )

◆ ~EventAction() [32/34]

virtual EventAction::~EventAction ( )
virtual

◆ EventAction() [36/37]

EventAction::EventAction ( )

◆ ~EventAction() [33/34]

EventAction::~EventAction ( )

◆ EventAction() [37/37]

EventAction::EventAction ( )

◆ ~EventAction() [34/34]

EventAction::~EventAction ( )

Member Function Documentation

◆ AddAbs() [1/4]

◆ AddAbs() [2/4]

◆ AddAbs() [3/4]

void EventAction::AddAbs ( G4double  de,
G4double  dl 
)
inline

◆ AddAbs() [4/4]

◆ AddDecayChain()

void EventAction::AddDecayChain ( G4String  val)
inline

◆ AddEdep() [1/8]

void EventAction::AddEdep ( G4double  edep)
inline

◆ AddEdep() [2/8]

void EventAction::AddEdep ( G4double  edep)
inline

◆ AddEdep() [3/8]

void EventAction::AddEdep ( G4double  edep)
inline

◆ AddEdep() [4/8]

void EventAction::AddEdep ( G4double  edep)
inline

◆ AddEdep() [5/8]

void EventAction::AddEdep ( G4double  Edep)

◆ AddEdep() [6/8]

void EventAction::AddEdep ( G4double  Edep)
inline

Definition at line 53 of file extended/electromagnetic/TestEm1/include/EventAction.hh.

Here is the caller graph for this function:

◆ AddEdep() [7/8]

void EventAction::AddEdep ( G4int  iVol,
G4double  Edep,
G4double  time,
G4double  weight 
)

Definition at line 68 of file extended/radioactivedecay/rdecay02/src/EventAction.cc.

70 {
71  // initialize t0
72  if (fTime0 < 0.) fTime0 = time;
73 
74  // out of time window ?
75  const G4double TimeWindow (1*microsecond);
76  if (std::fabs(time - fTime0) > TimeWindow) return;
77 
78  if (iVol == 1) { fEdep1 += edep; fWeight1 += edep*weight;}
79  if (iVol == 2) { fEdep2 += edep; fWeight2 += edep*weight;}
80 }
double weight
Definition: plottest35.C:25
Double_t edep
static const double microsecond
Definition: G4SIunits.hh:159
double G4double
Definition: G4Types.hh:76
Here is the call graph for this function:

◆ addEdep()

void EventAction::addEdep ( G4double  Edep)
inline

◆ AddEdep() [8/8]

void EventAction::AddEdep ( G4double  pVal)
inline

◆ AddEdepEvent()

void EventAction::AddEdepEvent ( G4double  edep)
inline

◆ AddEdepToNucleotide()

void EventAction::AddEdepToNucleotide ( G4int  numStrand,
G4int  numNucl,
G4double  edep 
)
inline

Definition at line 71 of file extended/medical/dna/pdb4dna/include/EventAction.hh.

72  {
73  if(numStrand==1)
74  {
75  fEdepStrand1[numNucl]+=edep;
76  }
77  else{
78  fEdepStrand2[numNucl]+=edep;
79  }
80  }
Double_t edep
Here is the caller graph for this function:

◆ AddEflow()

void EventAction::AddEflow ( G4double  Eflow)

Definition at line 73 of file extended/hadronic/Hadr06/src/EventAction.cc.

74 {
75  fTotalEnergyFlow += Eflow;
76 }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddEnergy()

void EventAction::AddEnergy ( G4double  edep)
inline

Definition at line 52 of file extended/electromagnetic/TestEm5/include/EventAction.hh.

Here is the caller graph for this function:

◆ AddEnergyDeposit()

void EventAction::AddEnergyDeposit ( G4double  edep)
inline

Definition at line 54 of file extended/electromagnetic/TestEm18/include/EventAction.hh.

Here is the caller graph for this function:

◆ AddEventToDebug() [1/4]

void EventAction::AddEventToDebug ( G4int  val)

◆ AddEventToDebug() [2/4]

void EventAction::AddEventToDebug ( G4int  val)
inline

Definition at line 93 of file extended/hadronic/Hadr00/include/EventAction.hh.

94 {
95  fSelectedEvents.push_back(val);
96  ++fSelected;
97 }

◆ AddEventToDebug() [3/4]

void EventAction::AddEventToDebug ( G4int  val)
inline

◆ AddEventToDebug() [4/4]

void EventAction::AddEventToDebug ( G4int  val)
inline

◆ AddEvisible()

void EventAction::AddEvisible ( G4double  val)
inline

◆ AddGap() [1/4]

◆ AddGap() [2/4]

◆ AddGap() [3/4]

void EventAction::AddGap ( G4double  de,
G4double  dl 
)
inline

◆ AddGap() [4/4]

◆ AddInelastic()

void EventAction::AddInelastic ( )
inline

◆ AddSecondary()

void EventAction::AddSecondary ( G4double  ekin)
inline

Definition at line 55 of file extended/electromagnetic/TestEm18/include/EventAction.hh.

Here is the caller graph for this function:

◆ AddTrakLenCharg()

void EventAction::AddTrakLenCharg ( G4double  length)
inline

◆ AddTrakLenNeutr()

void EventAction::AddTrakLenNeutr ( G4double  length)
inline

◆ BeginOfEventAction() [1/34]

virtual void EventAction::BeginOfEventAction ( const G4Event aevent)
virtual

Reimplemented from G4UserEventAction.

◆ BeginOfEventAction() [2/34]

virtual void EventAction::BeginOfEventAction ( const G4Event aevent)
virtual

Reimplemented from G4UserEventAction.

◆ BeginOfEventAction() [3/34]

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ BeginOfEventAction() [4/34]

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ BeginOfEventAction() [5/34]

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ BeginOfEventAction() [6/34]

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ BeginOfEventAction() [7/34]

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ BeginOfEventAction() [8/34]

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ BeginOfEventAction() [9/34]

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ BeginOfEventAction() [10/34]

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ BeginOfEventAction() [11/34]

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ BeginOfEventAction() [12/34]

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ BeginOfEventAction() [13/34]

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ BeginOfEventAction() [14/34]

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ BeginOfEventAction() [15/34]

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ BeginOfEventAction() [16/34]

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ BeginOfEventAction() [17/34]

void EventAction::BeginOfEventAction ( const G4Event evt)
virtual

Reimplemented from G4UserEventAction.

Definition at line 61 of file advanced/amsEcal/src/EventAction.cc.

62 {
63  EtotLayer.resize(kLayerMax);
64  EvisLayer.resize(kLayerMax);
65  for (G4int k=0; k<kLayerMax; k++) {
66  EtotLayer[k] = EvisLayer[k] = 0.0;
67  }
68  EtotCalor = EvisCalor = 0.;
69  EvisFiber.clear();
70 }
std::vector< G4double > EtotLayer
int G4int
Definition: G4Types.hh:78
std::map< G4int, G4double > EvisFiber
std::vector< G4double > EvisLayer
Here is the caller graph for this function:

◆ BeginOfEventAction() [18/34]

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ BeginOfEventAction() [19/34]

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ BeginOfEventAction() [20/34]

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ BeginOfEventAction() [21/34]

void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ BeginOfEventAction() [22/34]

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ BeginOfEventAction() [23/34]

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ BeginOfEventAction() [24/34]

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ BeginOfEventAction() [25/34]

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ BeginOfEventAction() [26/34]

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ BeginOfEventAction() [27/34]

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ BeginOfEventAction() [28/34]

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ BeginOfEventAction() [29/34]

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ BeginOfEventAction() [30/34]

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ BeginOfEventAction() [31/34]

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ BeginOfEventAction() [32/34]

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ BeginOfEventAction() [33/34]

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ BeginOfEventAction() [34/34]

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ ComputeStrandBreaks()

void EventAction::ComputeStrandBreaks ( G4int sb)
private

Definition at line 112 of file extended/medical/dna/pdb4dna/src/EventAction.cc.

113 {
114  // sb quantities
115  //
116  G4int ssb1=0;
117  G4int ssb2=0;
118  G4int dsb=0;
119 
120  // nucleotide id and energy deposit for each strand
121  G4int nucl1;
122  G4int nucl2;
123  G4double edep1;
124  G4double edep2;
125 
126  //Read strand1
127  //
128  while ( !fEdepStrand1.empty() )
129  {
130  nucl1 = fEdepStrand1.begin()->first;
131  edep1 = fEdepStrand1.begin()->second;
132  fEdepStrand1.erase( fEdepStrand1.begin() );
133 
134  // SSB in strand1
135  //
136  if ( edep1 >= fThresEdepForSSB/eV )
137  {
138  ssb1++;
139  }
140 
141  // Look at strand2
142  //
143  if ( !fEdepStrand2.empty() )
144  {
145  do
146  {
147  nucl2 = fEdepStrand2.begin()->first;
148  edep2 = fEdepStrand2.begin()->second;
149  if ( edep2 >= fThresEdepForSSB/eV )
150  {
151  ssb2++;
152  }
153  fEdepStrand2.erase( fEdepStrand2.begin() );
154  } while ( ((nucl1-nucl2)>fThresDistForDSB) && (!fEdepStrand2.empty()) );
155 
156  // no dsb
157  //
158  if ( nucl2-nucl1 > fThresDistForDSB )
159  {
160  fEdepStrand2[nucl2]=edep2;
161  if ( edep2 >= fThresEdepForSSB/eV )
162  {
163  ssb2--;
164  }
165  }
166 
167  // one dsb
168  //
169  if ( std::abs(nucl2-nucl1) <= fThresDistForDSB )
170  {
171  if ( ( edep2 >= fThresEdepForSSB/eV ) &&
172  ( edep1 >= fThresEdepForSSB/eV ) )
173  {
174  ssb1--;
175  ssb2--;
176  dsb++;
177  }
178  }
179  }
180  }
181 
182  // End with not processed data
183  //
184  while ( !fEdepStrand1.empty() )
185  {
186  nucl1 = fEdepStrand1.begin()->first;
187  edep1 = fEdepStrand1.begin()->second;
188  if ( edep1 >= fThresEdepForSSB/eV )
189  {
190  ssb1++;
191  }
192  fEdepStrand1.erase( fEdepStrand1.begin() );
193  }
194 
195  while ( !fEdepStrand2.empty() )
196  {
197  nucl2 = fEdepStrand2.begin()->first;
198  edep2 = fEdepStrand2.begin()->second;
199  if ( edep2 >= fThresEdepForSSB/eV )
200  {
201  ssb2++;
202  }
203  fEdepStrand2.erase( fEdepStrand2.begin() );
204  }
205 
206  sb[0]=ssb1+ssb2;
207  sb[1]=dsb;
208 }
int G4int
Definition: G4Types.hh:78
static const double eV
Definition: G4SIunits.hh:212
double G4double
Definition: G4Types.hh:76

◆ CountStepsCharg()

void EventAction::CountStepsCharg ( )
inline

◆ CountStepsNeutr()

void EventAction::CountStepsNeutr ( )
inline

◆ EndOfEventAction() [1/34]

virtual void EventAction::EndOfEventAction ( const G4Event aevent)
virtual

Reimplemented from G4UserEventAction.

◆ EndOfEventAction() [2/34]

virtual void EventAction::EndOfEventAction ( const G4Event aevent)
virtual

Reimplemented from G4UserEventAction.

◆ EndOfEventAction() [3/34]

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ EndOfEventAction() [4/34]

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ EndOfEventAction() [5/34]

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ EndOfEventAction() [6/34]

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ EndOfEventAction() [7/34]

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ EndOfEventAction() [8/34]

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ EndOfEventAction() [9/34]

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ EndOfEventAction() [10/34]

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ EndOfEventAction() [11/34]

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ EndOfEventAction() [12/34]

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ EndOfEventAction() [13/34]

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ EndOfEventAction() [14/34]

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ EndOfEventAction() [15/34]

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ EndOfEventAction() [16/34]

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ EndOfEventAction() [17/34]

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ EndOfEventAction() [18/34]

void EventAction::EndOfEventAction ( const G4Event event)
virtual

Reimplemented from G4UserEventAction.

Definition at line 95 of file advanced/amsEcal/src/EventAction.cc.

96 {
97  //pass informations to Run
98  //
99  Run* run = static_cast<Run*>(
101 
102  for (G4int k=0; k<kLayerMax; k++) {
103  run->SumEvents_1(k,EtotLayer[k],EvisLayer[k]);
104  }
105 
106  G4AnalysisManager* analysisManager = G4AnalysisManager::Instance();
107  analysisManager->FillH1(1,EtotCalor);
108  analysisManager->FillH1(2,EvisCalor);
109 
111  G4double Eleak = Ebeam - EtotCalor;
112  run->SumEvents_2(EtotCalor,EvisCalor,Eleak);
113 
114 
115  std::map<G4int,G4double>::iterator it;
116  for (it = EvisFiber.begin(); it != EvisFiber.end(); it++) {
117  G4int kFiber = it->first;
118  G4int iFiber = kFiber%1000;
119  G4double Evis = it->second;
120  analysisManager->FillH1(5,iFiber+0.5,Evis);
121  }
122 
123  //write fired fibers on a file
124  //
126 }
G4Run * GetNonConstCurrentRun() const
void SumEvents_2(G4double, G4double, G4double)
std::vector< G4double > EtotLayer
int G4int
Definition: G4Types.hh:78
std::map< G4int, G4double > EvisFiber
PrimaryGeneratorAction * primary
std::vector< G4double > EvisLayer
G4double GetParticleEnergy() const
ExG4HbookAnalysisManager G4AnalysisManager
Definition: g4hbook_defs.hh:66
static G4RunManager * GetRunManager()
Definition: G4RunManager.cc:79
void SumEvents_1(G4int, G4double, G4double)
double G4double
Definition: G4Types.hh:76
Here is the call graph for this function:
Here is the caller graph for this function:

◆ EndOfEventAction() [19/34]

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ EndOfEventAction() [20/34]

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ EndOfEventAction() [21/34]

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ EndOfEventAction() [22/34]

void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ EndOfEventAction() [23/34]

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ EndOfEventAction() [24/34]

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ EndOfEventAction() [25/34]

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ EndOfEventAction() [26/34]

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ EndOfEventAction() [27/34]

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ EndOfEventAction() [28/34]

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ EndOfEventAction() [29/34]

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ EndOfEventAction() [30/34]

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ EndOfEventAction() [31/34]

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ EndOfEventAction() [32/34]

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ EndOfEventAction() [33/34]

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ EndOfEventAction() [34/34]

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

◆ GetEdep() [1/2]

G4double EventAction::GetEdep ( ) const
inline

◆ GetEdep() [2/2]

G4double EventAction::GetEdep ( )
inline

◆ GetEdepEvent()

G4double EventAction::GetEdepEvent ( )
inline

◆ GetEnergyDeposit() [1/2]

G4double EventAction::GetEnergyDeposit ( )
inline

◆ GetEnergyDeposit() [2/2]

G4double EventAction::GetEnergyDeposit ( )
inline

◆ operator=() [1/3]

EventAction& EventAction::operator= ( const EventAction right)
private

◆ operator=() [2/3]

EventAction& EventAction::operator= ( const EventAction right)
private

◆ operator=() [3/3]

EventAction& EventAction::operator= ( const EventAction right)
private

◆ SetDistanceThresForDSB()

void EventAction::SetDistanceThresForDSB ( G4int  val)
inline

◆ SetEdep()

void EventAction::SetEdep ( G4double  pVal)
inline

◆ SetEnergyThresForSSB()

void EventAction::SetEnergyThresForSSB ( G4double  val)
inline

◆ SetPrintModulo() [1/5]

void EventAction::SetPrintModulo ( G4int  val)
inline

Definition at line 54 of file extended/electromagnetic/TestEm17/include/EventAction.hh.

Here is the caller graph for this function:

◆ SetPrintModulo() [2/5]

void EventAction::SetPrintModulo ( G4int  pVal)
inline

◆ SetPrintModulo() [3/5]

void EventAction::SetPrintModulo ( G4int  val)
inline

◆ SetPrintModulo() [4/5]

void EventAction::SetPrintModulo ( G4int  val)
inline

◆ SetPrintModulo() [5/5]

void EventAction::SetPrintModulo ( G4int  val)
inline

◆ SetReflectFlag()

void EventAction::SetReflectFlag ( G4int  flag)
inline

Definition at line 61 of file extended/electromagnetic/TestEm5/include/EventAction.hh.

Here is the caller graph for this function:

◆ SetTransmitFlag()

void EventAction::SetTransmitFlag ( G4int  flag)
inline

Definition at line 59 of file extended/electromagnetic/TestEm5/include/EventAction.hh.

Here is the caller graph for this function:

◆ SumDeStep()

void EventAction::SumDeStep ( G4int  iModule,
G4int  iLayer,
G4int  iFiber,
G4double  deStep 
)

Definition at line 74 of file advanced/amsEcal/src/EventAction.cc.

76 {
77  if (iModule > 0) EtotCalor += deStep;
78 
79  G4int kLayer = 0; G4int kFiber = 0;
80  if (iLayer > 0) {
81  kLayer = (iModule-1)*nbOfLayers + iLayer;
82  EtotLayer[kLayer] += deStep;
83  }
84 
85  if (iFiber > 0) {
86  EvisLayer[kLayer] += deStep;
87  EvisCalor += deStep;
88  kFiber = 1000*kLayer + iFiber;
89  EvisFiber[kFiber] += deStep;
90  }
91 }
std::vector< G4double > EtotLayer
int G4int
Definition: G4Types.hh:78
std::map< G4int, G4double > EvisFiber
std::vector< G4double > EvisLayer
Here is the caller graph for this function:

◆ SumEnergy()

void EventAction::SumEnergy ( G4int  k,
G4double  de,
G4double  dl 
)
inline

◆ WriteFibers()

void EventAction::WriteFibers ( const G4Event evt)

Definition at line 132 of file advanced/amsEcal/src/EventAction.cc.

133 {
134  // event is appended on a file
135  //
136  G4String name = G4AnalysisManager::Instance()->GetFileName();
137  G4String fileName = name + ".fibers.ascii";
138 
139  std::ofstream File(fileName, std::ios::app);
140  std::ios::fmtflags mode = File.flags();
141  File.setf( std::ios::scientific, std::ios::floatfield );
142  G4int prec = File.precision(3);
143 
144  //write event number
145  //
146  File << evt->GetEventID() << G4endl;
147 
148  //gun particle informations
149  //
151  G4double ekin = gun->GetParticleEnergy();
152  G4ThreeVector direction = gun->GetParticleMomentumDirection();
154  File << ekin << " " << direction << " " << position << G4endl;
155 
156  //write fibers
157  //
158  File << EvisFiber.size() << G4endl;
159  //
160  std::map<G4int,G4double>::iterator it;
161  for (it = EvisFiber.begin(); it != EvisFiber.end(); it++) {
162  G4int kFiber = it->first;
163  G4double Evis = it->second;
164  File << " " << std::setw(7) << kFiber << " "<< std::setw(10) << Evis
165  << G4endl;
166  }
167 
168  File << G4endl;
169 
170  // restaure default formats
171  File.setf(mode,std::ios::floatfield);
172  File.precision(prec);
173 }
G4String name
Definition: TRTMaterials.hh:40
G4ThreeVector GetParticlePosition()
int G4int
Definition: G4Types.hh:78
std::map< G4int, G4double > EvisFiber
G4ParticleMomentum GetParticleMomentumDirection() const
static const double prec
Definition: RanecuEngine.cc:58
PrimaryGeneratorAction * primary
G4double GetParticleEnergy() const
G4int GetEventID() const
Definition: G4Event.hh:151
#define G4endl
Definition: G4ios.hh:61
double G4double
Definition: G4Types.hh:76
Here is the call graph for this function:

Member Data Documentation

◆ detector

DetectorConstruction* EventAction::detector
private

Definition at line 60 of file advanced/amsEcal/include/EventAction.hh.

◆ EtotCalor

G4double EventAction::EtotCalor
private

Definition at line 67 of file advanced/amsEcal/include/EventAction.hh.

◆ EtotLayer

std::vector<G4double> EventAction::EtotLayer
private

Definition at line 64 of file advanced/amsEcal/include/EventAction.hh.

◆ EvisCalor

G4double EventAction::EvisCalor
private

Definition at line 68 of file advanced/amsEcal/include/EventAction.hh.

◆ EvisFiber

std::map<G4int, G4double> EventAction::EvisFiber
private

Definition at line 70 of file advanced/amsEcal/include/EventAction.hh.

◆ EvisLayer

std::vector<G4double> EventAction::EvisLayer
private

Definition at line 65 of file advanced/amsEcal/include/EventAction.hh.

◆ fDebugStarted

G4bool EventAction::fDebugStarted
private

◆ fDecayChain

G4String EventAction::fDecayChain
private

◆ fDetector

DetectorConstruction* EventAction::fDetector
private

◆ fEdep

G4double EventAction::fEdep
private

◆ fEdep1

G4double EventAction::fEdep1
private

◆ fEdep2

G4double EventAction::fEdep2
private

◆ fEdepStrand1

std::map<G4int,G4double> EventAction::fEdepStrand1
private

◆ fEdepStrand2

std::map<G4int,G4double> EventAction::fEdepStrand2
private

◆ fEnergyAbs

G4double EventAction::fEnergyAbs
private

◆ fEnergyDeposit

G4double EventAction::fEnergyDeposit
private

◆ fEnergyGap

G4double EventAction::fEnergyGap
private

◆ fEnergySecondary

G4double EventAction::fEnergySecondary
private

◆ fEventMessenger

EventActionMessenger * EventAction::fEventMessenger
private

◆ fEventNumber

G4int EventAction::fEventNumber
private

◆ fEvisTot

G4double EventAction::fEvisTot
private

◆ fHistoManager

HistoManager * EventAction::fHistoManager
private

◆ fNbInelastic

G4double EventAction::fNbInelastic
private

◆ fNbStepsCharged

G4int EventAction::fNbStepsCharged
private

◆ fNbStepsNeutral

G4int EventAction::fNbStepsNeutral
private

◆ fNSelected

G4int EventAction::fNSelected
private

◆ fpClustering

ClusteringAlgo* EventAction::fpClustering

◆ fpEventMessenger

EventActionMessenger * EventAction::fpEventMessenger
private

◆ fPrintModulo

G4int EventAction::fPrintModulo
private

◆ fReflectFlag

G4int EventAction::fReflectFlag
private

◆ fRun

RunAction* EventAction::fRun
private

Definition at line 57 of file advanced/microbeam/include/EventAction.hh.

◆ fRunAct

RunAction * EventAction::fRunAct
private

◆ fRunAction

RunAction* EventAction::fRunAction
private

◆ fSelected

G4int EventAction::fSelected
private

◆ fSelectedEvents

std::vector< G4int > EventAction::fSelectedEvents
private

◆ fThresDistForDSB

G4int EventAction::fThresDistForDSB
private

◆ fThresEdepForSSB

G4double EventAction::fThresEdepForSSB
private

◆ fTime0

G4double EventAction::fTime0
private

◆ fTotalEdep

G4double EventAction::fTotalEdep
private

◆ fTotalEnergyDeposit

G4double EventAction::fTotalEnergyDeposit
private

◆ fTotalEnergyFlow

G4double EventAction::fTotalEnergyFlow
private

◆ fTrackLAbs

G4double EventAction::fTrackLAbs
private

◆ fTrackLengthCh

G4double EventAction::fTrackLengthCh[MaxAbsor]
private

◆ fTrackLGap

G4double EventAction::fTrackLGap
private

◆ fTrakLenCharged

G4double EventAction::fTrakLenCharged
private

◆ fTrakLenNeutral

G4double EventAction::fTrakLenNeutral
private

◆ fTransmitFlag

G4int EventAction::fTransmitFlag
private

◆ fUI

G4UImanager * EventAction::fUI
private

◆ fVerbose

G4int EventAction::fVerbose
private

◆ fWeight1

G4double EventAction::fWeight1
private

◆ fWeight2

G4double EventAction::fWeight2
private

◆ kLayerMax

G4int EventAction::kLayerMax
private

Definition at line 63 of file advanced/amsEcal/include/EventAction.hh.

◆ nbOfLayers

G4int EventAction::nbOfLayers
private

Definition at line 63 of file advanced/amsEcal/include/EventAction.hh.

◆ nbOfModules

G4int EventAction::nbOfModules
private

Definition at line 63 of file advanced/amsEcal/include/EventAction.hh.

◆ primary

PrimaryGeneratorAction* EventAction::primary
private

Definition at line 61 of file advanced/amsEcal/include/EventAction.hh.

◆ runAction

RunAction* EventAction::runAction
private

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