~maus-emr/maus/devel

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
// MAUS WARNING: THIS IS LEGACY CODE.
#ifndef EMRSD_h
#define EMRSD_h 1
// MAUS
#include "DetModel/MAUSSD.hh"
// #include "src/common_cpp/JsonCppProcessors/HitProcessor.hh"
// // Geant 4
#include "G4VSensitiveDetector.hh"
#include <json/json.h>
#include <string>

 class G4Step;

 class G4HCofThisEvent;
 class MICEEvent;
 class MiceModule;

/**
* EMRSD is the sensitive detector for GEANT4 that handles the 
* EMR calorimeter simulation.
**/

class EMRSD : public MAUS::MAUSSD {
  public:
    /** @brief Constructor
     */
     EMRSD(MiceModule*);

   void Initialize( G4HCofThisEvent* );

    /** @brief Processes all hits in this detector
     */
    G4bool ProcessHits(G4Step*, G4TouchableHistory*);

    /** @brief Code that is called at the end of processing of an event
     *   Does nothing.
     */
    void EndOfEvent(G4HCofThisEvent* );

};

#endif

/**
* SAVING DATA IN CPP FILES (TO BE CONVERTED LATER TO JSON OR ROOT) 
**/

// using namespace MAUS;

// class EMRSD : public MAUSSD {
// public:
  
//   //! Constructor
//   EMRSD(MiceModule*);
  
//   //! Default destructor
//   ~EMRSD();

//   //! Initialise this this instance with the G4 event information
//   void Initialize( G4HCofThisEvent* );
  
//   //! process all hits in this detector
//   G4bool ProcessHits( G4Step*, G4TouchableHistory* );
  
//   //! code that is called at the end of processing of an event
//   void EndOfEvent( G4HCofThisEvent* );
  
// private:
//   EMRHit _hit_cppdata;
//   EMRHitProcessor hit_proc;
  
//   double _Edep;
//   double _path;
  
// };

// #endif