1 #ifndef __JDB_JSELECTORSUPPORTKIT__
2 #define __JDB_JSELECTORSUPPORTKIT__
9 #include "JDB/JDBTypes.hh"
16 namespace JDATABASE {};
17 namespace JPP {
using namespace JDATABASE; }
30 template<class T, class JTable_t = T, bool is_same = JConversion<T, JTable_t>::is_same>
58 this->add(&T::LOGIN, login);
77 this->add(&T::SERIALNUMBER,
id);
89 this->add(&T::OID, detid);
140 this->add(&
T::RUN, minrun, Selector::RelOp::GreaterEqual);
141 this->add(&
T::RUN, maxrun, Selector::RelOp::LessEqual);
165 this->add(
"MINRUN", minrun);
166 this->add(
"MAXRUN", maxrun);
185 this->add(&T::SUBSYSTEMID, ssid);
209 this->add(
"MINRUN", minrun);
210 this->add(
"MAXRUN", maxrun);
229 this->add(&T::DETOID, detoid);
259 this->add(&T::DETOID, detoid);
283 this->add(
"MINRUN", minrun);
284 this->add(
"MAXRUN", maxrun);
328 this->add(&T::RS_OID, rs_oid);
349 this->add(&T::DETOID, detoid);
350 this->add(&T::CG_NAME, cg_name);
371 this->add(&T::DETOID, detoid);
408 this->add(&T::CLBID, -1, Selector::RelOp::Different);
427 this->add(&T::PBS, pbs);
451 this->add(
"MINRUN", minrun);
452 this->add(
"MAXRUN", maxrun);
471 this->add(&T::DETOID, detoid);
set_variable LOCATIONID(getLocationID-L ${LOGIN}) if(($
getSelector(const int id, const int run)
Get selector for the given table based on the detector serial number and run number.
getSelector(const std::string &detoid, const int run)
Get selector for the given table based on the detector and run number.
getSelector(const int id)
Get selector for the given table based on the serial number.
Wrapper class to read string until end-of-line.
Template class test for polymorphism.
getSelector()
Get selector for the given table.
getSelector(const JDBString &locID)
Get selector for the given table based on the location identifier.
getSelector(const int detid, const int minrun, const int maxrun)
Get selector for the given table based on the detector identifier and a run range.
Auxiliary class for specifying selection of database data.
getSelector(const JPBS_t pbs)
Get selector for the given table based on the detector identifier.
getSelector(const std::string &detoid)
Get selector for the given table based on the detector identifier.
getSelector(const std::string &detoid)
Get selector for the given table based on the detector identifier and a run range.
getSelector(const std::string &login)
Get selector for the given table based on the login name.
do set_variable OUTPUT_DIRECTORY $WORKDIR T
then rm i $OUTPUT_FILE fi let RUN
getSelector(const int detid)
Get selector for the given table based on the detector identifier.
getSelector(const std::string &detid, const int minrun, const int maxrun)
Get selector for the given table based on the detector identifier and a run range.
getSelector(const std::string &detid, const int minrun, const int maxrun)
Get selector for the given table based on the detector identifier and a run range.
getSelector(const std::string &detid, const int minrun, const int maxrun)
Get selector for the given table based on the detector identifier and a run range.
getSelector(const std::string &detid)
Get selector for the given table based on the object identifier.
getSelector(const int id)
Get selector for the given table based on the detector serial number.
getSelector(const std::string &ssid)
Get selector for the given table based on the sub-system identifier.
getSelector(const int id, const int minrun, const int maxrun)
Get selector for the given table based on the detector serial number and run number.
Product breakdown structure (PBS).
getSelector(const std::string &detoid)
Get selector for the given table based on the detector and run number.
getSelector(const std::string &detoid, const std::string &cg_name)
Get selector for the given table based on the detector and run number.
getSelector(const int id)
Get selector for the given table based on the serial number.
getSelector(const std::string &detid, const std::string &rs_oid)
Get selector for the given table based on the detector and run-setup identifier.
Template definition for getting table specific selector.
getSelector(const std::string &detid, const int minrun, const int maxrun)
Get selector for the given table based on the detector identifier and a run range.
Auxiliary data structure for data quality.