Auxiliary class to select ROOT class based on class name.
More...
#include <JROOTClassSelector.hh>
Auxiliary class to select ROOT class based on class name.
Definition at line 35 of file JROOTClassSelector.hh.
JROOT::JROOTClassSelector::JROOTClassSelector |
( |
| ) |
|
|
inline |
JROOT::JROOTClassSelector::JROOTClassSelector |
( |
const char *const |
type_name | ) |
|
|
inline |
JROOT::JROOTClassSelector::JROOTClassSelector |
( |
const std::string & |
type_name | ) |
|
|
inline |
template<class T >
JROOT::JROOTClassSelector::JROOTClassSelector |
( |
const JType< T > & |
type, |
|
|
const bool |
option |
|
) |
| |
|
inline |
Contructor.
- Parameters
-
type | data type |
option | include namespace |
Definition at line 74 of file JROOTClassSelector.hh.
std::string getClassname(const std::string &type_name)
Get type name, i.e. part after JEEP::TYPENAME_SEPARATOR.
then set_variable DETECTOR set_variable OUTPUT_FILE set_variable DAQ_FILE set_variable PMT_FILE else fatal Wrong number of arguments fi JPrintTree f $DAQ_FILE type
const char * getName()
Get ROOT name of given data type.
Equals method.
Note that if one of the selectors has an empty name space, the equality is evaluated by class name only else by class name and name space.
- Parameters
-
- Returns
- true if this selector equals given selector; else false
Definition at line 88 of file JROOTClassSelector.hh.
std::string getNamespace(const std::string &type_name)
Get name space, i.e. part before JEEP::TYPENAME_SEPARATOR.
std::string getClassname(const std::string &type_name)
Get type name, i.e. part after JEEP::TYPENAME_SEPARATOR.
bool JROOT::JROOTClassSelector::equals |
( |
const char *const |
selector | ) |
const |
|
inline |
Equals method.
- Parameters
-
- Returns
- true if this selector equals given selector; else false
Definition at line 104 of file JROOTClassSelector.hh.
JROOTClassSelector()
Default contructor.
bool equals(const JROOTClassSelector &selector) const
Equals method.
template<class T >
bool JROOT::JROOTClassSelector::operator() |
( |
const JType< T > & |
type | ) |
const |
|
inline |
Get status of given data type.
- Parameters
-
- Returns
- true if valid class name; else false
Definition at line 117 of file JROOTClassSelector.hh.
JROOTClassSelector()
Default contructor.
bool equals(const JROOTClassSelector &selector) const
Equals method.
then set_variable DETECTOR set_variable OUTPUT_FILE set_variable DAQ_FILE set_variable PMT_FILE else fatal Wrong number of arguments fi JPrintTree f $DAQ_FILE type
The documentation for this struct was generated from the following file: