FairShip
Loading...
Searching...
No Matches
UpstreamTagger.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 UPSTREAMTAGGER_UPSTREAMTAGGER_H_
6#define UPSTREAMTAGGER_UPSTREAMTAGGER_H_
7
8#include <map>
9#include <vector>
10
11#include "Detector.h"
12#include "ShipUnit.h"
13#include "TLorentzVector.h"
14#include "TVector3.h"
15
17class FairVolume;
18class TClonesArray;
19
20using ShipUnit::cm;
21using ShipUnit::m;
22
44class UpstreamTagger : public SHiP::Detector<UpstreamTaggerPoint> {
45 public:
50 UpstreamTagger(const char* Name, Bool_t Active);
51
54
58 Bool_t ProcessHits(FairVolume* v = 0) override;
59
61 void SetZposition(Double_t z) { det_zPos = z; }
62 void SetBoxDimensions(Double_t x, Double_t y, Double_t z) {
63 xbox_fulldet = x;
64 ybox_fulldet = y;
65 zbox_fulldet = z;
66 }
67
69 void ConstructGeometry() override;
70
71 Double_t module[11][3]; // x,y,z centre positions for each module
72 // TODO Avoid 1-indexed array!
73
76 Double_t det_zPos;
77 // Detector box dimensions (set via SetBoxDimensions, defaults provided below)
78 Double_t xbox_fulldet = 4.4 * m;
79 Double_t ybox_fulldet = 6.4 * m;
80 Double_t zbox_fulldet =
81 16.0 * cm;
82
83 private:
84 TGeoVolume* UpstreamTagger_fulldet; // Timing_detector_1 object
85 TGeoVolume* scoringPlaneUBText; // new scoring plane
90
91 ClassDefOverride(UpstreamTagger, 3)
92};
93
94#endif // UPSTREAMTAGGER_UPSTREAMTAGGER_H_
Double_t cm
Double_t m
Upstream Background Tagger (UBT) detector.
Bool_t ProcessHits(FairVolume *v=0) override
UpstreamTagger(const UpstreamTagger &)=delete
Double_t module[11][3]
Double_t ybox_fulldet
X dimension (default: 4.4 m)
void ConstructGeometry() override
TGeoVolume * scoringPlaneUBText
Double_t xbox_fulldet
z-position of detector (set via SetZposition)
void SetBoxDimensions(Double_t x, Double_t y, Double_t z)
void SetZposition(Double_t z)
Double_t det_zPos
UpstreamTagger & operator=(const UpstreamTagger &)=delete
TGeoVolume * UpstreamTagger_fulldet
Z dimension/thickness (default: 16 cm)
Double_t zbox_fulldet
Y dimension (default: 6.4 m)