1 #ifndef __JRUNCONTROLTOOLKIT__ 
    2 #define __JRUNCONTROLTOOLKIT__ 
  125       if (sep != string::npos) {
 
  127         istringstream(buffer.substr(sep + 1)) >> 
object.
event_number;
 
  129         object.event_name   = 
trim(buffer.substr(0, sep));
 
  133         object.event_name   = 
trim(buffer);
 
  134         object.event_number = -1;
 
  169       out << 
object.event_name;
 
  204     if (
j != string::npos) {
 
  205       buffer.replace(
j, 1, process);
 
  221                                  const std::string& 
name)
 
  223     using namespace JSYSTEM;
 
  247     return buffer.substr(0, j);
 
  273             const std::string& extension = 
"root")
 
  276       this->unique_id = -1;
 
  278       this->extension = extension;
 
  293             const std::string& extension = 
"root")
 
  296       this->unique_id = unique_id;
 
  298       this->extension = extension;
 
  309       *
this = valueOf(file_name);
 
  336       string buffer(file_name);
 
  338       for (string::iterator i = buffer.begin(); i != buffer.end(); ++i) {
 
  344       istringstream 
is(buffer);
 
  348         size_t pos = result.
path.find(getPrefix());     
 
  350         if (pos == string::npos) {
 
  351           pos = result.
path.rfind(
"/");                 
 
  354         if (pos != string::npos) {
 
  355           result.
path.erase(pos);
 
  358         if (!(is >> result.
run)) {
 
  375       throw JIOException(
"JDAQRun::valueOf() error parsing " + buffer);
 
  394         if (*path.rbegin() != 
'/') {
 
  400          << 
"_" << setw(8) << setfill(
'0') << unique_id
 
  401          << 
"_" << setw(8) << setfill(
'0') << run
 
  416     static inline std::string 
getFilename(
const std::string& 
path, 
const int unique_id, 
const int run)
 
  442                            const std::string& 
name)
 
  445     using namespace JSYSTEM;
 
  453     if (pos != string::npos) {
 
  454       os << name.substr(pos + 1, 4);
 
  457     return JTag(os.str());
 
  484                 const std::string& key = 
"") :
 
  498       using namespace JSYSTEM;
 
  504       return JTag(os.str());
 
  574       out << static_cast<const JHostname&>(object);
 
  595     static const string target = 
"Operational.";
 
  597     string buffer = 
name;
 
  599     const string::size_type pos = buffer.find(
target);
 
  601     if (pos != string::npos) 
 
  602       return buffer.erase(pos, 
target.size());
 
int getIPnumber(const std::string &host_name)
Get IP number. 
 
const std::string & getName() const 
Get event name. 
 
std::string getProcessName(const std::string &name, const std::string &process)
Get process name of run control client. 
 
friend std::istream & operator>>(std::istream &in, JDAQProcess &object)
Read process from input stream. 
 
static std::string getFilename(const std::string &path, const int unique_id, const int run)
Get file name of run. 
 
JTag getUniqueTag(const std::string &hostname, const std::string &name)
Get unique tag of run control client. 
 
static const char EVENTNAME_DELIMETER
 
std::string extension
file name extension 
 
int unique_id
unique identifier 
 
std::string getIPaddress(const int ip)
Get IP address (decimal-dot notation). 
 
static const std::string TOKEN_DELIMETER
 
unsigned short getSubaddress(const int ip)
Get host identifier within network. 
 
Auxiliary data structure for hostname and port number. 
 
Simple data structure for DAQ run. 
 
JDAQRun(const char *file_name)
Constructor. 
 
static JEvent_t toValue(const std::string &buffer)
Convert string to event. 
 
std::string index
index in process list 
 
do cat driver txt<< EOFevent ev_configure{RC_EVT%< ev_configure.txt > RC_DWRT path
 
std::string trim(const std::string &buffer)
Trim string. 
 
std::string path
directory path 
 
std::string getStateName(const std::string &name)
Get name of state. 
 
static const std::string RUN_CONTROL_CLIENT
 
Auxiliary class for itemization of process list. 
 
friend std::ostream & operator<<(std::ostream &out, const JDAQProcess &object)
Write process to output stream. 
 
JDAQProcess()
Default constructor. 
 
static const std::string CLIENTNAME_DELIMETER
 
JDAQRun(const std::string &path, const int run, const std::string &extension="root")
Constructor . 
 
bool equals(int port) const 
Test whether given port equals. 
 
Auxiliary class for handling event name and optional number. 
 
friend std::istream & operator>>(std::istream &in, JEvent_t &object)
Read event name and optional number from input stream. 
 
JDAQProcess(const JHostname &hostname, const std::string &key="")
Constructor. 
 
char getTokenDelimeter()
Get the token delimeter for command messages. 
 
JTag getUniqueTag() const 
Get unique tag. 
 
char getEventnameDelimeter()
Get the event name delimeter. 
 
JEvent_t()
Default constructor. 
 
char getWildCard()
Get the wild card. 
 
bool equals(const JTag &tag) const 
Test whether given tag equals. 
 
int getNumber() const 
Get event number. 
 
static const char * getPrefix()
Get file name prefix. 
 
static const char WILD_CARD
 
static JDAQRun valueOf(const std::string &file_name)
Extract DAQ run parameters. 
 
std::string toString() const 
Convert DAQ run to string. 
 
friend std::ostream & operator<<(std::ostream &out, const JEvent_t &object)
Write event to output stream. 
 
JDAQRun(const std::string &path, const int unique_id, const int run, const std::string &extension="root")
Constructor . 
 
std::string getFullName(const std::string &hostname, const std::string &name)
Get full name of run control client. 
 
JDAQRun()
Default constructor . 
 
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
 
bool equals(const JHostname &hostname) const 
Test whether given host name equals. 
 
Hostname and IP address functions. 
 
JEvent_t(const std::string &name, const int number)
Constructor.