FairShip
Loading...
Searching...
No Matches
strawtubesHit.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 STRAWTUBES_STRAWTUBESHIT_H_
6#define STRAWTUBES_STRAWTUBESHIT_H_
7
8#include "DetectorHit.h"
9#include "strawtubesPoint.h"
10
12 public:
15
21 strawtubesHit(Int_t detID, Float_t tdc);
22 strawtubesHit(strawtubesPoint* p, Double_t t0);
24 ~strawtubesHit() override = default;
25
27 Int_t GetStationNumber() const;
28 Int_t GetViewNumber() const;
29 Int_t GetLayerNumber() const;
30 Int_t GetStrawNumber() const;
31
34 void Print() const;
35 Float_t GetTDC() const { return fdigi; }
36 void setInvalid() { flag = false; }
37 bool isValid() const { return flag; }
38
40 strawtubesHit(const strawtubesHit& point) = default;
41 strawtubesHit& operator=(const strawtubesHit& point) = default;
42
43 private:
44 Bool_t flag{true};
45
47};
48
49#endif // STRAWTUBES_STRAWTUBESHIT_H_
void Print(const Option_t *opt="") const override
Definition: DetectorHit.h:36
Float_t fdigi
digitized detector hit
Definition: DetectorHit.h:39
ClassDef(strawtubesHit, 6)
Int_t GetStationNumber() const
strawtubesHit & operator=(const strawtubesHit &point)=default
Bool_t flag
validity flag
Definition: strawtubesHit.h:44
void Print() const
strawtubesHit(const strawtubesHit &point)=default
bool isValid() const
Definition: strawtubesHit.h:37
Int_t GetLayerNumber() const
Float_t GetTDC() const
Definition: strawtubesHit.h:35
void setInvalid()
Definition: strawtubesHit.h:36
Int_t GetViewNumber() const
~strawtubesHit() override=default
Int_t GetStrawNumber() const