1 #ifndef __JROOT__JROOTCLASSSELECTOR__
2 #define __JROOT__JROOTCLASSSELECTOR__
22 namespace JPP {
using namespace JROOT; }
37 public JEquals<JROOTClassSelector, const char* const>
53 std::string(type_name)
63 std::string(type_name)
104 bool equals(
const char*
const selector)
const
220 for (const_iterator
i = this->begin();
i != this->end(); ++
i) {
221 if (*
i == selector) {
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);
299 for (const_iterator
i =
object.begin();
i !=
object.end(); ++
i) {
300 out << *
i << std::endl;
bool equals(const char *const selector) const
Equals method.
JROOTClassSelector(const char *const type_name)
Contructor.
JROOTClassSelector()
Default contructor.
bool equals(const JROOTClassSelector &selector) const
Equals method.
Auxiliary class to select ROOT class based on class name.
Auxiliary class for ROOT class selection.
JROOTClassSelector(const std::string &type_name)
Contructor.
Auxiliary class for a type holder.
std::string getNamespace(const std::string &type_name)
Get name space, i.e. part before JEEP::TYPENAME_SEPARATOR.
bool getOption() const
Get option to include name space.
JROOTClassSelection(const std::set< JROOTClassSelector > &selection, const bool option=false)
Contructor.
friend std::istream & operator>>(std::istream &in, JROOTClassSelection &object)
Read ROOT class selection from input.
bool is_valid() const
Get status of given data type.
JROOTClassSelection(const JType< T > &typelist, const bool option=false)
Contructor.
void operator()(const JType< T > &type)
Add data type.
void add()
Add given data type.
std::string getClassname(const std::string &type_name)
Get type name, i.e. part after JEEP::TYPENAME_SEPARATOR.
JROOTClassSelector(const JType< T > &type, const bool option)
Contructor.
bool operator()(const JType< T > &type) const
Get status of given data type.
Template definition of auxiliary base class for comparison of data structures.
JROOTClassSelection(const bool option=false)
Contructor.
bool option
include namespace
JObject_t & for_each(JObject_t &object, JType< JTypeList< JHead_t, JTail_t > > typelist)
For each data type method.
bool operator()(const JType< T > &type) const
Get status of given data type.
std::set< JROOTClassSelector > getROOTClassSelection(const bool option=false)
Get ROOT class selection.
friend std::ostream & operator<<(std::ostream &out, const JROOTClassSelection &object)
Write ROOT class selection to output.
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
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.