FairShip
Loading...
Searching...
No Matches
SiliconTarget.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 SND_SILICONTARGET_SILICONTARGET_H_
6#define SND_SILICONTARGET_SILICONTARGET_H_
7
8#include "Detector.h"
10#include "TGeoMedium.h"
11
12class FairVolume;
13
14class SiliconTarget : public SHiP::Detector<SiliconTargetPoint> {
15 public:
16 SiliconTarget(const char* name, Bool_t Active, const char* Title = "");
18
19 void SetSiliconTargetParameters(Double_t targetWidth, Double_t targetHeight,
20 Double_t sensorWidth, Double_t sensorLength,
21 Int_t nLayers, Double_t zPosition,
22 Double_t targetThickness,
23 Double_t targetSpacing,
24 Double_t moduleOffset);
25
26 TGeoVolume* CreateSiliconPlanes(const char* name, Double_t sensorWidth,
27 Double_t sensorLength, Double_t planeSpacing,
28 TGeoMedium* material, Int_t layerId);
29
30 void ConstructGeometry() override;
31
32 Bool_t ProcessHits(FairVolume* vol = 0) override;
33
34 private:
35 Double_t fTargetWidth;
36 Double_t fTargetHeight;
37 Double_t fSensorWidth;
38 Double_t fSensorLength;
39 Int_t fLayers;
40 Double_t fZPosition;
43 Double_t fModuleOffset;
44
45 SiliconTarget(const SiliconTarget&) = delete;
47 ClassDefOverride(SiliconTarget, 1)
48};
49
50#endif // SND_SILICONTARGET_SILICONTARGET_H_
Double_t fModuleOffset
Definition: SiliconTarget.h:43
SiliconTarget & operator=(const SiliconTarget &)=delete
Double_t fSensorLength
Definition: SiliconTarget.h:38
Double_t fTargetWidth
Definition: SiliconTarget.h:35
Double_t fTargetHeight
Definition: SiliconTarget.h:36
Bool_t ProcessHits(FairVolume *vol=0) override
void SetSiliconTargetParameters(Double_t targetWidth, Double_t targetHeight, Double_t sensorWidth, Double_t sensorLength, Int_t nLayers, Double_t zPosition, Double_t targetThickness, Double_t targetSpacing, Double_t moduleOffset)
Double_t fSensorWidth
Definition: SiliconTarget.h:37
SiliconTarget(const SiliconTarget &)=delete
Double_t fZPosition
Definition: SiliconTarget.h:40
Double_t fTargetSpacing
Definition: SiliconTarget.h:42
Double_t fTargetThickness
Definition: SiliconTarget.h:41
TGeoVolume * CreateSiliconPlanes(const char *name, Double_t sensorWidth, Double_t sensorLength, Double_t planeSpacing, TGeoMedium *material, Int_t layerId)
void ConstructGeometry() override