ModTypeRPD.hh 6.85 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
//
// ********************************************************************
// * License and Disclaimer                                           *
// *                                                                  *
// * The  Geant4 software  is  copyright of the Copyright Holders  of *
// * the Geant4 Collaboration.  It is provided  under  the terms  and *
// * conditions of the Geant4 Software License,  included in the file *
// * LICENSE and available at  http://cern.ch/geant4/license .  These *
// * include a list of copyright holders.                             *
// *                                                                  *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work  make  any representation or  warranty, express or implied, *
// * regarding  this  software system or assume any liability for its *
// * use.  Please see the license in the file  LICENSE  and URL above *
// * for the full disclaimer and the limitation of liability.         *
// *                                                                  *
// * This  code  implementation is the result of  the  scientific and *
// * technical work of the GEANT4 collaboration.                      *
// * By using,  copying,  modifying or  distributing the software (or *
// * any work based  on the software)  you  agree  to acknowledge its *
// * use  in  resulting  scientific  publications,  and indicate your *
// * acceptance of all terms of the Geant4 Software license.          *
// ********************************************************************
//
26
27
28
29
/// \file ModTypeRPD.hh
/// \brief Implementation of the ModTypeRPD class
/// \author Aric Tate
/// \date February 2019
30
31
32
33
34
35
36

#ifndef ModTypeRPD_h
#define ModTypeRPD_h 1


#include "globals.hh"
#include "G4PVPlacement.hh"
37
#include "G4SubtractionSolid.hh"
38
#include "G4AssemblyVolume.hh"
39
#include "Materials.hh"
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54

#include <vector>


class G4VPhysicalVolume;
class G4LogicalVolume;
class G4VSolid;
class G4Material;

/// Detector construction class to define materials and geometry.

class ModTypeRPD
{
public:
  ModTypeRPD();
55
  ModTypeRPD(const int, ModTypeRPD*);
56
  ModTypeRPD(const int, G4LogicalVolume*, G4ThreeVector*);
57
  ~ModTypeRPD();
58
59
60



61
  virtual void  Construct();
62
  virtual void  ConstructCMSDetector();
63
  virtual void  ConstructPanFluteDetector();
64
65

  virtual void  DefineMaterials();
66

67

68
69
  inline  void  SetPosition          ( G4ThreeVector* vec ){ delete m_pos;       m_pos       = vec; }
  inline  void  SetFiberDiameters    ( G4ThreeVector* vec ){ delete m_fiberDiam; m_fiberDiam = vec; }
70
71
72
  inline  void  SetHousingThickness  ( G4double       arg ){ m_HousingThickness = arg; }
  inline  void  SetFiberPitch        ( G4double       arg ){ m_fiberPitch       = arg; }
  inline  void  SetTileSize          ( G4double       arg ){ m_tileSize         = arg; }
73
74
75
76
  inline  void  SetMinWallThickness  ( G4double       arg ){ m_minWallThickness = arg; }
  inline  void  SetDetectorType      ( G4String       arg ){ m_detType          = arg; }
  inline  void  SetOpticalFlag       ( G4bool         arg ){ OPTICAL            = arg; }
  inline  void  SetOverlapsFlag      ( G4bool         arg ){ CHECK_OVERLAPS     = arg; }
77
78
79
80
81


  inline  G4ThreeVector* GetPosition ( ){ return m_pos;    }
  inline  G4int          GetModNum   ( ){ return m_modNum; }

82
protected:
83
84
85
86
87
88
  const G4int      m_modNum;
  G4ThreeVector*   m_pos;
  G4ThreeVector*   m_fiberDiam;
  G4double         m_HousingThickness;
  G4double         m_fiberPitch;
  G4double         m_tileSize;
89
90
91
92
93
  G4double         m_minWallThickness;
  G4String         m_detType;
  G4bool           OPTICAL;
  G4bool           CHECK_OVERLAPS;
  Materials*       materials;
94
  G4LogicalVolume* m_logicMother;
95

96

97
protected:
98
99
100
101
102
103
104
105

  G4Material*           m_matQuartz;
  G4Material*           m_Al;
  G4Material*           m_Poly;
  G4Material*           m_Air;
  G4Material*           m_PMMA;
  G4Material*           m_Grease;

106
  G4OpticalSurface*   m_photonDetSurface;
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140

  G4SubtractionSolid* m_tile;

  G4VSolid*           m_tile_no_fiber_hole;
  G4VSolid*           m_fiber_subtract;
  G4LogicalVolume*    m_tileLogical;
  G4VPhysicalVolume*  m_tilePhysical[4][4];


  G4VSolid*          m_foilV[4];
  G4LogicalVolume*   m_foilVLogical[4];
  G4VPhysicalVolume* m_foilVPhysical[4][4];

  G4VSolid*          m_foilVfront;
  G4LogicalVolume*   m_foilVfrontLogical;
  G4VPhysicalVolume* m_foilVfrontPhysical[4][4];

  G4VSolid*          m_foilH;
  G4LogicalVolume*   m_foilHLogical;
  G4VPhysicalVolume* m_foilHPhysical[4][4];

  G4SubtractionSolid* m_foilHtop_hole;
  G4VSolid*          m_foilHtop;
  G4LogicalVolume*   m_foilHtopLogical;
  G4VPhysicalVolume* m_foilHtopPhysical[4];

  G4VSolid*          m_AlcaseV;
  G4LogicalVolume*   m_AlcaseVLogical;
  G4VPhysicalVolume* m_AlcaseVPhysical[5];

  G4VSolid*          m_Alcase;
  G4LogicalVolume*   m_AlcaseLogical;
  G4VPhysicalVolume* m_AlcasePhysical[2];

141
  G4VSolid*          m_fiber[4];
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
  G4LogicalVolume*   m_fiberLogical[64];//4
  G4VPhysicalVolume* m_fiberPhysical[64];

  G4VSolid*          m_fiberclad[4];
  G4LogicalVolume*   m_fibercladLogical[4];
  G4VPhysicalVolume* m_fibercladPhysical[64];

  G4VSolid*          m_fibergrease[4];
  G4LogicalVolume*   m_fibergreaseLogical[4];
  G4VPhysicalVolume* m_fibergreasePhysical[64];

  G4VSolid*          m_air_detect;
  G4LogicalVolume*   m_air_detect_Logical[64];
  G4VPhysicalVolume* m_air_detectPhysical[64];


//test_setup
  G4VSolid*           m_test_tile;
  G4LogicalVolume*    m_test_tileLogical;
  G4VPhysicalVolume*  m_test_tilePhysical;

  G4VSolid*           m_test_alum;
  G4LogicalVolume*    m_test_alumLogical;
  G4VPhysicalVolume*  m_test_alumPhysical;

  G4VSolid*           m_test_wls;
  G4LogicalVolume*    m_test_wlsLogical;
  G4VPhysicalVolume*  m_test_wlsPhysical;

  G4VSolid*           m_test_PD;
  G4LogicalVolume*    m_test_PDLogical;
  G4VPhysicalVolume*  m_test_PDPhysical;

  G4VSolid*           m_test_clad;
  G4LogicalVolume*    m_test_cladLogical;
  G4VPhysicalVolume*  m_test_cladPhysical[2];

  G4VSolid*           m_test_grease;
  G4LogicalVolume*    m_test_greaseLogical;
  G4VPhysicalVolume*  m_test_greasePhysical[2];

  G4VSolid*           m_test_block;
  G4LogicalVolume*    m_test_blockLogical;
  G4VPhysicalVolume*  m_test_blockPhysical[2];

  //pan flute rpd
188
189
190
191
  G4VSolid*           m_PFrpd_housing;
  G4LogicalVolume*    m_PFrpd_housingLogical;
  G4VPhysicalVolume*  m_PFrpd_housingPhysical;

192
  G4VSolid*           m_PFrpd[4];
193
  G4LogicalVolume*    m_PFrpdLogical[4];
194

195
  G4VSolid*           m_PFrpd_channel[4];
196
  G4SubtractionSolid* m_subChannel[4];
197
  G4LogicalVolume*    m_PFrpd_channelLogical[4];
198
199

  G4AssemblyVolume*   m_PFrpd_FiberAssy[4];
200
201

  G4VSolid*           m_PFdetec;
202
  G4LogicalVolume*    m_PFdetecLogical;
203
204

  G4int               m_PFrpd_cnt;
205
206
207
208

  //rpd booleans
  bool rpd_comp[8];

209
210
211
212
213
};

//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......

#endif