Helper class for event categories.
More...
#include <JEvtCategoryHelper.hh>
Helper class for event categories.
Definition at line 32 of file JEvtCategoryHelper.hh.
◆ pointer_type
◆ JEvtCategoryHelper() [1/5]
JAANET::JEvtCategoryHelper::JEvtCategoryHelper |
( |
| ) |
|
|
inline |
Default constructor.
Definition at line 41 of file JEvtCategoryHelper.hh.
std::shared_ptr< JEvtCategory > pointer_type
◆ JEvtCategoryHelper() [2/5]
JAANET::JEvtCategoryHelper::JEvtCategoryHelper |
( |
const pointer_type & |
p | ) |
|
|
inline |
◆ JEvtCategoryHelper() [3/5]
JAANET::JEvtCategoryHelper::JEvtCategoryHelper |
( |
const JEvtCategory & |
category | ) |
|
|
inline |
Constructor.
- Parameters
-
Definition at line 61 of file JEvtCategoryHelper.hh.
void configure(const pointer_type &p)
Configuration.
◆ JEvtCategoryHelper() [4/5]
JAANET::JEvtCategoryHelper::JEvtCategoryHelper |
( |
const JHead & |
header | ) |
|
|
inline |
◆ JEvtCategoryHelper() [5/5]
JAANET::JEvtCategoryHelper::JEvtCategoryHelper |
( |
const int |
type | ) |
|
|
inline |
◆ configure() [1/4]
void JAANET::JEvtCategoryHelper::configure |
( |
const pointer_type & |
p | ) |
|
|
inline |
◆ configure() [2/4]
void JAANET::JEvtCategoryHelper::configure |
( |
const JEvtCategory & |
category | ) |
|
|
inline |
Configuration.
- Parameters
-
Definition at line 105 of file JEvtCategoryHelper.hh.
virtual clone_type clone() const override
Get clone of this object.
◆ configure() [3/4]
void JAANET::JEvtCategoryHelper::configure |
( |
const JHead & |
header | ) |
|
|
inline |
Configuration.
- Parameters
-
Definition at line 116 of file JEvtCategoryHelper.hh.
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Exception for accessing a value in a collection that is outside of its range.
bool is_neutrino_primary(const int type)
Auxiliary function to check if given PDG code corresponds to a neutrino.
bool is_muon_bundle_primary(const int type)
Auxiliary function to check if given PDG code corresponds to a valid muon bundle primary type.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Class for muon bundle categories.
Class for neutrino interaction categories.
◆ configure() [4/4]
void JAANET::JEvtCategoryHelper::configure |
( |
const int |
type | ) |
|
|
inline |
◆ getEvtCategory()
JEvtCategory& JAANET::JEvtCategoryHelper::getEvtCategory |
( |
| ) |
const |
|
inline |
Get reference to event category.
- Returns
- reference to event category
Definition at line 154 of file JEvtCategoryHelper.hh.
159 return *(this->get());
Exception for null pointer operation.
Helper class for event categories.
◆ is_valid()
bool JAANET::JEvtCategoryHelper::is_valid |
( |
| ) |
const |
|
inline |
Check if event category is valid.
- Returns
- true if event category is valid; else false
Definition at line 171 of file JEvtCategoryHelper.hh.
bool is_valid() const
Check if event category is valid.
◆ match() [1/2]
bool JAANET::JEvtCategoryHelper::match |
( |
const JHead & |
header | ) |
const |
|
inline |
Check whether given MC header matches with this event category.
- Parameters
-
- Returns
- true if matching; else false
Definition at line 183 of file JEvtCategoryHelper.hh.
187 return category.
match(header);
JEvtCategory & getEvtCategory() const
Get reference to event category.
Low-level interface for event categories.
virtual bool match(const JHead &header) const =0
Check whether given MC header matches with this event category.
◆ match() [2/2]
bool JAANET::JEvtCategoryHelper::match |
( |
const Evt & |
event | ) |
const |
|
inline |
Check whether given event matches with this event category.
- Parameters
-
- Returns
- true if matching; else false
Definition at line 197 of file JEvtCategoryHelper.hh.
201 return category.
match(event);
◆ less() [1/2]
bool JAANET::JEvtCategoryHelper::less |
( |
const JEvtCategory & |
category | ) |
const |
|
inline |
Less-than method.
- Parameters
-
- Returns
- true if this event category is less than given event category; else false
Definition at line 211 of file JEvtCategoryHelper.hh.
215 return cat.
less(category);
virtual bool less(const JEvtCategory &category) const
Less-than method.
◆ less() [2/2]
Less-than method.
- Parameters
-
helper | shared pointer to event category |
- Returns
- true if this event category is less than given event category; else false
Definition at line 225 of file JEvtCategoryHelper.hh.
bool less(const JEvtCategory &category) const
Less-than method.
◆ getProperties()
Get properties of this class.
- Parameters
-
equation | equation parameters |
Definition at line 236 of file JEvtCategoryHelper.hh.
virtual JProperties getProperties(const JEquationParameters &eqpars=JEvtCategory::getEquationParameters())
Get properties of this class.
◆ operator>>
Read event category from input.
- Parameters
-
in | input stream |
object | event category |
- Returns
- input stream
Definition at line 251 of file JEvtCategoryHelper.hh.
257 return object.get()->read(in);
261 streampos pos = in.tellg();
266 object.configure(type);
276 if (neutrinoInteraction.
is_valid()) {
277 object.configure(neutrinoInteraction);
288 object.configure(muonBundle);
bool read(const JEquation &equation)
Read equation.
bool is_valid() const override final
Check if muon bundle category is valid.
JProperties getProperties(const JEquationParameters &equation=JEvtCategory::getEquationParameters()) override final
Get properties of this class.
bool is_valid() const override final
Check if neutrino interaction categories is valid.
JProperties getProperties(const JEquationParameters &eqpars=JEvtCategory::getEquationParameters()) override final
Get properties of this class.
◆ operator<<
Write event category to output.
- Parameters
-
out | output stream |
object | event category |
- Returns
- output stream
Definition at line 303 of file JEvtCategoryHelper.hh.
306 return out <<
object.getEvtCategory();
The documentation for this struct was generated from the following file: