Geant4
11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4MCTGenEvent.hh
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
// G4MCTGenEvent
27
28
// Author: Youhei Morita, 12.09.2001
29
// --------------------------------------------------------------------
30
#ifndef G4MCTGENEVENT_HH
31
#define G4MCTGENEVENT_HH 1
32
33
#include <iostream>
34
#include <vector>
35
36
#include "
G4Types.hh
"
37
38
class
G4MCTGenEvent
39
{
40
public
:
41
42
G4MCTGenEvent
();
43
virtual
~G4MCTGenEvent
();
44
45
inline
G4MCTGenEvent
(
const
G4MCTGenEvent
& right);
46
inline
G4MCTGenEvent
&
operator=
(
const
G4MCTGenEvent
& right);
47
// copy constructor and assignment operator
48
49
G4int
AddGenEvent
(
const
void
* genevent);
50
G4int
GetNofEvents
()
const
;
51
const
void
*
GetGenEvent
(
G4int
i);
52
53
void
ClearEvent
();
54
55
protected
:
56
57
std::vector<void*>
eventList
;
58
};
59
60
// ====================================================================
61
// inline methods
62
// ====================================================================
63
64
inline
G4MCTGenEvent::G4MCTGenEvent
(
const
G4MCTGenEvent
& right)
65
{
66
*
this
= right;
67
}
68
69
inline
G4MCTGenEvent
&
G4MCTGenEvent::operator=
(
const
G4MCTGenEvent
& right)
70
{
71
eventList
= right.
eventList
;
// shallow copy
72
73
return
*
this
;
74
}
75
76
#endif
G4Types.hh
G4int
int G4int
Definition
G4Types.hh:85
G4MCTGenEvent
Definition
G4MCTGenEvent.hh:39
G4MCTGenEvent::operator=
G4MCTGenEvent & operator=(const G4MCTGenEvent &right)
Definition
G4MCTGenEvent.hh:69
G4MCTGenEvent::eventList
std::vector< void * > eventList
Definition
G4MCTGenEvent.hh:57
G4MCTGenEvent::GetNofEvents
G4int GetNofEvents() const
Definition
G4MCTGenEvent.cc:52
G4MCTGenEvent::~G4MCTGenEvent
virtual ~G4MCTGenEvent()
Definition
G4MCTGenEvent.cc:39
G4MCTGenEvent::ClearEvent
void ClearEvent()
Definition
G4MCTGenEvent.cc:68
G4MCTGenEvent::AddGenEvent
G4int AddGenEvent(const void *genevent)
Definition
G4MCTGenEvent.cc:45
G4MCTGenEvent::G4MCTGenEvent
G4MCTGenEvent()
Definition
G4MCTGenEvent.cc:34
G4MCTGenEvent::GetGenEvent
const void * GetGenEvent(G4int i)
Definition
G4MCTGenEvent.cc:58
geant4-v11.2.2
source
persistency
mctruth
include
G4MCTGenEvent.hh
Generated by
1.12.0