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
advanced
composite_calorimeter
include
CCalG4Ecal.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
//
27
// File: CCalG4Ecal.hh
28
// Description: Equipped to describe crystal matrix for different testbeam run
30
#ifndef CCalG4Ecal_h
31
#define CCalG4Ecal_h 1
32
33
#include "
CCalEcal.hh
"
34
#include "
CCalG4Able.hh
"
35
#include <vector>
36
37
typedef
G4LogicalVolume
*
ptrG4Log
;
38
39
class
CCalG4Ecal
:
public
CCalEcal
,
public
CCalG4Able
{
40
public
:
41
//Backward or Forward type
42
enum
CMType
{
module1
,
module2
};
43
44
//Constructor and Destructor
45
CCalG4Ecal
(
const
G4String
&
name
);
46
virtual
~CCalG4Ecal
();
47
48
void
setType
(
CMType
ty) {type = ty;}
49
50
//Prefix to all names in the Detector
51
static
G4String
idName
;
52
53
protected
:
54
//This methods actually constructs the volume.
55
virtual
G4VPhysicalVolume
*
constructIn
(
G4VPhysicalVolume
*);
56
57
//Constructs the sensitive detectors and associates them to the corresponding
58
//logical volumes
59
virtual
void
constructSensitive
() ;
60
61
private
:
62
//Methods to construct the different parts of the detector
63
G4LogicalVolume
* constructGlobal();
64
65
private
:
66
//Private data members
67
CMType
type;
68
69
//Static logical volumes shared by forward and backward detectors.
70
static
G4LogicalVolume
* crystalmatrixLog;
71
72
// Logical volumes for sensitive detectors
73
std::vector<ptrG4Log> sensitiveLogs;
74
75
};
76
77
#endif
78
79
80
81
82
83
84
85
86
87
88
89
90
91
Generated on Sat May 25 2013 14:32:07 for Geant4 by
1.8.4