Skip to content
Snippets Groups Projects
Commit 37626dbb authored by Atlas-Software Librarian's avatar Atlas-Software Librarian Committed by Graeme Stewart
Browse files

'CMakeLists.txt' (TrigHLTResultByteStream-00-00-13)

2015-05-08  Werner Wiedenmann  <Werner.Wiedenmann@cern.ch>

	* src/HLTResultByteStreamTool.cxx, TrigHLTResultByteStream/HLTResultByteStreamTool.h: add data scouting HLT result
	* TrigHLTResultByteStream-00-00-13

2014-11-09  David Quarrie  <David.Quarrie@cern.ch>
	* cmt/requirements
	* Tagged as TrigHLTResultByteStream-00-00-12
parent 883d653b
No related branches found
No related tags found
No related merge requests found
################################################################################
# Package: TrigHLTResultByteStream
################################################################################
# Declare the package name:
atlas_subdir( TrigHLTResultByteStream )
# Declare the package's dependencies:
atlas_depends_on_subdirs( PUBLIC
Control/AthenaBaseComps
Control/CLIDSvc
Control/SGTools
Control/StoreGate
Event/ByteStreamCnvSvcBase
Event/ByteStreamData
GaudiKernel
Trigger/TrigEvent/TrigSteeringEvent )
# External dependencies:
find_package( tdaq-common COMPONENTS eformat_write )
# Component(s) in the package:
atlas_add_library( TrigHLTResultByteStreamLib
src/*.cxx
PUBLIC_HEADERS TrigHLTResultByteStream
INCLUDE_DIRS ${TDAQ-COMMON_INCLUDE_DIRS}
LINK_LIBRARIES ${TDAQ-COMMON_LIBRARIES} AthenaBaseComps SGTools ByteStreamData GaudiKernel TrigSteeringEvent StoreGateLib SGtests ByteStreamCnvSvcBaseLib ByteStreamData_test )
atlas_add_component( TrigHLTResultByteStream
src/components/*.cxx
INCLUDE_DIRS ${TDAQ-COMMON_INCLUDE_DIRS}
LINK_LIBRARIES ${TDAQ-COMMON_LIBRARIES} AthenaBaseComps SGTools StoreGateLib SGtests ByteStreamCnvSvcBaseLib ByteStreamData ByteStreamData_test GaudiKernel TrigSteeringEvent TrigHLTResultByteStreamLib )
......@@ -77,7 +77,7 @@ namespace HLT {
FullEventAssembler<HLTSrcIdMap>* eventAssembler(std::string objName); //!< helper method
private:
static std::string s_l2ResultName, s_efResultName, s_hltResultName; //!< LVL2 and EF StoreGate keys
static std::string s_l2ResultName, s_efResultName, s_hltResultName, s_dataScoutingResultName; //!< LVL2 and EF StoreGate keys
static eformat::SubDetector s_idL2, s_idEF; //!< eformat TDAQ "subdetector"
FullEventAssembler<HLTSrcIdMap> m_feaL2, m_feaEF; //!< helper for reading
......
......@@ -10,9 +10,9 @@ use GaudiInterface GaudiInterface-* External
use DataCollection DataCollection-* External
use AthenaBaseComps AthenaBaseComps-* Control
author Nicolas Berger <Nicolas.Berger@cern.ch>
# Specify the required tdaq-common components for cmake (transparent to CMT)
apply_pattern cmake_add_command command="find_package(tdaq-common COMPONENTS eformat_write)"
author Nicolas Berger <Nicolas.Berger@cern.ch>
apply_pattern dual_use_library files="*.cxx"
......@@ -8,10 +8,12 @@
#include "eformat/SourceIdentifier.h"
#include "ByteStreamCnvSvcBase/IROBDataProviderSvc.h"
#include <iostream>
#include <stdlib.h>
std::string HLT::HLTResultByteStreamTool::s_l2ResultName = "HLTResult_L2";
std::string HLT::HLTResultByteStreamTool::s_efResultName = "HLTResult_EF";
std::string HLT::HLTResultByteStreamTool::s_hltResultName = "HLTResult_HLT";
std::string HLT::HLTResultByteStreamTool::s_dataScoutingResultName = "DataScouting_";
eformat::SubDetector HLT::HLTResultByteStreamTool::s_idL2 = eformat::TDAQ_LVL2;
eformat::SubDetector HLT::HLTResultByteStreamTool::s_idEF = eformat::TDAQ_EVENT_FILTER; // same as TDAQ_HLT in eformat5
......@@ -35,6 +37,7 @@ eformat::SubDetector HLT::HLTResultByteStreamTool::byteStreamLocation(std::strin
{
if (objName == s_l2ResultName) return s_idL2;
if (objName == s_efResultName || objName == s_hltResultName) return s_idEF;
if (objName.substr(0,s_dataScoutingResultName.length()) == s_dataScoutingResultName) return s_idEF;
return eformat::OTHER;
}
......@@ -45,6 +48,7 @@ HLT::HLTResultByteStreamTool::eventAssembler(std::string objName)
{
if (objName == s_l2ResultName) return &m_feaL2;
if (objName == s_efResultName || objName == s_hltResultName) return &m_feaEF;
if (objName.substr(0,s_dataScoutingResultName.length()) == s_dataScoutingResultName) return &m_feaEF;
return 0;
}
......@@ -67,7 +71,11 @@ StatusCode HLT::HLTResultByteStreamTool::convert( HLTResult* result, RawEventWri
m_fea->clear() ;
eformat::helper::SourceIdentifier helpID(subDet, 0);
uint32_t module_id(0);
if (objName.substr(0,s_dataScoutingResultName.length()) == s_dataScoutingResultName) {
module_id = atoi( (objName.substr(s_dataScoutingResultName.length(),2)).c_str() ) ;
}
eformat::helper::SourceIdentifier helpID(subDet, module_id);
uint32_t rodIdHLTResult = helpID.code();
std::vector<uint32_t>* rod = m_fea->getRodData( rodIdHLTResult );
......@@ -101,7 +109,11 @@ StatusCode HLT::HLTResultByteStreamTool::convert(IROBDataProviderSvc& dataProvid
// unsigned int vector where to store HLT payload
std::vector<uint32_t> hltContent;
eformat::helper::SourceIdentifier helpID(byteStreamLocation(objName), 0);
uint32_t module_id(0);
if (objName.substr(0,s_dataScoutingResultName.length()) == s_dataScoutingResultName) {
module_id = atoi( (objName.substr(s_dataScoutingResultName.length(),2)).c_str() ) ;
}
eformat::helper::SourceIdentifier helpID(byteStreamLocation(objName), module_id);
uint32_t robId = helpID.code();
std::vector<uint32_t> vID;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment