ATLAS Offline Software
TBBeamDetector.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TBEVENT_TBBEAMDETECTOR_H
6 #define TBEVENT_TBBEAMDETECTOR_H
7 // //
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 
38  virtual ~TBBeamDetector()
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 
61  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 
81  bool m_overflow;
82 
83 };
84 #endif
TBBeamDetector::getDetectorName
std::string getDetectorName() const
Definition: TBBeamDetector.h:61
TBBeamDetector::~TBBeamDetector
virtual ~TBBeamDetector()
Definition: TBBeamDetector.h:38
TBBeamDetector::setOverflow
virtual void setOverflow()
Definition: TBBeamDetector.h:51
TBBeamDetector::TBBeamDetector
TBBeamDetector(const std::string &tbBeamDetectorName)
Definition: TBBeamDetector.h:28
TBBeamDetector::setDetectorName
virtual void setDetectorName(const std::string &tbBeamDetectorName)
Definition: TBBeamDetector.h:48
TBBeamDetector::TBBeamDetector
TBBeamDetector()
Definition: TBBeamDetector.h:23
TBBeamDetector::TBBeamDetector
TBBeamDetector(const std::string &tbBeamDetectorName, bool overflow)
Definition: TBBeamDetector.h:33
TBBeamDetector::setOverflow
virtual void setOverflow(bool overflow)
Definition: TBBeamDetector.h:54
TBBeamDetector::m_overflow
bool m_overflow
Detector Name.
Definition: TBBeamDetector.h:81
TBBeamDetector::m_tbDetectorName
std::string m_tbDetectorName
Definition: TBBeamDetector.h:76
TBBeamDetector::isOverflow
bool isOverflow() const
Definition: TBBeamDetector.h:64
TBBeamDetector
Definition: TBBeamDetector.h:16
TBBeamDetector::resetOverflow
virtual void resetOverflow()
Definition: TBBeamDetector.h:67