1#ifndef __JAANET__JEVTCATEGORY__
2#define __JAANET__JEVTCATEGORY__
186 virtual std::istream&
read(std::istream& in)
193 if (getFileStatus(is.str().c_str())) {
213 virtual std::ostream&
write(std::ostream& out)
const
228 return object.read(in);
241 return object.write(out);
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Utility class to parse parameter values.
#define gmake_property(A)
macros to convert (template) parameter to JPropertiesElement object
Utility class to parse parameter values.
Simple data structure to support I/O of equations (see class JLANG::JEquation).
Wrapper class around STL stringstream class to facilitate optional loading of data from file.
void load()
Load data from file with name corresponding to current contents.
Exception for accessing a value in a collection that is outside of its range.
Extensions to Evt data format.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
Low-level interface for event categories.
int primaryType
Event primary PDG type.
void check_validity() const
Check validity.
virtual std::istream & read(std::istream &in)
Read event category from input.
virtual JProperties getProperties(const JEquationParameters &eqpars=JEvtCategory::getEquationParameters())
Get properties of this class.
friend std::istream & operator>>(std::istream &in, JEvtCategory &object)
Read event category from input.
virtual JProperties getProperties(const JEquationParameters &eqpars=JEvtCategory::getEquationParameters()) const
Get properties of this class.
virtual std::ostream & write(std::ostream &out) const
Write event category to output.
friend std::ostream & operator<<(std::ostream &out, const JEvtCategory &object)
Write event category to output.
virtual bool match(const Evt &event) const =0
Check whether given event matches with this event category.
virtual ~JEvtCategory()
Virtual destructor.
virtual bool less(const JEvtCategory &category) const
Less-than method.
int getPrimaryType() const
Get primary PDG type of this event category.
virtual bool match(const JHead &header) const =0
Check whether given MC header matches with this event category.
JEvtCategory()
Default constructor.
static void setEquationParameters(const JEquationParameters &eqpars)
Set equation parameters.
virtual bool is_valid() const =0
Check if event category is valid.
static JEquationParameters & getEquationParameters()
Get equation parameters.
JEvtCategory(const int primaryType)
Constructor.
Template class for object cloning.
Template definition of auxiliary base class for comparison of data structures.