~chris-rogers/maus/emr_mc_digitization

« back to all changes in this revision

Viewing changes to src/legacy/DetModel/KL/KLSD.hh

  • Committer: Chris Rogers
  • Date: 2014-04-16 11:48:45 UTC
  • mfrom: (707 merge)
  • mto: This revision was merged to the branch mainline in revision 711.
  • Revision ID: chris.rogers@stfc.ac.uk-20140416114845-h3u3q7pdcxkxvovs
Update to trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
// MAUS WARNING: THIS IS LEGACY CODE.
2
2
/*
3
 
** Modified example 1 from the GEANT4 distribution to simulate the
4
 
** MICE scintillating fiber tracker for the MICE proposal
5
 
** August 21, 2002
 
3
** MICE Time-of-Flight detector for the MICE proposal
 
4
** 14 Sep, 2002
6
5
*/
7
 
#ifndef KLSD_h
8
 
#define KLSD_h 1
 
6
#ifndef _KLSD_HH_
 
7
#define _KLSD_HH_ 1
9
8
 
 
9
#include "DetModel/MAUSSD.hh"
10
10
#include "Geant4/G4VSensitiveDetector.hh"
11
 
#include "Interface/KLHit.hh"
 
11
#include <json/json.h>
 
12
#include <string>
12
13
 
13
14
class G4Step;
14
15
class G4HCofThisEvent;
15
16
class MICEEvent;
16
17
class MiceModule;
17
18
 
18
 
/**
19
 
* KLSD is the sensitive detector for GEANT4 that handles the 
20
 
* KL calorimeter simulation.
21
 
**/
22
 
 
23
 
class KLSD : public G4VSensitiveDetector
24
 
{
25
 
  public:
26
 
 
27
 
      //! Constructor
28
 
      KLSD(  MICEEvent*, MiceModule* );
29
 
 
30
 
      //! Initialise this this instance with the G4 event information
31
 
      void Initialize( G4HCofThisEvent* );
32
 
 
33
 
      //! process all hits in this detector
34
 
      G4bool ProcessHits( G4Step*, G4TouchableHistory* );
35
 
 
36
 
      //! code that is called at the end of processing of an event
37
 
      void EndOfEvent( G4HCofThisEvent* );
38
 
 
39
 
  private:
40
 
 
41
 
        MICEEvent*      _event;
42
 
 
43
 
        MiceModule*     _module;
 
19
class KLSD : public MAUS::MAUSSD {
 
20
 public:
 
21
  KLSD( MiceModule* );
 
22
 
 
23
  void Initialize(G4HCofThisEvent*);
 
24
  G4bool ProcessHits(G4Step*, G4TouchableHistory*);
 
25
  void EndOfEvent(G4HCofThisEvent*);
 
26
  
44
27
};
45
28
 
46
29
#endif