otsdaq_components
v2_05_02_indev
Return to top level
Main Page
Classes
Files
File List
InterfaceTestMain.cc
1
/*
2
#include "otsdaq-demo/FEInterfaces/FEWInterfacesManager.h"
3
#include "otsdaq/ConfigurationDataFormats/ConfigurationKey.h"
4
#include "otsdaq/ConfigurationInterface/ConfigurationManager.h"
5
6
#include "otsdaq-demo/FEInterfaces/FEWOtsGenericInterface.h"
7
#include "otsdaq-demo/FEInterfaces/FEWPurdueFSSRInterface.h"
8
#include "otsdaq/FECore/FEVInterface.h"
9
10
#include "otsdaq/ConfigurationInterface/ConfigurationInterface.h"
11
#include "otsdaq/TablePlugins/Configurations.h"
12
//#include "otsdaq/ConfigurationDataFormats/FrontEndTable.h"
13
#include "otsdaq/ConfigurationDataFormats/FEWOtsUDPHardwareTable.h"
14
15
#include <iostream>
16
17
#include "../FEInterfaces/FEWOtsUDPFSSRInterface.h"
18
#include "../FEInterfaces/FEWOtsUDPHCALInterface.h"
19
20
using namespace ots;
21
*/
22
int
main() {
return
1; }
23
/*
24
//Variables
25
const int supervisorInstance_ = 1;
26
const int configurationKeyValue_ = 0;
27
const ConfigurationKey* theConfigurationKey_ = new
28
ConfigurationKey(configurationKeyValue_);
29
31
//INSERTED GLOBALLY IN THE CODE
32
// ConfigurationManager* theConfigurationManager_ = new ConfigurationManager;
33
// FEWInterfacesManager theFEWInterfacesManager_(theConfigurationManager_,
34
supervisorInstance_);
35
//
36
//
37
theConfigurationManager_->setupFEWSupervisorConfiguration(theConfigurationKey_,supervisorInstance_);
38
// theFEWInterfacesManager_.configure();
40
42
//Getting just the informations about the FEWInterface
43
44
// const int fecInterfaceNumber_ = 0;
45
// ConfigurationInterface* theInterface_;
46
// theInterface_ = ConfigurationInterface::getInstance(true);//FIXME This will be
47
variable because if false it takes it from the database
48
// Configurations* configurations = 0;
49
// theInterface_->get(configurations);
50
// FEConfiguration* frontEndConfiguration = 0;
51
// theInterface_->get(frontEndConfiguration, theConfigurationKey_, configurations);
52
// FEWOtsUDPHardwareConfiguration* interfaceConfiguration_ = 0;
53
//
54
//
55
if(configurations->findKOC(theConfigurationKey_->key(),"FEWOtsUDPHardwareConfiguration"))
56
// theInterface_->get(interfaceConfiguration_, theConfigurationKey_, configurations);
58
"OTS_UDP", interfaceConfiguration_);
60
"OTS_UDP", interfaceConfiguration_);
61
// FEVInterface* theFEWInterface = new FEWOtsGenericInterface(fecInterfaceNumber_,
62
"OTS_UDP", "FSSR", interfaceConfiguration_);
64
interfaceConfiguration_);
65
//
66
// theFEWInterface->configureFEW();
67
// // theFEWInterface->start();
68
// //theFEWInterface->configureDetector();
70
71
return 0;
72
}
73
*/
otsdaq_components
otsdaq-components
InterfaceTest
InterfaceTestMain.cc
Generated on Wed Apr 29 2020 18:41:43 for otsdaq_components by
1.8.5