Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 (RunAction *runAction)
 
 ~EventAction ()
 
virtual void BeginOfEventAction (const G4Event *)
 
virtual void EndOfEventAction (const G4Event *)
 
void SetVerboseLevel (G4int level)
 
 EventAction (DetectorConstruction *)
 
 ~EventAction ()
 
virtual void BeginOfEventAction (const G4Event *)
 
virtual void EndOfEventAction (const G4Event *)
 
void AddEdep (G4int k, G4double edep)
 
 EventAction ()
 
 ~EventAction ()
 
virtual void BeginOfEventAction (const G4Event *)
 
virtual void EndOfEventAction (const G4Event *)
 
void AddEdep (G4double edep)
 
 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 (DetectorConstruction *)
 
 ~EventAction ()
 
virtual void BeginOfEventAction (const G4Event *)
 
virtual void EndOfEventAction (const G4Event *)
 
void AddEdep (G4int k, G4double edep)
 
 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 *)
 
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
 

Additional Inherited Members

- Protected Attributes inherited from G4UserEventAction
G4EventManagerfpEventManager
 

Detailed Description

Event action class.

Definition at line 45 of file EventAction.hh.

Constructor & Destructor Documentation

EventAction::EventAction ( DetectorConstruction det,
PrimaryGeneratorAction prim 
)

Definition at line 43 of file EventAction.cc.

44 :detector(det), primary(prim)
45 {
46  nbOfModules = detector->GetNbModules();
47  nbOfLayers = detector->GetNbLayers();
48  kLayerMax = nbOfModules*nbOfLayers + 1;
49 
50  EtotCalor = EvisCalor = 0.;
51 }

Here is the call graph for this function:

EventAction::~EventAction ( )

Definition at line 55 of file EventAction.cc.

56 {
57 }
EventAction::EventAction ( RunAction run)

Definition at line 44 of file EventAction.cc.

45 :fRun(run)
46 {}
EventAction::~EventAction ( )
EventAction::EventAction ( RunAction run,
HistoManager histo 
)

Definition at line 46 of file EventAction.cc.

48  fRunAct(run),fHistoManager(histo),
49  fEnergyAbs(0.), fEnergyGap(0.),
50  fTrackLAbs(0.), fTrackLGap(0.),
51  fPrintModulo(0)
52 {
53  fPrintModulo = 100; }
virtual EventAction::~EventAction ( )
virtual
EventAction::EventAction ( RunAction ,
HistoManager  
)
virtual EventAction::~EventAction ( )
virtual
EventAction::EventAction ( RunAction ,
HistoManager  
)
virtual EventAction::~EventAction ( )
virtual
EventAction::EventAction ( RunAction ,
HistoManager  
)
virtual EventAction::~EventAction ( )
virtual
EventAction::EventAction ( )

Definition at line 44 of file EventAction.cc.

EventAction::~EventAction ( )
EventAction::EventAction ( RunAction runAction)
EventAction::~EventAction ( )
EventAction::EventAction ( DetectorConstruction det)

Definition at line 45 of file EventAction.cc.

46 :G4UserEventAction(), fDetector(det)
47 {}
EventAction::~EventAction ( )
EventAction::EventAction ( )
EventAction::~EventAction ( )
EventAction::EventAction ( RunAction )
EventAction::~EventAction ( )
EventAction::EventAction ( )
virtual EventAction::~EventAction ( )
virtual
EventAction::EventAction ( DetectorConstruction )
EventAction::~EventAction ( )
EventAction::EventAction ( )
EventAction::~EventAction ( )
EventAction::EventAction ( )
EventAction::~EventAction ( )
EventAction::EventAction ( )
virtual EventAction::~EventAction ( )
virtual
EventAction::EventAction ( )
virtual EventAction::~EventAction ( )
virtual
EventAction::EventAction ( )
virtual EventAction::~EventAction ( )
virtual
EventAction::EventAction ( )
virtual EventAction::~EventAction ( )
virtual
EventAction::EventAction ( )
virtual EventAction::~EventAction ( )
virtual
EventAction::EventAction ( )
virtual EventAction::~EventAction ( )
virtual
EventAction::EventAction ( )
EventAction::~EventAction ( )
EventAction::EventAction ( DetectorConstruction )
EventAction::~EventAction ( )
EventAction::EventAction ( )
EventAction::~EventAction ( )
EventAction::EventAction ( )
EventAction::~EventAction ( )
EventAction::EventAction ( )
virtual EventAction::~EventAction ( )
virtual
EventAction::EventAction ( )
EventAction::~EventAction ( )
EventAction::EventAction ( )
EventAction::~EventAction ( )
EventAction::EventAction ( )
EventAction::~EventAction ( )
EventAction::EventAction ( )
EventAction::~EventAction ( )
EventAction::EventAction ( )
EventAction::~EventAction ( )
EventAction::EventAction ( )
EventAction::~EventAction ( )
EventAction::EventAction ( )
EventAction::~EventAction ( )
EventAction::EventAction ( RunAction )
virtual EventAction::~EventAction ( )
virtual
EventAction::EventAction ( )
EventAction::~EventAction ( )
EventAction::EventAction ( )
EventAction::~EventAction ( )

Member Function Documentation

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

Definition at line 57 of file EventAction.hh.

57 {fEnergyAbs += de; fTrackLAbs += dl;};
void EventAction::AddAbs ( G4double  de,
G4double  dl 
)
inline

Definition at line 57 of file EventAction.hh.

57 {fEnergyAbs += de; fTrackLAbs += dl;};
void EventAction::AddAbs ( G4double  de,
G4double  dl 
)
inline

Definition at line 57 of file EventAction.hh.

57 {fEnergyAbs += de; fTrackLAbs += dl;};
void EventAction::AddAbs ( G4double  de,
G4double  dl 
)
inline

Definition at line 57 of file EventAction.hh.

57 {fEnergyAbs += de; fTrackLAbs += dl;};
void EventAction::AddDecayChain ( G4String  val)
inline

Definition at line 52 of file EventAction.hh.

52 {fDecayChain += val;};
void EventAction::AddEdep ( G4double  edep)
inline

Definition at line 52 of file EventAction.hh.

52 {fTotalEdep += edep;};
void EventAction::AddEdep ( G4double  edep)
inline

Definition at line 52 of file EventAction.hh.

53  {
54  fTotalEdep += edep;
55  }
void EventAction::AddEdep ( G4double  edep)
inline

Definition at line 52 of file EventAction.hh.

53  {
54  fTotalEdep += edep;
55  }
void EventAction::AddEdep ( G4int  k,
G4double  edep 
)
inline

Definition at line 53 of file EventAction.hh.

53 { fEdepAbsor[k] += edep; }
void EventAction::AddEdep ( G4double  Edep)
void EventAction::AddEdep ( G4int  k,
G4double  edep 
)
inline

Definition at line 53 of file EventAction.hh.

53 { fEdepAbsor[k] += edep; }
void EventAction::AddEdep ( G4double  Edep)
void EventAction::AddEdep ( G4double  Edep)
inline

Definition at line 53 of file EventAction.hh.

53 {fTotalEnergyDeposit += Edep;};
void EventAction::AddEdep ( G4int  iVol,
G4double  Edep,
G4double  time,
G4double  weight 
)

Definition at line 68 of file 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 }
static constexpr double microsecond
Definition: G4SIunits.hh:160
double G4double
Definition: G4Types.hh:76
void EventAction::AddEdep ( G4double  Edep)
inline

Definition at line 55 of file EventAction.hh.

55 {fTotalEnergyDeposit += Edep;};
void EventAction::AddEdep ( G4double  pVal)
inline

Definition at line 57 of file EventAction.hh.

57 {fEdep+=pVal;};
void EventAction::AddEdepEvent ( G4double  edep)
inline

Definition at line 62 of file EventAction.hh.

63  {
64  fTotalEnergyDeposit += edep;
65  };
void EventAction::AddEdepToNucleotide ( G4int  numStrand,
G4int  numNucl,
G4double  edep 
)
inline

Definition at line 71 of file EventAction.hh.

72  {
73  if(numStrand==1)
74  {
75  fEdepStrand1[numNucl]+=edep;
76  }
77  else{
78  fEdepStrand2[numNucl]+=edep;
79  }
80  }
void EventAction::AddEflow ( G4double  Eflow)

Definition at line 73 of file EventAction.cc.

74 {
75  fTotalEnergyFlow += Eflow;
76 }
void EventAction::AddEflow ( G4double  Eflow)
void EventAction::AddEnergy ( G4double  edep)
inline

Definition at line 52 of file EventAction.hh.

52 {fEnergyDeposit += edep;};
void EventAction::AddEnergyDeposit ( G4double  edep)
inline

Definition at line 54 of file EventAction.hh.

54 {fEnergyDeposit += edep;};
void EventAction::AddEventToDebug ( G4int  val)
void EventAction::AddEventToDebug ( G4int  val)
inline

Definition at line 93 of file EventAction.hh.

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

Here is the caller graph for this function:

void EventAction::AddEventToDebug ( G4int  val)
inline
void EventAction::AddEventToDebug ( G4int  val)
inline
void EventAction::AddEvisible ( G4double  val)
inline

Definition at line 53 of file EventAction.hh.

53 {fEvisTot += val;};
void EventAction::AddGap ( G4double  de,
G4double  dl 
)
inline

Definition at line 58 of file EventAction.hh.

58 {fEnergyGap += de; fTrackLGap += dl;};
void EventAction::AddGap ( G4double  de,
G4double  dl 
)
inline

Definition at line 58 of file EventAction.hh.

58 {fEnergyGap += de; fTrackLGap += dl;};
void EventAction::AddGap ( G4double  de,
G4double  dl 
)
inline

Definition at line 58 of file EventAction.hh.

58 {fEnergyGap += de; fTrackLGap += dl;};
void EventAction::AddGap ( G4double  de,
G4double  dl 
)
inline

Definition at line 58 of file EventAction.hh.

58 {fEnergyGap += de; fTrackLGap += dl;};
void EventAction::AddInelastic ( )
inline

Definition at line 57 of file EventAction.hh.

58  {
59  fNbInelastic++;
60  }
void EventAction::AddSecondary ( G4double  ekin)
inline

Definition at line 55 of file EventAction.hh.

55 {fEnergySecondary += ekin;};
void EventAction::AddTrakLenCharg ( G4double  length)
inline

Definition at line 53 of file EventAction.hh.

53 {fTrakLenCharged += length;};
void EventAction::AddTrakLenNeutr ( G4double  length)
inline

Definition at line 54 of file EventAction.hh.

54 {fTrakLenNeutral += length;};
virtual void EventAction::BeginOfEventAction ( const G4Event aevent)
virtual

Reimplemented from G4UserEventAction.

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

Reimplemented from G4UserEventAction.

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

void EventAction::BeginOfEventAction ( const G4Event evt)
virtual

Reimplemented from G4UserEventAction.

Definition at line 61 of file 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 }
int G4int
Definition: G4Types.hh:78
virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

void EventAction::CountStepsCharg ( )
inline

Definition at line 56 of file EventAction.hh.

56 {fNbStepsCharged++ ;};
void EventAction::CountStepsNeutr ( )
inline

Definition at line 57 of file EventAction.hh.

57 {fNbStepsNeutral++ ;};
virtual void EventAction::EndOfEventAction ( const G4Event aevent)
virtual

Reimplemented from G4UserEventAction.

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

Reimplemented from G4UserEventAction.

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

void EventAction::EndOfEventAction ( const G4Event event)
virtual

Reimplemented from G4UserEventAction.

Definition at line 95 of file 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 
110  G4double Ebeam = primary->GetParticleGun()->GetParticleEnergy();
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 }
void SumEvents_2(G4double, G4double, G4double)
Definition: Run.cc:95
int G4int
Definition: G4Types.hh:78
static G4RunManager * GetRunManager()
Definition: G4RunManager.cc:79
void SumEvents_1(G4int, G4double, G4double)
Definition: Run.cc:85
G4ParticleGun * GetParticleGun()
double G4double
Definition: G4Types.hh:76
Definition: Run.hh:46
G4CsvAnalysisManager G4AnalysisManager
Definition: g4csv_defs.hh:77
G4Run * GetNonConstCurrentRun() const
G4double GetParticleEnergy() const

Here is the call graph for this function:

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

G4double EventAction::GetEdep ( )
inline

Definition at line 55 of file EventAction.hh.

55 {return fEdep;};
G4double EventAction::GetEdepEvent ( )
inline

Definition at line 66 of file EventAction.hh.

67  {
68  return fTotalEnergyDeposit;
69  };
G4double EventAction::GetEnergyDeposit ( )
inline

Definition at line 54 of file EventAction.hh.

54 {return fTotalEnergyDeposit;};
G4double EventAction::GetEnergyDeposit ( )
inline

Definition at line 56 of file EventAction.hh.

56 {return fTotalEnergyDeposit;};
void EventAction::SetDistanceThresForDSB ( G4int  val)
inline

Definition at line 86 of file EventAction.hh.

87  {fThresDistForDSB=val;
88  };
void EventAction::SetEdep ( G4double  pVal)
inline

Definition at line 56 of file EventAction.hh.

56 {fEdep=pVal;};
void EventAction::SetEnergyThresForSSB ( G4double  val)
inline

Definition at line 82 of file EventAction.hh.

83  {
84  fThresEdepForSSB=val;
85  };
void EventAction::SetPrintModulo ( G4int  val)
inline
void EventAction::SetPrintModulo ( G4int  val)
inline

Definition at line 86 of file EventAction.hh.

87 {
88  fPrintModulo = val;
89 }

Here is the caller graph for this function:

void EventAction::SetPrintModulo ( G4int  val)
inline
void EventAction::SetReflectFlag ( G4int  flag)
inline

Definition at line 61 of file EventAction.hh.

62  {if (flag > fReflectFlag) fReflectFlag = flag;};
void EventAction::SetTransmitFlag ( G4int  flag)
inline

Definition at line 59 of file EventAction.hh.

60  {if (flag > fTransmitFlag) fTransmitFlag = flag;};
void EventAction::SetVerboseLevel ( G4int  level)
inline

Definition at line 56 of file EventAction.hh.

56 { fVerboseLevel = level; }
void EventAction::SumDeStep ( G4int  iModule,
G4int  iLayer,
G4int  iFiber,
G4double  deStep 
)

Definition at line 74 of file 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 }
int G4int
Definition: G4Types.hh:78

Here is the caller graph for this function:

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

Definition at line 52 of file EventAction.hh.

53  {fEnergyDeposit[k] += de; fTrackLengthCh[k] += dl;};
void EventAction::WriteFibers ( const G4Event evt)

Definition at line 132 of file 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  //
150  G4ParticleGun* gun = primary->GetParticleGun();
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 }
const XML_Char * name
Definition: expat.h:151
G4ThreeVector GetParticlePosition()
int G4int
Definition: G4Types.hh:78
G4int GetEventID() const
Definition: G4Event.hh:151
G4ParticleMomentum GetParticleMomentumDirection() const
static const double prec
Definition: RanecuEngine.cc:58
tuple app
Definition: demo.py:189
G4ParticleGun * GetParticleGun()
#define G4endl
Definition: G4ios.hh:61
double G4double
Definition: G4Types.hh:76
G4double GetParticleEnergy() const

Here is the call graph for this function:

Member Data Documentation

ClusteringAlgo* EventAction::fpClustering

Definition at line 57 of file EventAction.hh.


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