Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 31 additions & 7 deletions otsdaq/ConfigurationInterface/ConfigurationManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4311,8 +4311,7 @@ void ConfigurationManager::initializeFromFhicl(const std::string& fhiclPath)
table->setActiveView(TableVersion(TableVersion::DEFAULT));

TableView* view = table->getViewP();
__GEN_COUT__ << "Activated version: " << view->getVersion() << __E__;
// view->print();
__GEN_COUT__ << "Activated version: " << view->getVersion() << __E__;

// add context record ---------------------
view->addRow();
Expand All @@ -4324,7 +4323,12 @@ void ConfigurationManager::initializeFromFhicl(const std::string& fhiclPath)
view->setValue("1", 0, colMap[TableViewColumnInfo::COL_NAME_STATUS]);

__GEN_COUT__ << "Done adding context record..." << __E__;
view->print();
if(TTEST(1))
{
std::stringstream ss;
view->print(ss);
__GEN_COUTT__ << "view->print()" << ss.str() << __E__;
}

} // done with context record

Expand All @@ -4346,7 +4350,6 @@ void ConfigurationManager::initializeFromFhicl(const std::string& fhiclPath)

TableView* view = table->getViewP();
__GEN_COUT__ << "Activated version: " << view->getVersion() << __E__;
// view->print();

// add application record ---------------------
view->addRow();
Expand All @@ -4360,7 +4363,12 @@ void ConfigurationManager::initializeFromFhicl(const std::string& fhiclPath)
view->setValue(__ENV__("FE_SUPERVISOR_ID"), 0, colMap["Id"]); // XDAQ LID

__GEN_COUT__ << "Done adding application record..." << __E__;
view->print();
if(TTEST(1))
{
std::stringstream ss;
view->print(ss);
__GEN_COUTT__ << "view->print()" << ss.str() << __E__;
}
} // done with app record

// create FE Supervisor table and Supervisor record
Expand All @@ -4380,7 +4388,6 @@ void ConfigurationManager::initializeFromFhicl(const std::string& fhiclPath)

TableView* view = table->getViewP();
__GEN_COUT__ << "Activated version: " << view->getVersion() << __E__;
// view->print();

// add application record ---------------------
view->addRow();
Expand All @@ -4392,7 +4399,12 @@ void ConfigurationManager::initializeFromFhicl(const std::string& fhiclPath)
"MacroMakerFESupervisorInterfaces", 0, colMap["LinkToFEInterfaceGroupID"]);

__GEN_COUT__ << "Done adding supervisor record..." << __E__;
view->print();
if(TTEST(1))
{
std::stringstream ss;
view->print(ss);
__GEN_COUTT__ << "view->print()" << ss.str() << __E__;
}
} // done with app record

// create FE Interface table and interface record(s)
Expand Down Expand Up @@ -4972,6 +4984,18 @@ ConfigurationManager::getOtherSubsystemActiveTableGroups(
ss << userDataPath << __E__;
__SS_ONLY_THROW__;
}
else if(cmdResult.find("No such file or directory") != std::string::npos)
{
__GEN_SS__
<< "\n\nActive tables groups file not found at user data path specified for subsystem '"
<< otherSubsystemUID << "': ";
if(username != "")
ss << username << "@";
if(hostname != "")
ss << hostname << ":";
ss << userDataPath << __E__;
__SS_ONLY_THROW__;
}

auto subsystemActiveGroupMap = StringMacros::getVectorFromString(
cmdResult, {'\n'} /* delimieter*/, {' ', '\t'} /* whitespace*/);
Expand Down
5 changes: 5 additions & 0 deletions otsdaq/FECore/FEVInterface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -924,6 +924,10 @@ void FEVInterface::registerFEMacroFunction(
__FE_SS_THROW__;
}

__FE_COUTT__ << "Registering FE Macro Function: '" << feMacroName
<< "' with requiredUserPermissions=" << requiredUserPermissions
<< " allowedCallingFEs=" << allowedCallingFEs << __E__;

mapOfFEMacroFunctions_.insert(std::pair<std::string, frontEndMacroStruct_t>(
feMacroName,
frontEndMacroStruct_t(feMacroName,
Expand All @@ -933,6 +937,7 @@ void FEVInterface::registerFEMacroFunction(
requiredUserPermissions,
allowedCallingFEs,
feMacroTooltip)));

} // end registerFEMacroFunction()

//==============================================================================
Expand Down
Loading
Loading