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
PHG4SpacalDisplayAction.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PHG4SpacalDisplayAction.h
1
// Tell emacs that this is a C++ source
2
// -*- C++ -*-.
3
#ifndef G4DETECTORS_PHG4SPACALDISPLAYACTION_H
4
#define G4DETECTORS_PHG4SPACALDISPLAYACTION_H
5
6
#include <
g4main/PHG4DisplayAction.h
>
7
8
#include <map>
9
#include <string>
10
#include <vector>
11
12
class
G4VisAttributes;
13
class
G4LogicalVolume;
14
class
G4VPhysicalVolume
;
15
class
PHG4CylinderGeom_Spacalv1
;
16
17
class
PHG4SpacalDisplayAction
:
public
PHG4DisplayAction
18
{
19
public
:
20
explicit
PHG4SpacalDisplayAction
(
const
std::string
&
name
);
21
22
~PHG4SpacalDisplayAction
()
override
;
23
24
void
ApplyDisplayAction
(
G4VPhysicalVolume
*physvol)
override
;
25
void
AddVolume
(G4LogicalVolume *logvol,
const
std::string
&mat) {
m_LogicalVolumeMap
[logvol] = mat; }
26
void
SetGeom
(
const
PHG4CylinderGeom_Spacalv1
*geo) {
m_Geom
= geo; }
27
void
AddMaterial
(
const
std::string
&name,
const
std::string
&mat) {
m_MaterialMap
[
name
] = mat; }
28
29
private
:
30
const
PHG4CylinderGeom_Spacalv1
*
m_Geom
=
nullptr
;
31
std::map<G4LogicalVolume *, std::string>
m_LogicalVolumeMap
;
32
std::vector<G4VisAttributes *>
m_VisAttVec
;
33
std::map<std::string, std::string>
m_MaterialMap
;
34
};
35
36
#endif // G4DETECTORS_PHG4TPCDISPLAYACTION_H
coresoftware
blob
master
simulation
g4simulation
g4detectors
PHG4SpacalDisplayAction.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:13
using
1.8.2 with
sPHENIX GitHub integration