remage
Simulation framework for HPGe-based experiments
Toggle main menu visibility
Loading...
Searching...
No Matches
RMGGermaniumDetector.hh
1
// Copyright (C) 2022 Luigi Pertoldi <https://orcid.org/0000-0002-0467-2571>
2
//
3
// This program is free software: you can redistribute it and/or modify it under
4
// the terms of the GNU Lesser General Public License as published by the Free
5
// Software Foundation, either version 3 of the License, or (at your option) any
6
// later version.
7
//
8
// This program is distributed in the hope that it will be useful, but WITHOUT
9
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
10
// FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
11
// details.
12
//
13
// You should have received a copy of the GNU Lesser General Public License
14
// along with this program. If not, see <https://www.gnu.org/licenses/>.
15
16
#ifndef _RMG_GERMANIUM_DETECTOR_HH_
17
#define _RMG_GERMANIUM_DETECTOR_HH_
18
19
#include <memory>
20
#include <string>
21
22
#include "G4Allocator.hh"
23
#include "G4THitsCollection.hh"
24
#include "G4ThreeVector.hh"
25
#include "G4VHit.hh"
26
#include "G4VSensitiveDetector.hh"
27
28
#include "RMGDetectorHit.hh"
29
30
class
G4Step
;
31
class
G4HCofThisEvent
;
32
class
G4TouchableHistory
;
40
class
RMGGermaniumDetector :
public
G4VSensitiveDetector
{
41
42
public
:
43
44
RMGGermaniumDetector();
45
~RMGGermaniumDetector() =
default
;
46
47
RMGGermaniumDetector(RMGGermaniumDetector
const
&) =
delete
;
48
RMGGermaniumDetector& operator=(RMGGermaniumDetector
const
&) =
delete
;
49
RMGGermaniumDetector(RMGGermaniumDetector&&) =
delete
;
50
RMGGermaniumDetector& operator=(RMGGermaniumDetector&&) =
delete
;
51
53
void
Initialize
(
G4HCofThisEvent
* hit_coll)
override
;
54
56
bool
ProcessHits
(
G4Step
* step,
G4TouchableHistory
* history)
override
;
57
void
EndOfEvent(
G4HCofThisEvent
* hit_coll)
override
;
58
59
private
:
60
61
RMGDetectorHitsCollection* fHitsCollection =
nullptr
;
62
};
63
64
65
#endif
66
67
// vim: tabstop=2 shiftwidth=2 expandtab
G4HCofThisEvent
G4Step
G4TouchableHistory
G4VSensitiveDetector
RMGGermaniumDetector::ProcessHits
bool ProcessHits(G4Step *step, G4TouchableHistory *history) override
Build an RMGDetectorHit from step and add it to the hits collection.
Definition
RMGGermaniumDetector.cc:56
RMGGermaniumDetector::Initialize
void Initialize(G4HCofThisEvent *hit_coll) override
Allocate and register the hit collection for the current event.
Definition
RMGGermaniumDetector.cc:40
include
RMGGermaniumDetector.hh
Generated by
1.17.0