00001 /* 00002 #include "otsdaq-demo/FEInterfaces/FEWInterfacesManager.h" 00003 #include "otsdaq-core/ConfigurationInterface/ConfigurationManager.h" 00004 #include "otsdaq-core/ConfigurationDataFormats/ConfigurationKey.h" 00005 00006 #include "otsdaq-demo/FEInterfaces/FEWOtsGenericInterface.h" 00007 #include "otsdaq-demo/FEInterfaces/FEWPurdueFSSRInterface.h" 00008 #include "otsdaq-core/FECore/FEVInterface.h" 00009 00010 #include "otsdaq-core/ConfigurationInterface/ConfigurationInterface.h" 00011 #include "otsdaq-core/ConfigurationPluginDataFormats/Configurations.h" 00012 //#include "otsdaq-core/ConfigurationDataFormats/FrontEndConfiguration.h" 00013 #include "otsdaq-core/ConfigurationDataFormats/FEWOtsUDPHardwareConfiguration.h" 00014 00015 #include <iostream> 00016 00017 #include "../FEInterfaces/FEWOtsUDPFSSRInterface.h" 00018 #include "../FEInterfaces/FEWOtsUDPHCALInterface.h" 00019 00020 using namespace ots; 00021 */ 00022 int main() 00023 { 00024 return 1; 00025 } 00026 /* 00027 //Variables 00028 const int supervisorInstance_ = 1; 00029 const int configurationKeyValue_ = 0; 00030 const ConfigurationKey* theConfigurationKey_ = new ConfigurationKey(configurationKeyValue_); 00031 00033 //INSERTED GLOBALLY IN THE CODE 00034 // ConfigurationManager* theConfigurationManager_ = new ConfigurationManager; 00035 // FEWInterfacesManager theFEWInterfacesManager_(theConfigurationManager_, supervisorInstance_); 00036 // 00037 // theConfigurationManager_->setupFEWSupervisorConfiguration(theConfigurationKey_,supervisorInstance_); 00038 // theFEWInterfacesManager_.configure(); 00040 00042 //Getting just the informations about the FEWInterface 00043 00044 // const int fecInterfaceNumber_ = 0; 00045 // ConfigurationInterface* theInterface_; 00046 // theInterface_ = ConfigurationInterface::getInstance(true);//FIXME This will be variable because if false it takes it from the database 00047 // Configurations* configurations = 0; 00048 // theInterface_->get(configurations); 00049 // FEConfiguration* frontEndConfiguration = 0; 00050 // theInterface_->get(frontEndConfiguration, theConfigurationKey_, configurations); 00051 // FEWOtsUDPHardwareConfiguration* interfaceConfiguration_ = 0; 00052 // 00053 // if(configurations->findKOC(theConfigurationKey_->key(),"FEWOtsUDPHardwareConfiguration")) 00054 // theInterface_->get(interfaceConfiguration_, theConfigurationKey_, configurations); 00057 // FEVInterface* theFEWInterface = new FEWOtsGenericInterface(fecInterfaceNumber_, "OTS_UDP", "FSSR", interfaceConfiguration_); 00059 // 00060 // theFEWInterface->configureFEW(); 00061 // // theFEWInterface->start(); 00062 // //theFEWInterface->configureDetector(); 00064 00065 return 0; 00066 } 00067 */