Example program to test JSUPPORT::JMeta class.  
More...
#include <string>
#include <iostream>
#include <iomanip>
#include <vector>
#include "TFile.h"
#include "JSupport/JMeta.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
 
Go to the source code of this file.
 | 
| int  | main (int argc, char **argv) | 
|   | 
Example program to test JSUPPORT::JMeta class. 
- Author
 - mdejong 
 
Definition in file JMeta.cc.
 
      
        
          | int main  | 
          ( | 
          int  | 
          argc,  | 
        
        
           | 
           | 
          char **  | 
          argv  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 20 of file JMeta.cc.
   31     JParser<> zap(
"Example program to test meta.");
 
   39   catch(
const exception &error) {
 
   40     FATAL(error.what() << endl);
 
   43   argv[0] = (
char*) 
"test";   
 
   45   const JMeta meta(argc, argv);
 
   48   DEBUG(meta.toString() << endl);
 
   50   ASSERT(JMeta::valueOf(meta.toString()) == meta);
 
   62     TFile* file = TFile::Open(
outputFile.c_str(), 
"exists");
 
Utility class to parse command line options. 
 
TObject * getObject(const JRootObjectID &id)
Get first TObject with given identifier. 
 
#define MAKE_CSTRING(A)
Make C-string. 
 
#define ASSERT(A,...)
Assert macro. 
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object 
 
bool putObject(TDirectory &dir, const TObject &object)
Write object to ROOT directory. 
 
static const char *const META_NAME
ROOT name for meta data. 
 
then usage $script< input_file >< detector_file > fi set_variable OUTPUT_DIR set_variable SELECTOR JDAQTimesliceL1 set_variable DEBUG case set_variable DEBUG
 
then usage $script< string identifier >< detectorfile > event file(toashort file)+" "\nNote that the event files and toashort files should be one-to-one related." fi if (( $