Auxiliary class for ROOT class selection.
More...
#include <JROOTClassSelector.hh>
Auxiliary class for ROOT class selection.
Definition at line 127 of file JROOTClassSelector.hh.
JROOT::JROOTClassSelection::JROOTClassSelection |
( |
const bool |
option = false | ) |
|
|
inline |
Contructor.
- Parameters
-
selection | selection |
option | include namespace |
Definition at line 146 of file JROOTClassSelector.hh.
bool option
include namespace
template<class T >
JROOT::JROOTClassSelection::JROOTClassSelection |
( |
const JType< T > & |
typelist, |
|
|
const bool |
option = false |
|
) |
| |
|
inline |
Contructor.
- Parameters
-
typelist | type list |
option | include namespace |
Definition at line 159 of file JROOTClassSelector.hh.
bool option
include namespace
JObject_t & for_each(JObject_t &object, JType< JTypeList< JHead_t, JTail_t > > typelist)
For each data type method.
bool JROOT::JROOTClassSelection::getOption |
( |
| ) |
const |
|
inline |
Get option to include name space.
- Returns
- option
Definition at line 171 of file JROOTClassSelector.hh.
bool option
include namespace
template<class T >
void JROOT::JROOTClassSelection::add |
( |
| ) |
|
|
inline |
Add given data type.
Definition at line 181 of file JROOTClassSelector.hh.
Auxiliary class to select ROOT class based on class name.
bool option
include namespace
template<class T >
void JROOT::JROOTClassSelection::remove |
( |
| ) |
|
|
inline |
Remove data type.
Definition at line 191 of file JROOTClassSelector.hh.
Auxiliary class to select ROOT class based on class name.
bool option
include namespace
template<class T >
void JROOT::JROOTClassSelection::operator() |
( |
const JType< T > & |
type | ) |
|
|
inline |
template<class T >
bool JROOT::JROOTClassSelection::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 216 of file JROOTClassSelector.hh.
220 for (const_iterator
i = this->begin();
i != this->end(); ++
i) {
221 if (*
i == selector) {
Auxiliary class to select ROOT class based on class name.
then set_variable PMT_FILE set_variable DAQ_FILE set_variable OUTPUT_FILE set_variable DETECTOR else fatal Wrong number of arguments fi JPrintTree f $DAQ_FILE type
bool option
include namespace
template<class T >
bool JROOT::JROOTClassSelection::is_valid |
( |
| ) |
const |
|
inline |
Get status of given data type.
- Returns
- true if valid class name; else false
Definition at line 236 of file JROOTClassSelector.hh.
238 return (*
this)(JType<T>());
Read ROOT class selection from input.
Note that if the first character of the read class name is:
- a '+', the remainder of the class name is added; or
- a '-', the remainder of the class name is removed; otherwise
- the complete class name is added.
- Parameters
-
in | input stream |
object | ROOT class selection |
- Returns
- input stream
Definition at line 254 of file JROOTClassSelector.hh.
256 for (std::string buffer;
in >> buffer; ) {
258 const TRegexp regexp(buffer.substr(1).c_str());
264 for (JROOTClassSelection::iterator
i =
object.begin();
i !=
object.end(); ) {
266 if (TString(
i->c_str()).Contains(regexp))
276 object.insert(buffer.substr(1));
281 object.insert(buffer);
then fatal The output file must have the wildcard in the e g root fi eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
Write ROOT class selection to output.
- Parameters
-
out | output stream |
object | ROOT class selection |
- Returns
- output stream
Definition at line 297 of file JROOTClassSelector.hh.
299 for (const_iterator
i =
object.begin();
i !=
object.end(); ++
i) {
300 out << *
i << std::endl;
bool JROOT::JROOTClassSelection::option |
|
private |
The documentation for this struct was generated from the following file: