VMC Examples Version 6.6
Loading...
Searching...
No Matches
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
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
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
The chamber parameterisation.
void ComputeTransformation(Int_t copyNo, Double_t *position) const
Double_t fSpacing
The distance between the chambers' centers.
Ex02ChamberParameterisation(Int_t noChambers, Double_t startZ, Double_t spacingZ, Double_t widthChamber, Double_t lengthInitial, Double_t lengthFinal)
Double_t fStartZ
The Z of the center of first chamber.
Double_t fHalfLengthFirst
The first half-length.
Double_t fHalfLengthIncr
The Increment for the half-length.
void ComputeDimensions(Int_t copyNo, Double_t *dimension) const
Double_t fHalfWidth
The half-width of each tracker chamber.