FairShip
Loading...
Searching...
No Matches
ShipCave.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_SHIPCAVE_H_
6#define PASSIVE_SHIPCAVE_H_
7
8#include "FairModule.h" // for FairModule
9#include "Rtypes.h" // for ShipCave::Class, ClassDef, etc
10
11class ShipCave : public FairModule {
12 public:
13 explicit ShipCave(const char* name, const char* Title = "Exp Cave");
14 ShipCave();
15 ~ShipCave() override;
16 void ConstructGeometry() override;
17
19 void SetCavernDimensions(Double_t TCC8_length, Double_t ECN3_length,
20 Double_t stair_step_length, Double_t z_transition) {
21 fTCC8Length = TCC8_length;
22 fECN3Length = ECN3_length;
23 fStairStepLength = stair_step_length;
24 fZTransition = z_transition;
25 }
26
27 Double_t GetCavernEndZ() const { return fZTransition + fECN3Length; }
30 void SetSpectrometerZ(Double_t z) { fZSpectrometer = z; }
31
32 private:
33 Double_t fTCC8Length = 17000.;
34 Double_t fECN3Length = 10000.;
35 Double_t fStairStepLength = 82.;
36 Double_t fZTransition = 2052.;
37 Double_t fZSpectrometer = 8957.;
38 Double_t world[3];
39
40 public:
41};
42
43#endif // PASSIVE_SHIPCAVE_H_
Double_t fStairStepLength
Definition ShipCave.h:35
void SetCavernDimensions(Double_t TCC8_length, Double_t ECN3_length, Double_t stair_step_length, Double_t z_transition)
Definition ShipCave.h:19
~ShipCave() override
Double_t fZSpectrometer
Definition ShipCave.h:37
Double_t fTCC8Length
Definition ShipCave.h:33
Double_t GetCavernEndZ() const
Definition ShipCave.h:27
void ConstructGeometry() override
Definition ShipCave.cxx:24
Double_t world[3]
Definition ShipCave.h:38
Double_t fZTransition
Definition ShipCave.h:36
void SetSpectrometerZ(Double_t z)
Definition ShipCave.h:30
Double_t fECN3Length
Definition ShipCave.h:34
ShipCave(const char *name, const char *Title="Exp Cave")
Definition ShipCave.cxx:111