Geant4
11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4MoleculeCounter.cc
Go to the documentation of this file.
1
//
2
// ********************************************************************
3
// * License and Disclaimer *
4
// * *
5
// * The Geant4 software is copyright of the Copyright Holders of *
6
// * the Geant4 Collaboration. It is provided under the terms and *
7
// * conditions of the Geant4 Software License, included in the file *
8
// * LICENSE and available at http://cern.ch/geant4/license . These *
9
// * include a list of copyright holders. *
10
// * *
11
// * Neither the authors of this software system, nor their employing *
12
// * institutes,nor the agencies providing financial support for this *
13
// * work make any representation or warranty, express or implied, *
14
// * regarding this software system or assume any liability for its *
15
// * use. Please see the license in the file LICENSE and URL above *
16
// * for the full disclaimer and the limitation of liability. *
17
// * *
18
// * This code implementation is the result of the scientific and *
19
// * technical work of the GEANT4 collaboration. *
20
// * By using, copying, modifying or distributing the software (or *
21
// * any work based on the software) you agree to acknowledge its *
22
// * use in resulting scientific publications, and indicate your *
23
// * acceptance of all terms of the Geant4 Software license. *
24
// ********************************************************************
25
//
26
// Author: Mathieu Karamitros
27
// Modified by Christian Velten on 10/27/2024.
28
//
29
30
#include "
G4MoleculeCounter.hh
"
31
32
#include "
G4MolecularConfiguration.hh
"
33
#include "
G4Molecule.hh
"
34
#include "
G4MoleculeTable.hh
"
35
36
#include <iomanip>
37
38
//------------------------------------------------------------------------------
39
40
G4MoleculeCounter::G4MoleculeCounter
() :
G4VUserMoleculeCounter
() {}
41
42
G4MoleculeCounter::G4MoleculeCounter
(
G4String
name)
43
:
G4VUserMoleculeCounter
(name,
MoleculeCounterType
::
Basic
)
44
{}
45
46
//------------------------------------------------------------------------------
47
48
void
G4MoleculeCounter::InitializeUser
() {}
49
50
//------------------------------------------------------------------------------
51
52
std::unique_ptr<G4VMoleculeCounter::G4VMoleculeCounterIndex>
53
G4MoleculeCounter::BuildIndex
(
const
G4Track
* aTrack)
const
54
{
55
return
std::make_unique<G4MoleculeCounterIndex>(
GetMolecule
(aTrack)->GetMolecularConfiguration());
56
}
57
58
//------------------------------------------------------------------------------
59
60
std::unique_ptr<G4VMoleculeCounter::G4VMoleculeCounterIndex>
61
G4MoleculeCounter::BuildIndex
(
const
G4Track
* aTrack,
const
G4StepPoint
*)
const
62
{
63
return
BuildIndex
(aTrack);
64
}
65
66
//------------------------------------------------------------------------------
67
68
std::unique_ptr<G4VMoleculeCounter::G4VMoleculeCounterIndex>
69
G4MoleculeCounter::BuildSimpleIndex
(
const
G4MolecularConfiguration
* configuration)
const
70
{
71
return
std::make_unique<G4MoleculeCounterIndex>(configuration);
72
}
73
74
//------------------------------------------------------------------------------
G4MolecularConfiguration.hh
G4MoleculeCounter.hh
G4MoleculeTable.hh
G4Molecule.hh
GetMolecule
G4Molecule * GetMolecule(const G4Track &track)
Definition
G4Molecule.cc:75
G4MolecularConfiguration
Definition
G4MolecularConfiguration.hh:98
G4MoleculeCounter::BuildIndex
std::unique_ptr< G4VMoleculeCounterIndex > BuildIndex(const G4Track *) const override
Definition
G4MoleculeCounter.cc:53
G4MoleculeCounter::BuildSimpleIndex
std::unique_ptr< G4VMoleculeCounterIndex > BuildSimpleIndex(const G4MolecularConfiguration *) const override
Definition
G4MoleculeCounter.cc:69
G4MoleculeCounter::InitializeUser
void InitializeUser() override
Definition
G4MoleculeCounter.cc:48
G4MoleculeCounter::G4MoleculeCounter
G4MoleculeCounter()
Definition
G4MoleculeCounter.cc:40
G4StepPoint
Definition
G4StepPoint.hh:56
G4String
Definition
G4String.hh:62
G4Track
Definition
G4Track.hh:66
G4VMoleculeCounter::MoleculeCounterType
MoleculeCounterType
Definition
G4VMoleculeCounter.hh:56
G4VMoleculeCounter::Basic
@ Basic
Definition
G4VMoleculeCounter.hh:58
G4VUserMoleculeCounter< G4MoleculeCounterIndex >::G4VUserMoleculeCounter
G4VUserMoleculeCounter()
Definition
G4VUserMoleculeCounter.hh:108
geant4-v11.4.0
source
processes
electromagnetic
dna
molecules
management
src
G4MoleculeCounter.cc
Generated by
1.16.1