ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
TestBeam
TBEvent
TBEvent
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
16
class
TBBeamDetector
17
{
18
public
:
19
21
// Constructors and Destructor //
23
24
TBBeamDetector
() :
25
m_tbDetectorName
()
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
39
virtual
~TBBeamDetector
()
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
62
const
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
82
bool
m_overflow
;
83
84
};
85
#endif
TBBeamDetector::m_tbDetectorName
std::string m_tbDetectorName
Definition
TBBeamDetector.h:77
TBBeamDetector::resetOverflow
virtual void resetOverflow()
Definition
TBBeamDetector.h:68
TBBeamDetector::TBBeamDetector
TBBeamDetector(std::string_view tbBeamDetectorName)
Definition
TBBeamDetector.h:29
TBBeamDetector::isOverflow
bool isOverflow() const
Definition
TBBeamDetector.h:65
TBBeamDetector::setOverflow
virtual void setOverflow(bool overflow)
Definition
TBBeamDetector.h:55
TBBeamDetector::m_overflow
bool m_overflow
Detector Name.
Definition
TBBeamDetector.h:82
TBBeamDetector::getDetectorName
const std::string & getDetectorName() const
Definition
TBBeamDetector.h:62
TBBeamDetector::TBBeamDetector
TBBeamDetector(std::string_view tbBeamDetectorName, bool overflow)
Definition
TBBeamDetector.h:34
TBBeamDetector::setOverflow
virtual void setOverflow()
Definition
TBBeamDetector.h:52
TBBeamDetector::TBBeamDetector
TBBeamDetector()
Definition
TBBeamDetector.h:24
TBBeamDetector::setDetectorName
virtual void setDetectorName(std::string_view tbBeamDetectorName)
Definition
TBBeamDetector.h:49
TBBeamDetector::~TBBeamDetector
virtual ~TBBeamDetector()
Definition
TBBeamDetector.h:39
Generated on
for ATLAS Offline Software by
1.17.0