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
PHG4RegionInformation.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PHG4RegionInformation.h
1
// Tell emacs that this is a C++ source
2
// -*- C++ -*-.
3
//
4
// ********************************************************************
5
// * License and Disclaimer *
6
// * *
7
// * The Geant4 software is copyright of the Copyright Holders of *
8
// * the Geant4 Collaboration. It is provided under the terms and *
9
// * conditions of the Geant4 Software License, included in the file *
10
// * LICENSE and available at http://cern.ch/geant4/license . These *
11
// * include a list of copyright holders. *
12
// * *
13
// * Neither the authors of this software system, nor their employing *
14
// * institutes,nor the agencies providing financial support for this *
15
// * work make any representation or warranty, express or implied, *
16
// * regarding this software system or assume any liability for its *
17
// * use. Please see the license in the file LICENSE and URL above *
18
// * for the full disclaimer and the limitation of liability. *
19
// * *
20
// * This code implementation is the result of the scientific and *
21
// * technical work of the GEANT4 collaboration. *
22
// * By using, copying, modifying or distributing the software (or *
23
// * any work based on the software) you agree to acknowledge its *
24
// * use in resulting scientific publications, and indicate your *
25
// * acceptance of all terms of the Geant4 Software license. *
26
// ********************************************************************
27
//
28
//
29
// $Id: PHG4RegionInformation.h,v 1.3 2012/07/10 16:48:21 pinkenbu Exp $
30
// GEANT4 tag $Name: $
31
//
32
33
// Shamelessly ripped from RE01 example. We use this user data to help define
34
// transitions from one region to the next (ie. entering/exiting the calorimeter).
35
//
36
37
#ifndef G4MAIN_PHG4REGIONINFORMATION_H
38
#define G4MAIN_PHG4REGIONINFORMATION_H
39
40
#include <Geant4/G4VUserRegionInformation.hh>
41
#include <Geant4/G4Types.hh>
// for G4bool
42
43
class
PHG4RegionInformation
:
public
G4VUserRegionInformation
44
{
45
public
:
46
PHG4RegionInformation
();
47
~PHG4RegionInformation
()
override
{}
48
void
Print
()
const override
;
49
50
private
:
51
G4bool
isWorld
;
52
G4bool
isTracker
;
53
G4bool
isCalorimeter
;
54
55
public
:
56
inline
void
SetWorld
(G4bool
v
=
true
) {
isWorld
=
v
;}
57
inline
void
SetTracker
(G4bool
v
=
true
) {
isTracker
=
v
;}
58
inline
void
SetCalorimeter
(G4bool
v
=
true
) {
isCalorimeter
=
v
;}
59
inline
G4bool
IsWorld
()
const
{
return
isWorld
;}
60
inline
G4bool
IsTracker
()
const
{
return
isTracker
;}
61
inline
G4bool
IsCalorimeter
()
const
{
return
isCalorimeter
;}
62
};
63
64
#endif
65
coresoftware
blob
master
simulation
g4simulation
g4main
PHG4RegionInformation.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:15
using
1.8.2 with
sPHENIX GitHub integration