LCOV - code coverage report
Current view: top level - otsdaq/test/InterfacePluginTest - InterfacePluginTestMain.cc (source / functions) Coverage Total Hit
Test: mu2edaq.info.cleaned Lines: 0.0 % 15 0
Test Date: 2026-07-30 01:56:44 Functions: 0.0 % 1 0

            Line data    Source code
       1              : // #include <otsdaq_demo/otsdaq-demo/FEInterfaces/FEWROtsUDPFSSRInterface.h>
       2              : // #include <otsdaq_demo/otsdaq-demo/UserConfigurationDataFormats/FEWROtsUDPFSSRInterfaceConfiguration.h>
       3              : #include "otsdaq/ConfigurationInterface/ConfigurationManager.h"
       4              : #include "otsdaq/FECore/FEVInterfacesManager.h"
       5              : // #include "otsdaq/TableDataFormats/TableGroupKey.h"
       6              : 
       7              : // #include "otsdaq-demo/FEInterfaces/FEWOtsGenericInterface.h"
       8              : #include "otsdaq/FECore/FEVInterface.h"
       9              : 
      10              : #include <iostream>
      11              : #include <memory>
      12              : 
      13              : #include "otsdaq/ConfigurationInterface/ConfigurationInterface.h"
      14              : #include "otsdaq/FECore/MakeInterface.h"
      15              : #include "otsdaq/TableCore/MakeTable.h"
      16              : 
      17              : // #include "otsdaq-components/FEInterfaces/FEWOtsUDPFSSRInterface.h"
      18              : // #include "otsdaq-components/FEInterfaces/FEWOtsUDPHCALInterface.h"
      19              : 
      20              : // Shared test utilities
      21              : #include "otsdaq/Macros/TestUtilities.h"
      22              : 
      23              : using namespace ots;
      24              : 
      25            0 : int main()
      26              : {
      27              :         //==============================================================================
      28              :         // Define environment variables
      29              :         //      Note: normally these environment variables are set by ots script
      30              : 
      31            0 :         test::util::check_and_make_envs();
      32              :         ////////////////////////////////////////////////////
      33              : 
      34              :         // Variables
      35            0 :         std::string supervisorContextUID_     = "MainContext";
      36            0 :         std::string supervisorApplicationUID_ = "FeSupervisor0";
      37            0 :         std::string ConfigurationAlias_       = "Physics";
      38              :         std::string theSupervisorConfigurationPath_ =
      39            0 :             supervisorContextUID_ + "/LinkToApplicationTable/" + supervisorApplicationUID_ +
      40            0 :             "/LinkToSupervisorTable";
      41              :         // const int TableGroupKeyValue_ = 0;
      42              :         // std::shared_ptr<TableGroupKey> theConfigurationTableGroupKey_(new
      43              :         // TableGroupKey(TableGroupKeyValue_));
      44              : 
      45              :         ////////////////////////////////////////////////////////////////
      46              :         // INSERTED GLOBALLY IN THE CODE
      47            0 :         ConfigurationManager* theConfigurationManager_ = new ConfigurationManager;
      48              :         FEVInterfacesManager  theFEVInterfacesManager_(
      49            0 :         theConfigurationManager_->getNode(ConfigurationManager::XDAQ_CONTEXT_TABLE_NAME),
      50            0 :         theSupervisorConfigurationPath_);
      51              : 
      52              :         std::pair<std::string /*group name*/, TableGroupKey> theGroup =
      53            0 :             theConfigurationManager_->getTableGroupFromAlias(ConfigurationAlias_);
      54              : 
      55            0 :         theConfigurationManager_->loadTableGroup(theGroup.first, theGroup.second, true);
      56              : 
      57            0 :         theFEVInterfacesManager_.configure();
      58              :         ////////////////////////////////////////////////////////////////
      59            0 :         exit(0);
      60              :         ////////////////////////////////////////////////////////////////
      61              :         // Getting just the informations about the FEWInterface
      62              : 
      63              :         //      const std::string feId_ = "0";
      64              :         //      ConfigurationInterface* theInterface_;
      65              :         //      theInterface_ = ConfigurationInterface::getInstance(true);//FIXME This will be
      66              :         // variable because if false it takes it from the database      Configurations*
      67              :         // configurations = 0;
      68              :         //      theInterface_->get((TableBase*&)configurations,"Configurations");
      69              :         //      TableBase* frontEndConfiguration = 0;
      70              :         //      theInterface_->get(frontEndConfiguration, "FEConfiguration",
      71              :         // theConfigurationTableGroupKey_,
      72              :         // configurations);
      73              :         //
      74              :         //      const std::string interfaceName     =  "FEOtsUDPFSSRInterface";
      75              :         //      const std::string configurationName =  interfaceName + "Table";
      76              :         //
      77              :         //      //FEWOtsUDPHardwareConfiguration* interfaceConfiguration_ = 0;
      78              :         //
      79              :         //      TableBase* interfaceConfiguration_ =
      80              :         // 0;//makeConfigurationInterface(configurationName);
      81              :         //
      82              :         //      if(configurations->findKOC(*theConfigurationTableGroupKey_,configurationName))
      83              :         //      {
      84              :         //              theInterface_->get(interfaceConfiguration_, configurationName,
      85              :         // theConfigurationTableGroupKey_, configurations);
      86              :         //      }
      87              :         //
      88              :         //      std::unique_ptr<FEVInterface> theFEWInterface  = makeInterface(interfaceName,
      89              :         // feId_, (FEInterfaceTableBase*)interfaceConfiguration_);
      90              : 
      91              :         ////////////////////////////////////////////////////////////////
      92              : 
      93              :         return 0;
      94            0 : }
        

Generated by: LCOV version 2.0-1