~chris-rogers/maus/emr_mc_digitization

« back to all changes in this revision

Viewing changes to src/common_cpp/DetModel/EMR/EMRBar.hh

  • Committer: Chris Rogers
  • Date: 2014-04-16 11:48:45 UTC
  • mfrom: (707 merge)
  • mto: This revision was merged to the branch mainline in revision 711.
  • Revision ID: chris.rogers@stfc.ac.uk-20140416114845-h3u3q7pdcxkxvovs
Update to trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* This file is part of MAUS: http://micewww.pp.rl.ac.uk:8080/projects/maus
 
2
 *
 
3
 * MAUS is free software: you can redistribute it and/or modify
 
4
 * it under the terms of the GNU General Public License as published by
 
5
 * the Free Software Foundation, either version 3 of the License, or
 
6
 * (at your option) any later version.
 
7
 *
 
8
 * MAUS is distributed in the hope that it will be useful,
 
9
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
11
 * GNU General Public License for more details.
 
12
 *
 
13
 * You should have received a copy of the GNU General Public License
 
14
 * along with MAUS.  If not, see <http://www.gnu.org/licenses/>.
 
15
 *
 
16
 */
 
17
 
 
18
#ifndef EMRBar_h
 
19
#define EMRBar_h 1
 
20
 
 
21
#include <G4Tubs.hh>
 
22
#include <G4Trap.hh>
 
23
#include <G4ThreeVector.hh>
 
24
#include <globals.hh>
 
25
 
 
26
#include "Config/MiceModule.hh"
 
27
 
 
28
class G4Tubs;
 
29
class G4Box;
 
30
class G4Trap;
 
31
class G4LogicalVolume;
 
32
class G4VPhysicalVolume;
 
33
class G4VPVParameterisation;
 
34
class G4Material;
 
35
 
 
36
/** @class EMRBar
 
37
 * This class is used in the GEANT4 simulation of the EMR detector to describe
 
38
 * the geometry of a triangular scintillator bar and the wavelength shifting fiber.
 
39
 */
 
40
 
 
41
class EMRBar {
 
42
  public:
 
43
  /** @brief Constructor
 
44
   */
 
45
  EMRBar(MiceModule* mod, G4Material* mater, G4VPhysicalVolume* mlv);
 
46
 
 
47
  /** @brief Default destructor
 
48
   */
 
49
  ~EMRBar();
 
50
 
 
51
  /** @brief The physical volume of the
 
52
   */
 
53
  G4VPhysicalVolume* physicalBar() const { return physiBar; }
 
54
 
 
55
  /** @brief The logical volume of the core
 
56
   */
 
57
  G4LogicalVolume*   logicalBar()  const { return logicBar; }
 
58
 
 
59
  /** @brief The placement of the core
 
60
   */
 
61
  G4PVPlacement* placementBar() const { return physiCalorimeter; }
 
62
 
 
63
 private:
 
64
  G4Box*             solidCalorimeter;  // pointer to the solid Calorimeter
 
65
  G4LogicalVolume*   logicCalorimeter;  // pointer to the logical Calorimeter
 
66
  G4PVPlacement* physiCalorimeter;  // pointer to the physical Calorimeter
 
67
 
 
68
  G4Trap*            solidBar;  // pointer to the solid Bar
 
69
  G4LogicalVolume*   logicBar;  // pointer to the logical Bar
 
70
  G4VPhysicalVolume* physiBar;  // pointer to the physical Bar
 
71
 
 
72
  G4Tubs*            solidHole;
 
73
  G4LogicalVolume*   logicHole;
 
74
  G4VPhysicalVolume* physiHole;
 
75
 
 
76
  G4Tubs*            solidFiberCladding;
 
77
  G4LogicalVolume*   logicFiberCladding;
 
78
  G4VPhysicalVolume* physiFiberCladding;
 
79
 
 
80
  G4Tubs*            solidFiberCore;
 
81
  G4LogicalVolume*   logicFiberCore;
 
82
  G4VPhysicalVolume* physiFiberCore;
 
83
 
 
84
  G4VPVParameterisation* barParam; // pointer to bar parameterisation
 
85
 
 
86
  G4bool fAddWLSFiber;
 
87
};
 
88
 
 
89
#endif