1 #ifndef __JDB_JRUNSETUPS__ 
    2 #define __JDB_JRUNSETUPS__ 
   61     static inline int getType(
const std::string& setup) 
 
   70 #define MAKE_ENTRY(A) std::make_pair(getClassname(#A), A) 
   84       string::size_type pos = key.find(
SEPARATOR);
 
   86       if (pos != string::npos) {
 
   87         key = key.substr(0,pos);
 
   92       if (i != buffer.end())
 
  106              const std::string setup)
 
  111       const int       type   = 
getType(setup);
 
  116       if (p == buffer.end()) {
 
  118         buffer.push_back(setup);
 
  120         p = buffer.rbegin().base();
 
  123       const int index = 
distance(buffer.begin(),p) + 1;
 
  153     bool has(
const int run)
 const 
  155       return this->find(run) != this->end();
 
  165     float get(
const int run)
 const 
  167       const_iterator p = this->find(run);
 
  169       if (p != this->end())
 
  170         return p->second.value;
 
std::vector< T >::difference_type distance(typename std::vector< T >::const_iterator first, typename PhysicsEvent::const_iterator< T > second)
Specialisation of STL distance.
 
Auxiliary classes and methods for database I/O.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
Auxiliary data structure for run setup information.
 
Auxiliary class for run setup evaluation.
 
void put(const int run, const std::string setup)
Put run parameters.
 
static const int MAX_NUMBER_OF_SETUPS
maximal number of setups for a main category
 
static int getType(const std::string &setup)
Get run setup type.
 
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.
 
std::map< int, std::vector< std::string > > data
 
float get(const int run) const
Get run setup value.
 
JRuntype_t
Main run setup category.
 
@ NANOCALIB
Nano-beacon calibration.