Public Member Functions | Private Attributes | List of all members
cmf::EventList Class Reference

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-11-28/CovarianceMatrixFit/core/Event.h"

Public Member Functions

 EventList (cmf::MetaData const &md)
 
 EventList (cmf::MetaData const &md, cmf::SpillSummary const &ss)
 
cmf::EventContainer::iterator begin ()
 
cmf::EventContainer::const_iterator begin () const
 
cmf::EventContainer::iterator end ()
 
cmf::EventContainer::const_iterator end () const
 
std::size_t size () const
 
void clear ()
 
bool empty () const
 
void AddEvent (EventPtr const &ev)
 
void AddEvent (cmf::EventId const &eid, cmf::DataVarVals const &dataVars, cmf::MCVarVals const &mcVars)
 
void AddEvent (cmf::DataVarVals const &dataVars, cmf::MCVarVals const &mcVars)
 
void AddEvent (cmf::EventId const &eid, cmf::DataVarVals const &dataVars)
 
void AddEvent (cmf::DataVarVals const &dataVars)
 
cmf::SpillSummary const & ListSpillSummary () const
 
void AddSpillSummary (cmf::SpillSummary const &ss)
 
cmf::MetaData const & ListMetaData () const
 
bool operator== (EventList const &other) const
 
bool operator< (EventList const &other) const
 

Private Attributes

cmf::EventContainer fEvents
 
cmf::MetaData fMetaData
 what kind of files was this EventList constructed from? More...
 
cmf::SpillSummary fSpillSummary
 aggregate information about the spills that went into this EventList (POT, # good spills, etc.) More...
 

Detailed Description

Definition at line 94 of file Event.h.

Constructor & Destructor Documentation

cmf::EventList::EventList ( cmf::MetaData const &  md)
inlineexplicit

Definition at line 99 of file Event.h.

100  : fMetaData(md)
101  {}
cmf::MetaData fMetaData
what kind of files was this EventList constructed from?
Definition: Event.h:143
cmf::EventList::EventList ( cmf::MetaData const &  md,
cmf::SpillSummary const &  ss 
)
inline

Definition at line 104 of file Event.h.

106  : fMetaData(md)
107  , fSpillSummary(ss)
108  {
109  }
Float_t ss
Definition: plot.C:24
cmf::MetaData fMetaData
what kind of files was this EventList constructed from?
Definition: Event.h:143
cmf::SpillSummary fSpillSummary
aggregate information about the spills that went into this EventList (POT, # good spills...
Definition: Event.h:144

Member Function Documentation

void cmf::EventList::AddEvent ( EventPtr const &  ev)
inline

Definition at line 162 of file Event.h.

References LOG_DEBUG.

Referenced by cmf::EventListManipulator::FillEventList().

163  {
164  LOG_DEBUG("EventListManipulator")
165  << *ev;
166 
167  if(ev->EventIDFilled() ){
168  if(ev->DataValsFilled() &&
169  ev->MCValsFilled() )
170  this->fEvents.push_back(std::make_unique<cmf::Event>(ev->EventID(),
171  ev->DataVals(),
172  ev->MCVals()));
173  else
174  this->fEvents.push_back(std::make_unique<cmf::Event>(ev->EventID(),
175  ev->DataVals()));
176  }
177  else{
178  if(ev->DataValsFilled() &&
179  ev->MCValsFilled() )
180  this->fEvents.push_back(std::make_unique<cmf::Event>(ev->DataVals(),
181  ev->MCVals()));
182  else
183  this->fEvents.push_back(std::make_unique<cmf::Event>(ev->DataVals()));
184  }
185  }
#define LOG_DEBUG(stream)
Definition: Messenger.h:149
cmf::EventContainer fEvents
Definition: Event.h:142
void cmf::EventList::AddEvent ( cmf::EventId const &  eid,
cmf::DataVarVals const &  dataVars,
cmf::MCVarVals const &  mcVars 
)
inline

Definition at line 188 of file Event.h.

191  {
192  this->fEvents.push_back(std::make_unique<cmf::Event>(eid, dataVars, mcVars));
193  }
cmf::EventContainer fEvents
Definition: Event.h:142
void cmf::EventList::AddEvent ( cmf::DataVarVals const &  dataVars,
cmf::MCVarVals const &  mcVars 
)
inline

Definition at line 196 of file Event.h.

198  {
199  this->fEvents.push_back(std::make_unique<cmf::Event>(dataVars, mcVars));
200  }
cmf::EventContainer fEvents
Definition: Event.h:142
void cmf::EventList::AddEvent ( cmf::EventId const &  eid,
cmf::DataVarVals const &  dataVars 
)
inline

Definition at line 209 of file Event.h.

References dirName, events(), cmf::FindEventList(), fetch_tb_beamline_files::md, cmf::SerializeEventListColl(), cmf::SerializeEvents(), and string.

211  {
212  this->fEvents.push_back(std::make_unique<cmf::Event>(eid, dataVars));
213  }
cmf::EventContainer fEvents
Definition: Event.h:142
void cmf::EventList::AddEvent ( cmf::DataVarVals const &  dataVars)
inline

Definition at line 203 of file Event.h.

204  {
205  this->fEvents.push_back(std::make_unique<cmf::Event>(dataVars));
206  }
cmf::EventContainer fEvents
Definition: Event.h:142
void cmf::EventList::AddSpillSummary ( cmf::SpillSummary const &  ss)
inline

Definition at line 156 of file Event.h.

References ss.

157  {
158  this->fSpillSummary += ss;
159  }
Float_t ss
Definition: plot.C:24
cmf::SpillSummary fSpillSummary
aggregate information about the spills that went into this EventList (POT, # good spills...
Definition: Event.h:144
cmf::EventContainer::iterator cmf::EventList::begin ( )
inline

Definition at line 112 of file Event.h.

112 { return fEvents.begin(); }
cmf::EventContainer fEvents
Definition: Event.h:142
cmf::EventContainer::const_iterator cmf::EventList::begin ( ) const
inline

Definition at line 113 of file Event.h.

113 { return fEvents.begin(); }
cmf::EventContainer fEvents
Definition: Event.h:142
void cmf::EventList::clear ( )
inline

Definition at line 150 of file Event.h.

151  {
152  fEvents.clear();
153  }
cmf::EventContainer fEvents
Definition: Event.h:142
bool cmf::EventList::empty ( ) const
inline

Definition at line 118 of file Event.h.

118 { return fEvents.empty(); }
cmf::EventContainer fEvents
Definition: Event.h:142
cmf::EventContainer::iterator cmf::EventList::end ( )
inline

Definition at line 114 of file Event.h.

114 { return fEvents.end(); }
cmf::EventContainer fEvents
Definition: Event.h:142
cmf::EventContainer::const_iterator cmf::EventList::end ( ) const
inline

Definition at line 115 of file Event.h.

115 { return fEvents.end(); }
cmf::EventContainer fEvents
Definition: Event.h:142
cmf::MetaData const& cmf::EventList::ListMetaData ( ) const
inline

Definition at line 135 of file Event.h.

Referenced by cmf::EventListManipulator::FillEventList(), operator<(), and operator==().

135 { return this->fMetaData; }
cmf::MetaData fMetaData
what kind of files was this EventList constructed from?
Definition: Event.h:143
cmf::SpillSummary const& cmf::EventList::ListSpillSummary ( ) const
inline

Definition at line 131 of file Event.h.

References ss.

Referenced by cmf::EventListManipulator::FillEventList(), and cmf::FillSpectrumFromSingleList().

131 { return this->fSpillSummary; }
cmf::SpillSummary fSpillSummary
aggregate information about the spills that went into this EventList (POT, # good spills...
Definition: Event.h:144
bool cmf::EventList::operator< ( EventList const &  other) const
inline

Definition at line 138 of file Event.h.

References ListMetaData().

138 { return fMetaData < other.ListMetaData(); }
cmf::MetaData fMetaData
what kind of files was this EventList constructed from?
Definition: Event.h:143
bool cmf::EventList::operator== ( EventList const &  other) const
inline

Definition at line 137 of file Event.h.

References ListMetaData().

137 { return fMetaData == other.ListMetaData(); }
cmf::MetaData fMetaData
what kind of files was this EventList constructed from?
Definition: Event.h:143
std::size_t cmf::EventList::size ( ) const
inline

Definition at line 116 of file Event.h.

References clear.

116 { return fEvents.size(); }
cmf::EventContainer fEvents
Definition: Event.h:142

Member Data Documentation

cmf::EventContainer cmf::EventList::fEvents
private

Definition at line 142 of file Event.h.

cmf::MetaData cmf::EventList::fMetaData
private

what kind of files was this EventList constructed from?

Definition at line 143 of file Event.h.

cmf::SpillSummary cmf::EventList::fSpillSummary
private

aggregate information about the spills that went into this EventList (POT, # good spills, etc.)

Definition at line 144 of file Event.h.


The documentation for this class was generated from the following file: