Example program to test module status bits.  
More...
#include <string>
#include <iostream>
#include <iomanip>
#include "JDetector/JModule.hh"
#include "JDetector/JModuleStatus.hh"
#include "Jeep/JStreamToolkit.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 module status bits. 
- Author
 - mdejong 
 
Definition in file JModuleStatusBits.cc.
 
      
        
          | int main  | 
          ( | 
          int  | 
          argc,  | 
        
        
           | 
           | 
          char **  | 
          argv  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 20 of file JModuleStatusBits.cc.
   29     JParser<> zap(
"Example program to test module status bits.");
 
   35   catch(
const exception &error) {
 
   36     FATAL(error.what() << endl);
 
   41     cout << 
"Module status bits: ";
 
   42     writeObject(cout, getModuleStatusBits<string>()) << endl;    
 
   51     ASSERT(module.has(*i) == 
false);
 
   57     ASSERT(module.has(*i) == 
true);
 
Utility class to parse command line options. 
 
#define ASSERT(A,...)
Assert macro. 
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object 
 
static const JPutModuleStatusBit putModuleStatusBit(getModuleStatusBit)
Function object to map module status bit to key. 
 
then usage $script< input_file >< detector_file > fi set_variable OUTPUT_DIR set_variable SELECTOR JDAQTimesliceL1 set_variable DEBUG case set_variable DEBUG
 
std::ostream & writeObject(std::ostream &out, const T &object)
Stream output of object.