R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
R3BNeutronWindowAndSomeAir.h
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (C) 2020 GSI Helmholtzzentrum für Schwerionenforschung GmbH *
3 * Copyright (C) 2020-2026 Members of R3B Collaboration *
4 * *
5 * This software is distributed under the terms of the *
6 * GNU General Public Licence (GPL) version 3, *
7 * copied verbatim in the file "LICENSE". *
8 * *
9 * In applying this license GSI does not waive the privileges and immunities *
10 * granted to it by virtue of its status as an Intergovernmental Organization *
11 * or submit itself to any jurisdiction. *
12 ******************************************************************************/
13
14#pragma once
15
16/* Place a neutron window (4mm steel) at xstart and air between start and stop
17 * This can be used for NeuLAND simulations as there is currently no vacuum chamber implemented.
18 * Instead, invert the problem: Use vacuum in the Cave and place a bunch o' air. Presto!
19 * Bonus: No need to adjust the magnetic field for different beam energies.
20 * The heavy ion will always fly through vacuum, and the neutrons through the right amount of material
21 */
22
23#include <FairModule.h>
24
25class TGeoMedium;
26
27class R3BNeutronWindowAndSomeAir : public FairModule
28{
29 public:
30 explicit R3BNeutronWindowAndSomeAir(double start = 700, double stop = 1300);
31
33 void ConstructRootGeometry(TGeoMatrix* _ = nullptr) override;
34
35 private:
36 TGeoMedium* FindMaterial(const std::string& mat) const;
37
38 double fStart;
39 double fStop;
40
41 public:
43};
ClassDefOverride(R3BNeutronWindowAndSomeAir, 1)
void ConstructRootGeometry(TGeoMatrix *_=nullptr) override
TGeoMedium * FindMaterial(const std::string &mat) const
R3BNeutronWindowAndSomeAir(double start=700, double stop=1300)