Geant4
10.03.p03
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
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
CCalG4Ecal::module1
Definition:
CCalG4Ecal.hh:42
name
const XML_Char * name
Definition:
expat.h:151
CCalG4Ecal::~CCalG4Ecal
virtual ~CCalG4Ecal()
Definition:
CCalG4Ecal.cc:68
G4VPhysicalVolume
Definition:
G4VPhysicalVolume.hh:82
CCalG4Ecal::constructIn
virtual G4VPhysicalVolume * constructIn(G4VPhysicalVolume *)
Definition:
CCalG4Ecal.cc:74
CCalG4Able
Definition:
CCalG4Able.hh:51
CCalG4Ecal::setType
void setType(CMType ty)
Definition:
CCalG4Ecal.hh:48
CCalG4Ecal::idName
static G4String idName
Definition:
CCalG4Ecal.hh:51
ptrG4Log
G4LogicalVolume * ptrG4Log
Definition:
CCalG4Ecal.hh:37
G4LogicalVolume
Definition:
G4LogicalVolume.hh:190
CCalG4Ecal
Definition:
CCalG4Ecal.hh:39
CCalG4Ecal::constructSensitive
virtual void constructSensitive()
Definition:
CCalG4Ecal.cc:276
CCalG4Ecal::CMType
CMType
Definition:
CCalG4Ecal.hh:42
CCalEcal.hh
CCalEcal
Definition:
CCalEcal.hh:35
CCalG4Able.hh
CCalG4Ecal::CCalG4Ecal
CCalG4Ecal(const G4String &name)
Definition:
CCalG4Ecal.cc:65
CCalG4Ecal::module2
Definition:
CCalG4Ecal.hh:42
G4String
Definition:
G4String.hh:45
source
geant4.10.03.p03
examples
advanced
composite_calorimeter
include
CCalG4Ecal.hh
Generated on Tue Nov 28 2017 21:43:44 for Geant4 by
1.8.5