Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

Triggertest.cpp

Go to the documentation of this file.
00001 #include <SpectroFramework.h>
00002 #include <CCAMACTrigger.h>
00003 #include <CVMETrigger.h>
00004 #include <iostream.h>
00005 
00006 
00007 class MyApp : public DAQROCNode
00008 {
00009   int operator()(int argc, char** argv);
00010 };
00011 
00012 MyApp theapp;
00013 
00014 
00015 int
00016 MyApp::operator()(int argc, char** argv)
00017 {
00018   CCAMACTrigger ctrigger(0);    // Branch 0 trigger.
00019   CVMETrigger   vtrigger(0x444400); // VME trigger module.
00020 
00021   while(1) {
00022     if(ctrigger()) {
00023       cout << "CAMAC trigger detected" << endl;
00024     }
00025     if(vtrigger()) {
00026       cout << "VME Trigger detected" << endl;
00027     }
00028   }
00029 }

Generated on Fri Nov 8 13:36:51 2002 for Event Readout system. by doxygen1.2.16