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

centellaCommands.cpp

Go to the documentation of this file.
00001 #include "Event/centellaCommands.h"
00002 #include "Event/dataManager.h"
00003 #include "Event/dataDetectorServer.h"
00004 #include "Event/IOfileServer.h"
00005 #include "Event/optionManager.h"
00006 #include "Event/messageManager.h"
00007 
00008 //-------- COMMANDS ---------------------
00009 //#######################################
00010 void comLoadCalibration::execute()
00011 //#######################################
00012 {
00013         dataManager::instance()->det()->update();
00014 }
00015 //#######################################
00016 void comOpenIO::execute()
00017 //#######################################
00018 {       
00019         dataManager::instance()->IO()->open();
00020 }
00021 //#######################################
00022 void comCloseIO::execute()
00023 //#######################################
00024 {
00025         dataManager::instance()->IO()->close();
00026 }
00027 //##################################
00028 void comReadEvent::execute()
00029 //##################################
00030 {
00031         // read an event (or skip)
00032         dataManager::instance()->IO()->readEvent();
00033 }
00034 //##################################
00035 void comSkipEvent::execute()
00036 //##################################
00037 {
00038         dataManager::instance()->IO()->skipEvent();
00039 }
00040 //##################################
00041 void comWriteEvent::execute()
00042 //##################################
00043 {
00044         dataManager::instance()->IO()->writeEvent();
00045 }
00046 //##################################
00047 void comWriteOutData::execute()
00048 //##################################
00049 {
00050         dataManager::instance()->evt()->writeOutServer();
00051 }
00052 //#######################################
00053 void comWriteOutDetector::execute()
00054 //#######################################
00055 {
00056         dataManager::instance()->det()->writeOutServer();
00057 }
00058 //#######################################
00059 void comWriteOutInfo::execute()
00060 //#######################################
00061 {
00062         messageManager::instance()->writeOut("processManager");
00063         messageManager::instance()->writeOut("selectionManager");
00064         messageManager::instance()->writeOut("dataManager");
00065 }
00066 //#######################################
00067 void comApplyOptions::execute()
00068 //#######################################
00069 {
00070         optionManager::instance()->optionServer::setOption();
00071 }
00072 //#######################################
00073 void comListOptions::execute()
00074 //#######################################
00075 {
00076         optionManager::instance()->writeOutOptionsServer();
00077 }
00078 //##########################################
00079 void comWriteWelcome::execute()
00080 //##########################################
00081 {
00082         std::ostream& out = messageManager::instance()->out();
00083         
00084         out << " ************************** " << "\n";
00085         out << " **                      ** " << "\n";
00086         out << " **            centella  ** " << "\n";
00087         out << " **               V 1.10 ** " << "\n";
00088         out << " ************************** " << "\n";
00089 }
00090 //---------- CONDITIONS or CUTS------------
00091 //##################################
00092 bool conNextEvent::apply()
00093 //##################################
00094 {
00095         return dataManager::instance()->IO()->nextEvent();
00096 }

Generated at Fri Aug 18 12:57:37 2000 for centella framework by doxygen 1.1.3 written by Dimitri van Heesch, © 1997-2000