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);
147 this->add(
"MINRUN", minrun);
148 this->add(
"MAXRUN", maxrun);
167 this->add(&T::SUBSYSTEMID, ssid);
191 this->add(
"MINRUN", minrun);
192 this->add(
"MAXRUN", maxrun);
211 this->add(&T::DETOID, detoid);
241 this->add(&T::DETOID, detoid);
265 this->add(
"MINRUN", minrun);
266 this->add(
"MAXRUN", maxrun);
307 const std::string& rs_oid)
310 this->add(&T::RS_OID, rs_oid);
329 const std::string& cg_name)
331 this->add(&T::DETOID, detoid);
332 this->add(&T::CG_NAME, cg_name);
353 this->add(&T::DETOID, detoid);
390 this->add(&T::CLBID, -1, Selector::RelOp::Different);
409 this->add(&T::PBS, pbs);
433 this->add(
"MINRUN", minrun);
434 this->add(
"MAXRUN", maxrun);
453 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.
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.