tdaq-develop-2025-02-12
Return to top level
ARTDAQFEDataManagerSupervisor.cc
1
#include "otsdaq/CoreSupervisors/ARTDAQFEDataManagerSupervisor.h"
2
3
#include "otsdaq/ARTDAQDataManager/ARTDAQDataManager.h"
4
#include "otsdaq/ConfigurationInterface/ConfigurationManager.h"
5
#include "otsdaq/DataManager/DataManagerSingleton.h"
6
#include "otsdaq/FECore/FEVInterfacesManager.h"
7
8
using namespace
ots
;
9
10
XDAQ_INSTANTIATOR_IMPL(
ARTDAQFEDataManagerSupervisor
)
11
12
//==============================================================================
15
ARTDAQFEDataManagerSupervisor
::
ARTDAQFEDataManagerSupervisor
(xdaq::ApplicationStub* s)
16
:
FEDataManagerSupervisor
(s, true
/*artdaq Data Manager*/
)
17
{
18
// __SUP_COUT__ << "Constructor." << std::endl;
19
//
20
// //WARNING THE ORDER IS IMPORTANT SINCE THE FIRST STATE MACHINE ELEMENT
21
// // WILL BE CALLED FIRST DURING TRANSITION!!!!!
22
//
23
// //the FE Interfaces Manager is added first, and then the Data Manager
24
// // So on FSM transitions, front-ends will transition first.
25
//
26
// //FEVInterfacesManager gets added in FESupervisor constructor
27
// __SUP_COUTV__(CoreSupervisorBase::theStateMachineImplementation_.size());
28
//
36
// __SUP_COUT__ << "Adding Data Manager now...!" << __E__;
37
// CoreSupervisorBase::theStateMachineImplementation_.push_back(
38
// DataManagerSingleton::getInstance<ARTDAQDataManager>(
39
// CorePropertySupervisorBase::getContextTreeNode(),
40
// CorePropertySupervisorBase::supervisorConfigurationPath_,
41
// CorePropertySupervisorBase::supervisorApplicationUID_
42
// )
43
// );
44
//
45
// extractDataManager();
46
47
__SUP_COUT__ <<
"Constructed."
<< __E__;
48
}
// end constructor()
49
50
//==============================================================================
51
ARTDAQFEDataManagerSupervisor::~ARTDAQFEDataManagerSupervisor(
void
)
52
{
53
// __SUP_COUT__ << "Destroying..." << std::endl;
54
//
55
// //theStateMachineImplementation_ is reset and the object it points to deleted in
56
//~CoreSupervisorBase()
57
// //This destructor must happen before the CoreSupervisor destructor
58
//
59
// DataManagerSingleton::deleteInstance(CoreSupervisorBase::supervisorApplicationUID_);
60
// theStateMachineImplementation_.pop_back();
61
62
__SUP_COUT__ <<
"Destructed."
<< __E__;
63
}
// end destructor()
ots::ARTDAQFEDataManagerSupervisor
Definition:
ARTDAQFEDataManagerSupervisor.h:9
ots::FEDataManagerSupervisor
Definition:
FEDataManagerSupervisor.h:13
ots
Definition:
ArtdaqOtsBuildInfo_module.cc:10
otsdaq
otsdaq
CoreSupervisors
ARTDAQFEDataManagerSupervisor.cc
Generated on Mon Feb 17 2025 17:02:10 for tdaq-develop-2025-02-12 by
1.9.1