VMC Examples
Version 6.8
Toggle main menu visibility
Loading...
Searching...
No Matches
examples
E02
include
Ex02ChamberParameterisation.h
Go to the documentation of this file.
1
#ifndef Ex02ChamberParameterisation_H
2
#define Ex02ChamberParameterisation_H
3
4
//------------------------------------------------
5
// The Virtual Monte Carlo examples
6
// Copyright (C) 2007 - 2014 Ivana Hrivnacova
7
// All rights reserved.
8
//
9
// For the licensing terms see geant4_vmc/LICENSE.
10
// Contact: root-vmc@cern.ch
11
//-------------------------------------------------
12
13
/// \file Ex02ChamberParameterisation.h
14
/// \brief Definition of the Ex02ChamberParameterisation class
15
///
16
/// Geant4 ExampleN02 adapted to Virtual Monte Carlo \n
17
/// Id: Ex02ChamberParameterisation.hh,v 1.6 2002/01/09 17:24:08 ranjard Exp \n
18
/// GEANT4 tag Name: geant4-04-00-patch-02
19
///
20
/// \author I. Hrivnacova; IPN, Orsay
21
22
#include <TObject.h>
23
24
/// \ingroup E02
25
/// \brief The chamber parameterisation
26
///
27
/// A parameterisation that describes a series of boxes along Z
28
/// The boxes have equal width, & their lengths are a linear equation.
29
// They are spaced an equal distance apart, starting from given location.
30
///
31
/// \date 21/04/2002
32
/// \author I. Hrivnacova; IPN, Orsay
33
34
class
Ex02ChamberParameterisation
:
public
TObject
35
{
36
public
:
37
Ex02ChamberParameterisation
(Int_t noChambers, Double_t startZ,
38
Double_t spacingZ, Double_t widthChamber, Double_t lengthInitial,
39
Double_t lengthFinal);
40
41
virtual
~Ex02ChamberParameterisation
();
42
43
// methods
44
void
ComputeTransformation
(Int_t copyNo, Double_t* position)
const
;
45
void
ComputeDimensions
(Int_t copyNo, Double_t* dimension)
const
;
46
47
private
:
48
Int_t
fNoChambers
;
///< Number of chambers
49
Double_t
fStartZ
;
///< The Z of the center of first chamber
50
Double_t
fHalfWidth
;
///< The half-width of each tracker chamber
51
Double_t
fSpacing
;
///< The distance between the chambers' centers
52
Double_t
fHalfLengthFirst
;
///< The first half-length
53
Double_t
fHalfLengthIncr
;
///< The Increment for the half-length
54
55
ClassDef(
Ex02ChamberParameterisation
, 1)
// Ex02ChamberParameterisation
56
};
57
58
#endif
Ex02ChamberParameterisation::ComputeTransformation
void ComputeTransformation(Int_t copyNo, Double_t *position) const
Definition
Ex02ChamberParameterisation.cxx:64
Ex02ChamberParameterisation::fNoChambers
Int_t fNoChambers
Number of chambers.
Definition
Ex02ChamberParameterisation.h:48
Ex02ChamberParameterisation::fSpacing
Double_t fSpacing
The distance between the chambers' centers.
Definition
Ex02ChamberParameterisation.h:51
Ex02ChamberParameterisation::Ex02ChamberParameterisation
Ex02ChamberParameterisation(Int_t noChambers, Double_t startZ, Double_t spacingZ, Double_t widthChamber, Double_t lengthInitial, Double_t lengthFinal)
Definition
Ex02ChamberParameterisation.cxx:29
Ex02ChamberParameterisation::fStartZ
Double_t fStartZ
The Z of the center of first chamber.
Definition
Ex02ChamberParameterisation.h:49
Ex02ChamberParameterisation::fHalfLengthFirst
Double_t fHalfLengthFirst
The first half-length.
Definition
Ex02ChamberParameterisation.h:52
Ex02ChamberParameterisation::fHalfLengthIncr
Double_t fHalfLengthIncr
The Increment for the half-length.
Definition
Ex02ChamberParameterisation.h:53
Ex02ChamberParameterisation::ComputeDimensions
void ComputeDimensions(Int_t copyNo, Double_t *dimension) const
Definition
Ex02ChamberParameterisation.cxx:77
Ex02ChamberParameterisation::~Ex02ChamberParameterisation
virtual ~Ex02ChamberParameterisation()
Definition
Ex02ChamberParameterisation.cxx:58
Ex02ChamberParameterisation::fHalfWidth
Double_t fHalfWidth
The half-width of each tracker chamber.
Definition
Ex02ChamberParameterisation.h:50
TObject
Generated on
for VMC Examples by
1.17.0