SEventSimData.h
Go to the documentation of this file.
1 #ifndef _sevt_SEventSimData_h_
2 #define _sevt_SEventSimData_h_
3 
4 #include <utl/LameShadowPtr_fwd.h>
5 #include <utl/LameShadowPtr.h>
6 #include <sevt/T3.h>
7 #include <boost/iterator/indirect_iterator.hpp>
8 #include <vector>
9 
10 
11 namespace sevt {
12 
24  class SEventSimData {
25  public:
26  typedef std::vector<sevt::T3>::iterator T3Iterator;
27  typedef std::vector<sevt::T3>::const_iterator ConstT3Iterator;
28 
29  public:
31  unsigned int GetNumberOfT3s() const { return fT3s.size(); }
32 
34  T3Iterator T3sBegin() { return fT3s.begin(); }
36  ConstT3Iterator T3sBegin() const { return fT3s.begin(); }
38  T3Iterator T3sEnd() { return fT3s.end(); }
40  ConstT3Iterator T3sEnd() const { return fT3s.end(); }
42 
43 
44  void AddT3(const sevt::T3& t3) { fT3s.push_back(t3); }
45 
46  private:
47  SEventSimData() = default;
48  ~SEventSimData() = default;
49 
50  friend class SEvent;
52 
53  std::vector<sevt::T3> fT3s;
54  };
55 
56 }
57 
58 
59 #endif
Interface class to hold simulated data belonging to surface events.
Definition: SEventSimData.h:24
void AddT3(const sevt::T3 &t3)
Add a T3.
Definition: SEventSimData.h:44
#define OFFLINE_MAKE_BOTH_ITERATOR_RANGES(_Iterator_, _ConstIterator_, _NamePrefix_)
Definition: IteratorRange.h:43
ConstT3Iterator T3sBegin() const
Iterator over the list of T3s.
Definition: SEventSimData.h:36
Interface class to access to the SD part of an event.
Definition: SEvent.h:39
This class contains the basic information to build a surface event.
Definition: T3.h:36
unsigned int GetNumberOfT3s() const
Get the number of T3s.
Definition: SEventSimData.h:31
a t3: algo, second, usecond and a vector of &lt;t3stat&gt;
Definition: XbT2.h:29
SEventSimData()=default
std::vector< sevt::T3 >::const_iterator ConstT3Iterator
Definition: SEventSimData.h:27
std::vector< sevt::T3 >::iterator T3Iterator
Definition: SEventSimData.h:26
T3Iterator T3sEnd()
Iterator over the list of T3s.
Definition: SEventSimData.h:38
std::vector< sevt::T3 > fT3s
Definition: SEventSimData.h:53
~SEventSimData()=default
ConstT3Iterator T3sEnd() const
Iterator over the list of T3s.
Definition: SEventSimData.h:40
T3Iterator T3sBegin()
Iterator over the list of T3s.
Definition: SEventSimData.h:34

, generated on Tue Sep 26 2023.