FairShip
Loading...
Searching...
No Matches
ShipTargetStation.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_SHIPTARGETSTATION_H_
6#define PASSIVE_SHIPTARGETSTATION_H_
7
8#include <cstdlib>
9#include <string> // for string
10
11#include "FairModule.h" // for FairModule
12#include "Rtypes.h" // for ShipTargetStation::Class, Bool_t, etc
13
14class ShipTargetStation : public FairModule {
15 public:
16 ShipTargetStation(const char* name, const Double_t tl, const Double_t tz,
17 const int nS, const int HeT,
18 const char* Title = "ShipTargetStation");
21 void ConstructGeometry() override;
22 void SetLayerPosMat(Float_t d, const std::vector<float>& L,
23 const std::vector<float>& G,
24 const std::vector<std::string>& M) {
25 fDiameter = d;
26 assert(L.size() == fnS);
27 fL = L;
28 assert(M.size() == fnS);
29 fM = M;
30 assert(G.size() == fnS);
31 fG = G;
32 }
33
35 void SetDesign(Int_t design) { fDesign = design; }
37 void SetLastDiskDiameter(Double_t d) { fDiameter2 = d; }
43
44 protected:
45 Double_t fTargetLength; //
46 Double_t fTargetZ; //
47 Double_t fDiameter; //
48 Double_t fDiameter2{0}; // diameter of last disk (design 2)
49 Double_t fShieldingReferenceLength{0}; // 0 = unset
50 std::vector<float> fL; // absorber width per layer
51 std::vector<float> fG; // gap after layer
52 std::vector<std::string> fM; // absorber material
53 size_t fnS;
54 Int_t fHeT;
55 Int_t fDesign{1};
56};
57#endif // PASSIVE_SHIPTARGETSTATION_H_
void SetDesign(Int_t design)
~ShipTargetStation() override
void SetShieldingReferenceLength(Double_t l)
void ConstructGeometry() override
Double_t fShieldingReferenceLength
void SetLayerPosMat(Float_t d, const std::vector< float > &L, const std::vector< float > &G, const std::vector< std::string > &M)
std::vector< std::string > fM
std::vector< float > fG
void SetLastDiskDiameter(Double_t d)
ShipTargetStation(const char *name, const Double_t tl, const Double_t tz, const int nS, const int HeT, const char *Title="ShipTargetStation")
std::vector< float > fL