1 #ifndef __JDB_JRUNSETUPS__ 
    2 #define __JDB_JRUNSETUPS__ 
   16 namespace JDATABASE {}
 
   17 namespace JPP { 
using namespace JDATABASE; }
 
   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())
 
void put(const JRuns ¶meters)
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. 
*fatal Wrong number of arguments esac JCookie sh typeset Z DETECTOR typeset Z SOURCE_RUN typeset Z TARGET_RUN set_variable PARAMETERS_FILE $WORKDIR parameters
static const char SEPARATOR
separator between tokens in setup name 
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. 
bool has(const int run) const 
Check if run setup is vailable. 
void put(const int run, const std::string setup)
Put run parameters. 
Auxiliary class for run setup evaluation. 
JRuntype_t
Main run setup category. 
std::map< int, std::vector< std::string > > data