FairShip
Loading...
Searching...
No Matches
TimeDet.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 TIMEDET_TIMEDET_H_
6#define TIMEDET_TIMEDET_H_
7
8#include <map>
9#include <vector>
10
11#include "Detector.h"
12#include "TLorentzVector.h"
13#include "TVector3.h"
14
15class TimeDetPoint;
16class FairVolume;
17class TClonesArray;
18
19class TimeDet : public SHiP::Detector<TimeDetPoint> {
20 public:
25 TimeDet(const char* Name, Bool_t Active);
26
28 TimeDet();
29
33 Bool_t ProcessHits(FairVolume* v = nullptr) override;
34
36 void SetZposition(Double_t z) { fzPos = z; }
37 void SetBarZspacing(Double_t row, Double_t column) {
38 fdzBarRow = row;
39 fdzBarCol = column;
40 }
41 void SetBarZ(Double_t dz) { fzBar = dz; }
42 void SetSizeX(Double_t x) { fxSize = x; }
43 void SetSizeY(Double_t y) { fySize = y; }
44
45 Int_t GetNColumns() const { return fNCol; }
46 Int_t GetNRows() const { return fNRow; }
47 Int_t GetNBars() const { return fNBars; }
48 Double_t GetBarSizeX() const { return fxBar; }
49 Double_t GetBarSizeY() const { return fyBar; }
50 Double_t GetBarSizeZ() const { return fzBar; }
51 Double_t GetBarOverlapX() const { return fxOv; }
52 Double_t GetBarOverlapY() const { return fyOv; }
53
54 double GetXCol(int ic) const;
55 double GetYRow(int ir) const;
56 void GetBarRowCol(int ib, int& irow, int& icol) const;
57 double GetZBar(int ir, int ic) const;
58
60 void ConstructGeometry() override;
61
62 private:
64 Double_t fzPos;
65
66 Double_t fxSize;
67 Double_t fySize;
68
69 Double_t fxBar;
70 Double_t fyBar;
71 Double_t fzBar;
72
73 Double_t fdzBarCol;
74 Double_t fdzBarRow;
75
76 Int_t fNCol;
77 Int_t fNRow;
78
79 Double_t fxCenter;
80 Double_t fyCenter;
81
82 Int_t fNBars;
83 Double_t fxOv;
84 Double_t fyOv;
85
86 TimeDet(const TimeDet&) = delete;
87 TimeDet& operator=(const TimeDet&) = delete;
88};
89
90#endif // TIMEDET_TIMEDET_H_
Double_t fxSize
z-position of veto station
Definition TimeDet.h:66
Double_t fxBar
height of the detector
Definition TimeDet.h:69
Int_t GetNColumns() const
Definition TimeDet.h:45
Double_t GetBarSizeY() const
Definition TimeDet.h:49
Double_t fyOv
Overlap along x.
Definition TimeDet.h:84
Double_t fxCenter
Number of rows.
Definition TimeDet.h:79
void GetBarRowCol(int ib, int &irow, int &icol) const
Definition TimeDet.cxx:181
double GetXCol(int ic) const
Definition TimeDet.cxx:187
Int_t fNRow
Number of columns.
Definition TimeDet.h:77
TimeDet & operator=(const TimeDet &)=delete
Int_t fNBars
y-position of the detector center
Definition TimeDet.h:82
void SetZposition(Double_t z)
Definition TimeDet.h:36
Double_t fdzBarRow
z-distance between columns
Definition TimeDet.h:74
Int_t GetNRows() const
Definition TimeDet.h:46
Double_t GetBarOverlapY() const
Definition TimeDet.h:52
Double_t GetBarOverlapX() const
Definition TimeDet.h:51
Double_t fySize
width of the detector
Definition TimeDet.h:67
Double_t fyBar
length of the bar
Definition TimeDet.h:70
TimeDet(const TimeDet &)=delete
Overlap along y.
Double_t fzPos
Definition TimeDet.h:64
void SetSizeY(Double_t y)
Definition TimeDet.h:43
Double_t fyCenter
x-position of the detector center
Definition TimeDet.h:80
TimeDet(const char *Name, Bool_t Active)
Definition TimeDet.cxx:66
void SetBarZ(Double_t dz)
Definition TimeDet.h:41
Double_t fzBar
width of the bar
Definition TimeDet.h:71
Double_t GetBarSizeZ() const
Definition TimeDet.h:50
Int_t fNCol
z-distance between rows
Definition TimeDet.h:76
Double_t GetBarSizeX() const
Definition TimeDet.h:48
Bool_t ProcessHits(FairVolume *v=nullptr) override
Definition TimeDet.cxx:86
void ConstructGeometry() override
Definition TimeDet.cxx:144
Double_t fdzBarCol
depth of the bar
Definition TimeDet.h:73
double GetZBar(int ir, int ic) const
Definition TimeDet.cxx:195
void SetSizeX(Double_t x)
Definition TimeDet.h:42
void SetBarZspacing(Double_t row, Double_t column)
Definition TimeDet.h:37
TimeDet()
Definition TimeDet.cxx:47
Int_t GetNBars() const
Definition TimeDet.h:47
Double_t fxOv
Number of bars.
Definition TimeDet.h:83
double GetYRow(int ir) const
Definition TimeDet.cxx:191