Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
G4RootHitContainer.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file G4RootHitContainer.h
1
#ifndef G4HISTOS_G4ROOTHITCONTAINER_H
2
#define G4HISTOS_G4ROOTHITCONTAINER_H
3
4
#include <
phool/PHObject.h
>
5
6
#include <iostream>
// for cout, ostream
7
8
class
PHG4Hit
;
9
class
TClonesArray;
10
11
class
G4RootHitContainer
:
public
PHObject
12
{
13
public
:
14
G4RootHitContainer
();
15
~G4RootHitContainer
()
override
;
16
17
// from PHObject
18
void
identify
(std::ostream&
os
= std::cout)
const override
;
19
void
Reset
()
override
;
20
21
PHG4Hit
*
AddHit
(
const
PHG4Hit
*g4hit);
22
void
set_etotal
(
const
float
e
) {
etotal
=
e
; }
23
float
get_etotal
()
const
{
return
etotal
; }
24
25
void
set_eion
(
const
float
e
) {
eion
=
e
; }
26
float
get_eion
()
const
{
return
eion
; }
27
28
void
set_leakage
(
const
float
f
) {
leakage
=
f
; }
29
float
get_leakage
()
const
{
return
leakage
; }
30
31
void
set_event
(
const
int
i
) {
event
=
i
; }
32
int
get_event
()
const
{
return
event
; }
33
34
35
protected
:
36
float
etotal
;
37
float
eion
;
38
float
leakage
;
39
int
event
;
40
TClonesArray*
SnglHits
;
41
42
ClassDefOverride(
G4RootHitContainer
, 1)
43
};
44
45
#endif
coresoftware
blob
master
simulation
g4simulation
g4histos
G4RootHitContainer.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:14
using
1.8.2 with
sPHENIX GitHub integration