~vassil-verguilov/maus/emr-sprint

« back to all changes in this revision

Viewing changes to src/common/Simulation/MAUSTrackingAction.hh

  • Committer: Vassil Verguilov
  • Date: 2011-06-12 14:59:24 UTC
  • mfrom: (416.1.133 maus)
  • Revision ID: vassil.verguilov@gmail.com-20110612145924-0t69mlg1zdf37xnl
Conflicts resolved

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* This file is part of MAUS: http://micewww.pp.rl.ac.uk:8080/projects/maus
2
 
 *
3
 
 * MAUS is free software: you can redistribute it and/or modify
4
 
 * it under the terms of the GNU General Public License as published by
5
 
 * the Free Software Foundation, either version 3 of the License, or
6
 
 * (at your option) any later version.
7
 
 *
8
 
 * MAUS is distributed in the hope that it will be useful,
9
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
 
 * GNU General Public License for more details.
12
 
 *
13
 
 * You should have received a copy of the GNU General Public License
14
 
 * along with MAUS.  If not, see <http://www.gnu.org/licenses/>.
15
 
 *
16
 
 */
17
 
 
18
 
/** @class  MAUSTrackingAction
19
 
 *  Geant4 calls this class before/after tracks propogated
20
 
 *
21
 
 *  Collect the steps from MAUSSteppingAction, then create
22
 
 *  tracks in the datastructure.
23
 
 *
24
 
 */
25
 
 
26
 
#ifndef _SRC_COMMON_SIMULATION_MAUSTRACKINGACTION_H_
27
 
#define _SRC_COMMON_SIMULATION_MAUSTRACKINGACTION_H_
28
 
 
29
 
#include <sstream>  //  combining strings and numbers
30
 
 
31
 
#include <json/json.h>  // for datastructure
32
 
 
33
 
#include <G4Track.hh>  //  arg to tracking action
34
 
#include <G4UserTrackingAction.hh>  //  inherit from
35
 
 
36
 
#include "MAUSSteppingAction.hh"  // static method to grab steps
37
 
 
38
 
 
39
 
namespace MAUS {
40
 
 
41
 
class MAUSTrackingAction : public G4UserTrackingAction {
42
 
 public:
43
 
    /** @brief Add a new track to the stepping action and fill with some
44
 
     *         track data
45
 
     */
46
 
    void PreUserTrackingAction(const G4Track*);
47
 
 
48
 
    /** @brief Put the final momentum of the track into the spill data
49
 
     */
50
 
    void PostUserTrackingAction(const G4Track*);
51
 
};
52
 
 
53
 
}  //  ends MAUS namespace
54
 
 
55
 
#endif  // _SRC_COMMON_SIMULATION_MAUSTRACKINGACTION_H_