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
16{
17 public:
18
20 // Constructors and Destructor //
22
25 , m_overflow(false)
26 { };
27
28 TBBeamDetector(const std::string& tbBeamDetectorName)
29 : m_tbDetectorName(tbBeamDetectorName)
30 , m_overflow(false)
31 { };
32
33 TBBeamDetector(const std::string& tbBeamDetectorName, bool overflow)
34 : m_tbDetectorName(tbBeamDetectorName)
35 , m_overflow(overflow)
36 { };
37
39 { }
40
42 // Data Manipulation //
44
46 // Setters //
48 virtual void setDetectorName(const std::string& tbBeamDetectorName)
49 { m_tbDetectorName = tbBeamDetectorName; }
50
51 virtual void setOverflow()
52 { m_overflow = true; }
53
54 virtual void setOverflow(bool overflow)
55 { m_overflow = overflow; }
56
58 // Getters //
60
61const std::string& getDetectorName() const
62 { return m_tbDetectorName; }
63
64 bool isOverflow() const
65 { return m_overflow; }
66
67 virtual void resetOverflow()
68 { m_overflow = false; }
69
71 // Data Members //
73
74 private:
75
76 std::string m_tbDetectorName;
77
78
79 protected:
80
82
83};
84#endif
virtual void setDetectorName(const std::string &tbBeamDetectorName)
std::string m_tbDetectorName
virtual void resetOverflow()
bool isOverflow() const
virtual void setOverflow(bool overflow)
bool m_overflow
Detector Name.
TBBeamDetector(const std::string &tbBeamDetectorName)
const std::string & getDetectorName() const
virtual void setOverflow()
virtual ~TBBeamDetector()
TBBeamDetector(const std::string &tbBeamDetectorName, bool overflow)