ATLAS Offline Software
Loading...
Searching...
No Matches
TBBeamDetector.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TBEVENT_TBBEAMDETECTOR_H
6#define TBEVENT_TBBEAMDETECTOR_H
8// //
9// Principal Base Class for all Testbeam Detectors //
10// //
12
13#include <string>
14#include <string_view>
15
17{
18 public:
19
21 // Constructors and Destructor //
23
26 , m_overflow(false)
27 { };
28
29 TBBeamDetector(std::string_view tbBeamDetectorName)
30 : m_tbDetectorName(tbBeamDetectorName)
31 , m_overflow(false)
32 { };
33
34 TBBeamDetector(std::string_view tbBeamDetectorName, bool overflow)
35 : m_tbDetectorName(tbBeamDetectorName)
36 , m_overflow(overflow)
37 { };
38
40 { }
41
43 // Data Manipulation //
45
47 // Setters //
49 virtual void setDetectorName(std::string_view tbBeamDetectorName)
50 { m_tbDetectorName.assign(tbBeamDetectorName); }
51
52 virtual void setOverflow()
53 { m_overflow = true; }
54
55 virtual void setOverflow(bool overflow)
56 { m_overflow = overflow; }
57
59 // Getters //
61
62const std::string& getDetectorName() const
63 { return m_tbDetectorName; }
64
65 bool isOverflow() const
66 { return m_overflow; }
67
68 virtual void resetOverflow()
69 { m_overflow = false; }
70
72 // Data Members //
74
75 private:
76
77 std::string m_tbDetectorName;
78
79
80 protected:
81
83
84};
85#endif
std::string m_tbDetectorName
virtual void resetOverflow()
TBBeamDetector(std::string_view tbBeamDetectorName)
bool isOverflow() const
virtual void setOverflow(bool overflow)
bool m_overflow
Detector Name.
const std::string & getDetectorName() const
TBBeamDetector(std::string_view tbBeamDetectorName, bool overflow)
virtual void setOverflow()
virtual void setDetectorName(std::string_view tbBeamDetectorName)
virtual ~TBBeamDetector()