FairShip
Loading...
Searching...
No Matches
ShipMagnet.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-3.0-or-later
2// SPDX-FileCopyrightText: Copyright CERN for the benefit of the SHiP
3// Collaboration
4
5#ifndef PASSIVE_SHIPMAGNET_H_
6#define PASSIVE_SHIPMAGNET_H_
7
8#include <string> // for string
9
10#include "FairModule.h" // for FairModule
11#include "Rtypes.h" // for ShipMagnet::Class, Bool_t, etc
12#include "TGeoMedium.h"
13
14class ShipMagnet : public FairModule {
15 public:
16 explicit ShipMagnet(const char* name, const char* Title = "SHiP Magnet",
17 Double_t z = 2018., Int_t c = 2, Double_t dx = 3,
18 Double_t dy = 5, Double_t fl = 2, Double_t YW = 1.,
19 Double_t YD = 1., Double_t CT = 1.);
20 ShipMagnet();
21 ~ShipMagnet() override;
22 void ConstructGeometry() override;
23
24 protected:
25 Int_t fDesign; // design, 1=circular 5m, 2 = ellipse 5x10, 3 = rectangular
26 Int_t fSpecMagz; // z position
27 Double_t fDy; // y diameter of ellipse
28 Double_t fDx; // x diameter of ellipse
30 Double_t floorheight;
31 TGeoVolume* MagnetSupport(Double_t hwidth, Double_t hheight, Double_t dz,
32 Int_t colour, TGeoMedium* material);
33};
34
35#endif // PASSIVE_SHIPMAGNET_H_
Double_t floorheight
Definition ShipMagnet.h:30
Double_t YokeWidth
Definition ShipMagnet.h:29
Int_t fSpecMagz
Definition ShipMagnet.h:26
void ConstructGeometry() override
Double_t fDy
Definition ShipMagnet.h:27
~ShipMagnet() override
Double_t fDx
Definition ShipMagnet.h:28
Double_t CoilThick
Definition ShipMagnet.h:29
TGeoVolume * MagnetSupport(Double_t hwidth, Double_t hheight, Double_t dz, Int_t colour, TGeoMedium *material)
Int_t fDesign
Definition ShipMagnet.h:25
Double_t YokeDepth
Definition ShipMagnet.h:29
ShipMagnet(const char *name, const char *Title="SHiP Magnet", Double_t z=2018., Int_t c=2, Double_t dx=3, Double_t dy=5, Double_t fl=2, Double_t YW=1., Double_t YD=1., Double_t CT=1.)