FEvent_ROOT.cc
Go to the documentation of this file.
1 #include <io/FEvent_ROOT.h>
2 #include <fevt/FEvent.h>
3 
4 using namespace io;
5 
6 
7 ClassImp(FEvent_ROOT)
8 
9 
10 FEvent_ROOT::FEvent_ROOT(const fevt::FEvent& e) :
11  fEyes(e.EyesBegin(fevt::ComponentSelector::eExists),
12  e.EyesEnd(fevt::ComponentSelector::eExists)),
13  fHeader(e.GetHeader())
14 { }
15 
16 
17 void
19  const
20 {
21  fHeader >> e.GetHeader();
22  for (const auto& er : fEyes) {
23  e.MakeEye(er.fId);
24  er >> e.GetEye(er.fId);
25  }
26 }
Header & GetHeader()
Definition: FEvent.h:92
void MakeEye(const unsigned int eyeId, const ComponentSelector::Status status=ComponentSelector::eHasData)
Definition: FEvent.cc:115
void operator>>(fevt::FEvent &e) const
Definition: FEvent_ROOT.cc:18
fevtHeader_ROOT fHeader
Definition: FEvent_ROOT.h:34
Top of Fluorescence Detector event hierarchy.
Definition: FEvent.h:33
Eye & GetEye(const unsigned int eyeId, const ComponentSelector::Status status=ComponentSelector::eHasData)
return Eye by id
Definition: FEvent.cc:70
FEvent Class being actually streamed when using ROOT IO.
Definition: FEvent_ROOT.h:24
std::vector< Eye_ROOT > fEyes
Definition: FEvent_ROOT.h:33

, generated on Tue Sep 26 2023.