Belle II Software  release-05-02-19
StackingAction.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010-2011 Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Luka Santelj *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #ifndef STACKINGACTION_H_
12 #define STACKINGACTION_H_
13 
14 #include <globals.hh>
15 #include <G4UserStackingAction.hh>
16 
17 namespace Belle2 {
23  namespace Simulation {
24 
28  class StackingAction : public G4UserStackingAction {
29 
30  public:
31 
34 
37 
39  virtual G4ClassificationOfNewTrack ClassifyNewTrack(const G4Track* aTrack);
40 
42  virtual void NewStage();
43 
45  virtual void PrepareNewEvent();
46 
48  void setPropagatedPhotonFraction(double fraction) { m_photonFraction = fraction; };
49 
50 
51  private:
52 
53  double m_photonFraction;
55  };
56 
57  } // Simulation namespace
58 
60 } // Belle2 namespace
61 
62 #endif /* STACKINGACTION_H_ */
Belle2::Simulation::StackingAction::setPropagatedPhotonFraction
void setPropagatedPhotonFraction(double fraction)
Set fraction of Cerenkov photons that are actually propagated.
Definition: StackingAction.h:56
Belle2::Simulation::StackingAction::NewStage
virtual void NewStage()
Function that is called at each event when "urgent" stack is empty.
Definition: StackingAction.cc:75
Belle2::Simulation::StackingAction::m_photonFraction
double m_photonFraction
The fraction of Cerenkov photons which will be kept and propagated.
Definition: StackingAction.h:56
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::Simulation::StackingAction::StackingAction
StackingAction()
The StackingAction constructor.
Definition: StackingAction.cc:26
Belle2::Simulation::StackingAction::PrepareNewEvent
virtual void PrepareNewEvent()
Function called at begining of event.
Definition: StackingAction.cc:81
Belle2::Simulation::StackingAction::ClassifyNewTrack
virtual G4ClassificationOfNewTrack ClassifyNewTrack(const G4Track *aTrack)
Function that classifies new tracks.
Definition: StackingAction.cc:42
Belle2::Simulation::StackingAction::~StackingAction
~StackingAction()
The StackingAction destructor.
Definition: StackingAction.cc:36