Geant4
9.6.p02
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
geant4_9_6_p02
examples
extended
geometry
olap
include
OlapManager.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
//
28
//
29
//
30
// $Id$
31
//
32
//
33
// --------------------------------------------------------------
34
// OlapManager
35
//
36
// Author: Martin Liendl - Martin.Liendl@cern.ch
37
//
38
// --------------------------------------------------------------
39
//
40
#ifndef OlapManager_h
41
#define OlapManager_h
42
43
#include <vector>
44
#include <map>
45
#include <set>
46
47
#include "
globals.hh
"
48
#include "
G4LogicalVolumeStore.hh
"
49
#include "
G4LogicalVolume.hh
"
50
#include "
OlapNotify.hh
"
51
#include "
OlapEventAction.hh
"
// class OlapInfo!
52
53
class
OlapManagerMessenger
;
54
class
OlapDetConstr
;
55
class
OlapVolTree;
56
class
G4RunManager
;
57
class
G4GeoNav
;
58
class
OlapGui;
59
class
CMSPrimaryGeneratorAction;
60
class
OlapGenerator
;
61
62
class
OlapManager
63
{
64
public
:
65
~OlapManager
();
66
static
OlapManager
*
GetOlapManager
();
67
void
TriggerRun
();
68
void
TriggerFull
(
G4int
=10);
69
G4VPhysicalVolume
*
GetNewWorld
();
70
G4VPhysicalVolume
*
GetFullWorld
();
71
//G4bool SetNextWorld(G4int=1);
72
//G4bool SetPrevWorld(G4int=1);
73
void
SetGrid
(
G4int
,
G4int
,
G4int
);
74
void
SetDelta
(
G4double
d
) { delta =
d
;}
75
G4double
Delta
() {
return
delta;}
76
G4bool
Next
();
77
void
ListLV
(
const
G4String
&);
78
void
GotoLV
(
const
G4String
&);
79
void
ChangeLV
(
const
G4String
&);
80
void
SetNewWorld
(
G4LogicalVolume
*);
81
void
SetRotation
(
G4double
theta,
G4double
phi,
G4double
alpha
);
82
G4LogicalVolume
*
GetOriginalWorld
();
83
void
PwdLV
();
84
void
LsLV
();
85
void
TestVolTree
();
86
G4int
GetNrLVs
();
88
// next trigger/triggerFull will continue!
89
void
Interrupt
() { interrupt=true ; }
90
void
registerNotification
(
OlapNotify
*
n
) { theNotifs.insert(n); }
91
void
notifyNewWorld
(
G4LogicalVolume
*);
92
void
notifyOlaps
(
const
std::vector<OlapInfo*> &);
93
void
deRegisterNotification
(
OlapNotify
*) { ; }
94
// FIXME: handle completly different in next redesign!
95
std::map<G4LogicalVolume *, G4bool>
NoOlapMap
;
96
97
private
:
98
99
OlapManager
();
100
101
OlapManagerMessenger
* theMessenger;
102
OlapDetConstr
* theDet;
103
104
OlapGenerator
* olapGenerator;
105
CMSPrimaryGeneratorAction * cmsGenerator;
106
G4double
delta;
107
G4int
eventsPerRun;
108
G4int
lvPos;
109
G4bool
polyMode;
110
G4RunManager
* theRunManager;
111
G4LogicalVolumeStore
* theLVStore;
112
std::vector<G4LogicalVolume*>::iterator theLVit;
113
std::vector<G4LogicalVolume*> theLVs;
114
static
OlapManager
* theInstance;
115
G4GeoNav
* theGeoNav;
116
std::set<OlapNotify*> theNotifs;
117
G4bool
interrupt;
118
};
119
#endif
Generated on Sat May 25 2013 14:32:27 for Geant4 by
1.8.4