GamR  0.0.0
GammaROOT
Loading...
Searching...
No Matches
Event.tt
Go to the documentation of this file.
1namespace GamR {
2namespace Tree {
3
4template <class... ADets>
5struct TEvent<ADets...>::ClearVector {
6 template <typename T>
7 void operator()(std::vector<T> &vec)
8 {
9 vec.clear();
10 }
11};
12
13template <class... ADets>
14struct TEvent<ADets...>::EventTupleFiller {
15 template <typename DetDefn, typename Det>
16 void operator()(std::vector<DetDefn> &defns, std::vector<Det> &dets, ULong64_t eventNum)
17 {
18 for (auto &defn : defns) {
19 defn.Calibrate(eventNum);
20 if (defn.IsGood()) {
21 dets.emplace_back(defn, eventNum);
22 }
23 }
24 }
25};
26
27template <class... ADets>
28struct TEvent<ADets...>::IgnoreTObject {
29 template <typename T>
30 void operator()(T t)
31 {
32 (void)t;
33 T::Class()->IgnoreTObjectStreamer();
34 }
35};
36
37} // namespace Tree
38} // namespace GamR
Definition Gain.cc:19
void operator()(std::vector< T > &vec)
Definition Event.tt:7
void operator()(std::vector< DetDefn > &defns, std::vector< Det > &dets, ULong64_t eventNum)
Definition Event.tt:16