Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
CCalG4Ecal.hh
이 파일의 문서화 페이지로 가기
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 
38 
39 class CCalG4Ecal: public CCalEcal, public CCalG4Able {
40 public:
41  //Backward or Forward type
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.
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
64 
65 private:
66  //Private data members
68 
69  //Static logical volumes shared by forward and backward detectors.
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 
const XML_Char * name
Definition: expat.h:151
static G4String idName
Definition: CCalG4Ecal.hh:51
G4LogicalVolume * ptrG4Log
Definition: CCalG4Ecal.hh:37
std::vector< ptrG4Log > sensitiveLogs
Definition: CCalG4Ecal.hh:73
CCalG4Ecal(const G4String &name)
Definition: CCalG4Ecal.cc:65
G4LogicalVolume * constructGlobal()
Definition: CCalG4Ecal.cc:149
CMType type
Definition: CCalG4Ecal.hh:67
virtual void constructSensitive()
Definition: CCalG4Ecal.cc:276
void setType(CMType ty)
Definition: CCalG4Ecal.hh:48
virtual ~CCalG4Ecal()
Definition: CCalG4Ecal.cc:68
virtual G4VPhysicalVolume * constructIn(G4VPhysicalVolume *)
Definition: CCalG4Ecal.cc:74
static G4LogicalVolume * crystalmatrixLog
Definition: CCalG4Ecal.hh:70