Go to the documentation of this file.    1 #ifndef __JDB_JRUNSETUPS__ 
    2 #define __JDB_JRUNSETUPS__ 
   53     static inline int getType(
const std::string& setup) 
 
   62 #define MAKE_ENTRY(A) std::make_pair(getClassname(#A), A) 
   76       string::size_type pos = key.find(
SEPARATOR);
 
   78       if (pos != string::npos) {
 
   79         key = key.substr(0,pos);
 
   84       if (i != buffer.end())
 
   97     void put(
const int         run,
 
   98              const std::string setup)
 
  103       const int       type   = 
getType(setup);
 
  108       if (p == buffer.end()) {
 
  110         buffer.push_back(setup);
 
  112         p = buffer.rbegin().base();
 
  115       const int index = 
distance(buffer.begin(),p) + 1;
 
  145     bool has(
const int run)
 const 
  147       return this->find(run) != this->end();
 
  157     float get(
const int run)
 const 
  159       const_iterator p = this->find(run);
 
  161       if (p != this->end())
 
 
JRuntype_t
Main run setup category.
 
static const int MAX_NUMBER_OF_SETUPS
maximal number of setups for a main category
 
void put(const int run, const std::string setup)
Put run parameters.
 
std::vector< T >::difference_type distance(typename std::vector< T >::const_iterator first, typename PhysicsEvent::const_iterator< T > second)
Specialisation of STL distance.
 
static int getType(const std::string &setup)
Get run setup type.
 
Auxiliary classes and methods for database I/O.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
Auxiliary class for run setup evaluation.
 
float get(const int run) const
Get run setup value.
 
std::map< int, std::vector< std::string > > data
 
static const char SEPARATOR
separator between tokens in setup name
 
bool has(const int run) const
Check if run setup is vailable.
 
void put(const JRuns ¶meters)
Put run parameters.