Geant4 VMC
Version 6.8
Toggle main menu visibility
Loading...
Searching...
No Matches
source
digits+hits
include
TG4SDConstruction.h
Go to the documentation of this file.
1
#ifndef TG4_SD_CONSTRUCTION_H
2
#define TG4_SD_CONSTRUCTION_H
3
4
//------------------------------------------------
5
// The Geant4 Virtual Monte Carlo package
6
// Copyright (C) 2007 - 2015 Ivana Hrivnacova
7
// All rights reserved.
8
//
9
// For the licensing terms see geant4_vmc/LICENSE.
10
// Contact: root-vmc@cern.ch
11
//-------------------------------------------------
12
17
18
#include "
TG4SDMessenger.h
"
19
#include "
TG4Verbose.h
"
20
21
#include <set>
22
23
class
G4LogicalVolume;
24
25
class
TVirtualMCSensitiveDetector;
26
38
39
class
TG4SDConstruction
:
public
TG4Verbose
40
41
{
42
public
:
43
TG4SDConstruction
();
44
virtual
~TG4SDConstruction
();
45
46
// static methods
47
static
const
G4String&
GetDefaultSVLabel
();
48
49
// methods
50
virtual
void
Construct
();
51
52
// set methods
53
void
AddSelection
(
const
G4String& selection);
54
void
SetExclusiveSDScoring
(G4bool value);
55
void
SetSelectionFromTGeo
(G4bool value);
56
void
SetSensitiveVolumeLabel
(
const
G4String& label);
57
void
SetIsGflash
(G4bool isGflash);
58
59
private
:
60
// methods
61
void
CreateSD
(G4LogicalVolume* lv, TVirtualMCSensitiveDetector* userSD)
const
;
62
void
FillSDSelectionFromTGeo
();
63
void
MapVolumesToInstanceIds
();
64
void
MapVolumesToSDIds
();
65
66
TG4SDMessenger
fMessenger
;
67
69
static
const
G4String
fgkDefaultSVLabel
;
70
72
G4bool
fExclusiveSDScoring
;
73
75
G4bool
fSelectionFromTGeo
;
76
78
G4String
fSVLabel
;
79
81
std::set<G4String>
fSelection
;
82
84
G4bool
fIsGflash
;
85
};
86
87
// inline functions
88
89
inline
const
G4String&
TG4SDConstruction::GetDefaultSVLabel
()
90
{
93
return
fgkDefaultSVLabel
;
94
}
95
96
inline
void
TG4SDConstruction::SetExclusiveSDScoring
(G4bool value)
97
{
99
fExclusiveSDScoring
= value;
100
}
101
102
inline
void
TG4SDConstruction::SetSelectionFromTGeo
(G4bool value)
103
{
105
fSelectionFromTGeo
= value;
106
}
107
108
inline
void
TG4SDConstruction::SetSensitiveVolumeLabel
(
const
G4String& label)
109
{
112
fSVLabel
= label;
113
}
114
115
inline
void
TG4SDConstruction::SetIsGflash
(G4bool isGflash)
116
{
118
fIsGflash
= isGflash;
119
}
120
121
#endif
// TG4_SD_CONSTRUCTION_H
TG4SDMessenger.h
Definition of the TG4SDMessenger class.
TG4Verbose.h
Definition of the TG4Verbose class.
TG4SDConstruction::CreateSD
void CreateSD(G4LogicalVolume *lv, TVirtualMCSensitiveDetector *userSD) const
Definition
TG4SDConstruction.cxx:60
TG4SDConstruction::GetDefaultSVLabel
static const G4String & GetDefaultSVLabel()
Definition
TG4SDConstruction.h:89
TG4SDConstruction::SetIsGflash
void SetIsGflash(G4bool isGflash)
Definition
TG4SDConstruction.h:115
TG4SDConstruction::SetSelectionFromTGeo
void SetSelectionFromTGeo(G4bool value)
Definition
TG4SDConstruction.h:102
TG4SDConstruction::FillSDSelectionFromTGeo
void FillSDSelectionFromTGeo()
Definition
TG4SDConstruction.cxx:132
TG4SDConstruction::SetExclusiveSDScoring
void SetExclusiveSDScoring(G4bool value)
Definition
TG4SDConstruction.h:96
TG4SDConstruction::fSVLabel
G4String fSVLabel
the label used to flag sensitive volumes in TGeo
Definition
TG4SDConstruction.h:78
TG4SDConstruction::SetSensitiveVolumeLabel
void SetSensitiveVolumeLabel(const G4String &label)
Definition
TG4SDConstruction.h:108
TG4SDConstruction::fSelection
std::set< G4String > fSelection
the set of volumes names which are selected as sensitive
Definition
TG4SDConstruction.h:81
TG4SDConstruction::AddSelection
void AddSelection(const G4String &selection)
Definition
TG4SDConstruction.cxx:315
TG4SDConstruction::Construct
virtual void Construct()
Definition
TG4SDConstruction.cxx:228
TG4SDConstruction::fIsGflash
G4bool fIsGflash
the flag to acivate creating Gflash sensitive detectors
Definition
TG4SDConstruction.h:84
TG4SDConstruction::MapVolumesToInstanceIds
void MapVolumesToInstanceIds()
Definition
TG4SDConstruction.cxx:164
TG4SDConstruction::fgkDefaultSVLabel
static const G4String fgkDefaultSVLabel
default value of the sensitive volumes label
Definition
TG4SDConstruction.h:69
TG4SDConstruction::fExclusiveSDScoring
G4bool fExclusiveSDScoring
the flag to activate new scoring via user defined sensitive detectors
Definition
TG4SDConstruction.h:72
TG4SDConstruction::fMessenger
TG4SDMessenger fMessenger
messenger
Definition
TG4SDConstruction.h:66
TG4SDConstruction::~TG4SDConstruction
virtual ~TG4SDConstruction()
Definition
TG4SDConstruction.cxx:50
TG4SDConstruction::TG4SDConstruction
TG4SDConstruction()
Definition
TG4SDConstruction.cxx:37
TG4SDConstruction::fSelectionFromTGeo
G4bool fSelectionFromTGeo
the flag to activate retrieving sensitive volumes from TGeo
Definition
TG4SDConstruction.h:75
TG4SDConstruction::MapVolumesToSDIds
void MapVolumesToSDIds()
Definition
TG4SDConstruction.cxx:191
TG4SDMessenger
Messenger class that defines commands for the SD construction.
Definition
TG4SDMessenger.h:41
TG4Verbose::TG4Verbose
TG4Verbose(const G4String &cmdName)
Definition
TG4Verbose.cxx:24
Generated on
for Geant4 VMC by
1.17.0