ATLAS Offline Software
TBTailCatcherRaw.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TBEVENT_TBTAILCATCHERRAW_H
6 #define TBEVENT_TBTAILCATCHERRAW_H
7 // //
9 // Testbeam TailCatcher reconstructed signals. //
10 // //
12 
13 #include "AthenaKernel/CLASS_DEF.h"
14 
16 #include "TBEvent/TBBeamDetector.h"
18 
19 #include <vector>
20 
21 
22 
24  public DataVector< TBScintillatorRaw >
25 {
26  public:
27 
28  typedef int signal_type;
29 
31  // Constructors and Destructor //
33 
35  TBTailCatcherRaw(const std::string& thisTailCatcherName,
36  bool overflow,
37  const std::vector< TBScintillatorRaw* >& theScints);
38 
40 
42  // Data Manipulation //
44 
45  void addScintillator(TBScintillatorRaw* thisScint);
46 
47  const TBScintillatorRaw*
48  getScintillator(const std::string& thisScintName) const;
49 
50  // global overflow
51  // virtual void setOverflow();
52  // virtual void setOverflow(bool overflow);
53  // virtual void resetOverflow();
54 
56  // Data Access //
58 
59  const std::vector<signal_type>& getSignals() const;
60  signal_type getSignal(const std::string& thisScintName) const;
61  signal_type getSignal(const TBScintillatorRaw* thisScint) const;
62 
63  private:
64 
66  // Data //
68 
69  std::vector<int> m_signals;
70 
71  unsigned int findIndex(const std::string& thisScintName) const;
72 
73 };
74 CLASS_DEF( TBTailCatcherRaw , 151151490 , 1 )
75 #endif
TBBeamDetector.h
TBTailCatcherRaw::~TBTailCatcherRaw
~TBTailCatcherRaw()
Definition: TBTailCatcherRaw.cxx:34
TBScintillatorRaw.h
TBTailCatcherRaw::m_signals
std::vector< int > m_signals
Definition: TBTailCatcherRaw.h:69
TBTailCatcherRaw::findIndex
unsigned int findIndex(const std::string &thisScintName) const
Definition: TBTailCatcherRaw.cxx:79
TBTailCatcherRaw::getScintillator
const TBScintillatorRaw * getScintillator(const std::string &thisScintName) const
Definition: TBTailCatcherRaw.cxx:45
TBTailCatcherRaw::getSignals
const std::vector< signal_type > & getSignals() const
Definition: TBTailCatcherRaw.cxx:57
TBScintillatorRaw
Definition: TBScintillatorRaw.h:26
TBTailCatcherRaw::TBTailCatcherRaw
TBTailCatcherRaw()
Definition: TBTailCatcherRaw.cxx:13
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
TBTailCatcherRaw::getSignal
signal_type getSignal(const std::string &thisScintName) const
Definition: TBTailCatcherRaw.cxx:63
TBTailCatcherRaw::addScintillator
void addScintillator(TBScintillatorRaw *thisScint)
Definition: TBTailCatcherRaw.cxx:38
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
TBTailCatcherRaw::signal_type
int signal_type
Definition: TBTailCatcherRaw.h:28
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
TBTailCatcherRaw
Definition: TBTailCatcherRaw.h:25
TBBeamDetector
Definition: TBBeamDetector.h:16
CLASS_DEF.h
macros to associate a CLID to a type