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

'CMakeLists.txt' (ByteStreamEventPTCnv-00-00-01)

parent 822753e6
No related merge requests found
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#ifndef BYTESTREAMEVENTPTCNV_BYTESTREAMEVENTPTCNVDICT_H
#define BYTESTREAMEVENTPTCNV_BYTESTREAMEVENTPTCNVDICT_H
/**
* @file ByteStreamEventPTCnvDict.h
*
* @brief Header file for dictionary generation
*
* @author <vaniachine@anl.gov>
*/
#include "ByteStreamEventPTCnv/ByteStreamMetadataPTCnv_p1.h"
#endif // BYTESTREAMEVENTPTCNV_BYTESTREAMEVENTPTCNVDICT_H
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#ifndef BYTESTREAMEVENTPTCNV_BYTESTREAMMETADATAPTCNV_P1_H
#define BYTESTREAMEVENTPTCNV_BYTESTREAMMETADATAPTCNV_P1_H
/**
* @file ByteStreamMetadataPTCnv_p1.h
*
* @brief Header file for in-file metadata getters (file peeking without Athena)
*
* @author <vaniachine@anl.gov>
*/
#define private public
#include "ByteStreamEventTPCnv/ByteStreamMetadata_p1.h"
#undef private
class ByteStreamMetadataPTCnv_p1 : ByteStreamMetadata_p1 {
public:
static unsigned int getRunNumber (const ::ByteStreamMetadata_p1& bsmdp) { return bsmdp.m_runNumber; };
static unsigned int getNumEvents (const ::ByteStreamMetadata_p1& bsmdp) { return bsmdp.m_numEvents; };
static unsigned int getMaxEvents (const ::ByteStreamMetadata_p1& bsmdp) { return bsmdp.m_maxEvents; };
static unsigned int getRecEnable (const ::ByteStreamMetadata_p1& bsmdp) { return bsmdp.m_recEnable; };
static unsigned int getTriggerType (const ::ByteStreamMetadata_p1& bsmdp) { return bsmdp.m_triggerType; };
static uint64_t getDetectorMask (const ::ByteStreamMetadata_p1& bsmdp) { return bsmdp.m_detectorMask; };
static uint64_t getDetectorMask2 (const ::ByteStreamMetadata_p1& bsmdp) { return bsmdp.m_detectorMask2; };
static unsigned int getBeamType (const ::ByteStreamMetadata_p1& bsmdp) { return bsmdp.m_beamType; };
static unsigned int getBeamEnergy (const ::ByteStreamMetadata_p1& bsmdp) { return bsmdp.m_beamEnergy; };
static std::string getGuid (const ::ByteStreamMetadata_p1& bsmdp) { return bsmdp.m_guid; };
static std::string getStream (const ::ByteStreamMetadata_p1& bsmdp) { return bsmdp.m_stream; };
static std::string getProject (const ::ByteStreamMetadata_p1& bsmdp) { return bsmdp.m_project; };
static unsigned int getLumiBlock (const ::ByteStreamMetadata_p1& bsmdp) { return bsmdp.m_lumiBlock; };
static std::vector<std::string> getFreeMetaDataStrings (const ::ByteStreamMetadata_p1& bsmdp) { return bsmdp.m_freeMetaDataStrings; };
};
#endif // BYTESTREAMEVENTPTCNV_BYTESTREAMMETADATAPTCNV_P1_H
<lcgdict>
<class name="ByteStreamMetadataPTCnv_p1" />
</lcgdict>
################################################################################
# Package: ByteStreamEventPTCnv
################################################################################
# Declare the package name:
atlas_subdir( ByteStreamEventPTCnv )
# Declare the package's dependencies:
atlas_depends_on_subdirs( PUBLIC
Event/ByteStreamEventTPCnv )
# External dependencies:
find_package( ROOT COMPONENTS Core Tree MathCore Hist RIO pthread )
# Component(s) in the package:
atlas_add_tpcnv_library( ByteStreamEventPTCnv
src/*.cxx
PUBLIC_HEADERS ByteStreamEventPTCnv
PRIVATE_INCLUDE_DIRS ${ROOT_INCLUDE_DIRS}
LINK_LIBRARIES ${ROOT_LIBRARIES} ByteStreamEventTPCnv )
atlas_add_dictionary( ByteStreamEventPTCnvDict
ByteStreamEventPTCnv/ByteStreamEventPTCnvDict.h
ByteStreamEventPTCnv/selection.xml
INCLUDE_DIRS ${ROOT_INCLUDE_DIRS}
LINK_LIBRARIES ${ROOT_LIBRARIES} ByteStreamEventTPCnv ByteStreamEventPTCnv )
package ByteStreamEventPTCnv
author Alexandre Vaniachine <vaniachine@anl.gov>
use AtlasPolicy AtlasPolicy-*
use ByteStreamEventTPCnv ByteStreamEventTPCnv-* Event
library ByteStreamEventPTCnv *.cxx
apply_pattern tpcnv_library
private
use AtlasReflex AtlasReflex-* External
apply_pattern lcgdict dict=ByteStreamEventPTCnv selectionfile=selection.xml headerfiles="../ByteStreamEventPTCnv/ByteStreamEventPTCnvDict.h"
end_private
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
/**
* @file ByteStreamMetadataPTCnv_p1.cxx
*
* @author Alexandre Vaniachine <vaniachine@anl.gov>
*
*/
#include "ByteStreamEventPTCnv/ByteStreamMetadataPTCnv_p1.h"
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