1 #ifndef __JDB_JRUNSETUPS__ 
    2 #define __JDB_JRUNSETUPS__ 
   16 namespace JDATABASE {}
 
   17 namespace JPP { 
using namespace JDATABASE; }
 
   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())
 
  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;
 
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 
 
Auxiliary data structure for run setup information. 
 
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