ATLAS Offline Software
Loading...
Searching...
No Matches
TBTailCatcher.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_TBTAILCATCHER_H
6#define TBEVENT_TBTAILCATCHER_H
8// //
9// Testbeam TailCatcher reconstructed signals. //
10// //
12
14
18
19#include <vector>
20
21
22
24 public DataVector< TBScintillator >
25{
26 public:
27
28 typedef double signal_type;
29
31 // Constructors and Destructor //
33
35 TBTailCatcher(const std::string& thisTailCatcherName,
36 bool overflow,
37 const std::vector< TBScintillator* >& theScints);
38
40
42 // Data Manipulation //
44
45 void addScintillator(TBScintillator* thisScint);
46
47 const TBScintillator*
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 TBScintillator* thisScint) const;
62
63 private:
64 friend class TBTailCatcherCnv_p1;
65
67 // Data //
69
70 std::vector<double> m_signals;
71
72 unsigned int findIndex(const std::string& thisScintName) const;
73
74};
75CLASS_DEF( TBTailCatcher , 100992621 , 1 )
76#endif
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
An STL vector of pointers that by default owns its pointed-to elements.
DataVector(SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS, SG::IndexTrackingPolicy trackIndices=SG::DEFAULT_TRACK_INDICES)
signal_type getSignal(const std::string &thisScintName) const
friend class TBTailCatcherCnv_p1
const std::vector< signal_type > & getSignals() const
unsigned int findIndex(const std::string &thisScintName) const
const TBScintillator * getScintillator(const std::string &thisScintName) const
std::vector< double > m_signals
void addScintillator(TBScintillator *thisScint)