~maus-emr/maus/devel

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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
/* This file is part of MAUS: http://micewww.pp.rl.ac.uk:8080/projects/maus
 *
 * MAUS is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * MAUS is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with MAUS.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

#ifndef EMRBar_h
#define EMRBar_h 1

#include <G4Tubs.hh>
#include <G4Trap.hh>
#include <G4ThreeVector.hh>
#include <globals.hh>

#include "Config/MiceModule.hh"

class G4Tubs;
class G4Box;
class G4Trap;
class G4LogicalVolume;
class G4VPhysicalVolume;
class G4VPVParameterisation;
class G4Material;

/** @class SciFiPlane
 * A SciFiPlane describes a plane (or projection, view, doublet layer) of scintillating fibre
 * detector. This class is used in the GEANT4 simulation of the Sci Fi tracker to describe
 * physical arrangement of all the fibres in a doublet layer, including the description of
 * the cladding and core of each scintillating fibre.
 *
 * Modified example 1 from the GEANT4 distribution to simulate the
 * MICE scintillating fiber tracker for the MICE proposal
 */

class EMRBar {
  public:

  /** @brief Constructor
   */
  EMRBar(MiceModule* mod, G4Material* mater, G4VPhysicalVolume* mlv);

  /** @brief Default destructor
   */
  ~EMRBar();

  /** @brief The physical volume of the 
   */
  G4VPhysicalVolume* physicalBar() const { return physiBar; }

  /** @brief The logical volume of the core
   */
  G4LogicalVolume*   logicalBar()  const { return logicBar; }

  /** @brief The placement of the core
   */
  G4PVPlacement* placementBar() const { return physiCalorimeter; }

 private:

  G4Box*             solidCalorimeter;  // pointer to the solid Calorimeter
  G4LogicalVolume*   logicCalorimeter;  // pointer to the logical Calorimeter
  G4PVPlacement* physiCalorimeter;  // pointer to the physical Calorimeter
  
  G4Trap*            solidBar;  // pointer to the solid Bar
  G4LogicalVolume*   logicBar;  // pointer to the logical Bar
  G4VPhysicalVolume* physiBar;  // pointer to the physical Bar

  G4Tubs*            solidHole;  
  G4LogicalVolume*   logicHole;  
  G4VPhysicalVolume* physiHole;    
     
  G4Tubs*            solidFiberCladding;  
  G4LogicalVolume*   logicFiberCladding;  
  G4VPhysicalVolume* physiFiberCladding;    
     
  G4Tubs*            solidFiberCore;  
  G4LogicalVolume*   logicFiberCore;  
  G4VPhysicalVolume* physiFiberCore; 

  G4VPVParameterisation* barParam; // pointer to bar parameterisation

  G4bool fAddWLSFiber;
};

#endif