ATLAS Offline Software
Loading...
Searching...
No Matches
ZdcByteStreamRawDataV2.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5/*
6 * ZdcByteStreamRawDataV2.cxx
7 *
8 * Updated: October 2015
9 * Author: Peter Steinberg (peter.steinberg@bnl.gov)
10 *
11 */
12
13#include <utility>
14
15#include "GaudiKernel/ISvcLocator.h"
16#include "GaudiKernel/MsgStream.h"
17#include "GaudiKernel/StatusCode.h"
19
20#include "ZdcEvent/ZdcDigits.h"
22
26
27//==================================================================================================
28ZdcByteStreamRawDataV2::ZdcByteStreamRawDataV2(const std::string& name, ISvcLocator* pSvcLocator) :
29 AthReentrantAlgorithm(name, pSvcLocator)
30{
31}
32//==================================================================================================
33
34
35//==================================================================================================
37{
39 return StatusCode::SUCCESS;
40}
41//==================================================================================================
42
43
44//==================================================================================================
45StatusCode ZdcByteStreamRawDataV2::execute (const EventContext& ctx) const
46{
47 if (!msgLvl(MSG::INFO)) return StatusCode::SUCCESS;
48 msg(MSG::INFO);
49
50 msg(MSG::DEBUG) << "Looking for ZDC trigger tower container at " << m_ZdcTriggerTowerContainerLocation.key() << endmsg;
51
54
55 msg(MSG::DEBUG) << ZdcToString(*ttCollection) << endmsg;
56
57 return StatusCode::SUCCESS;
58}
59//==================================================================================================
60
61
62//==================================================================================================
63//FIXME There is no such thing like ZdcDigitsMap
65{
66 //msg() << "Number of ZdcDigits = " << m_ZdcDigitsMap.size() << endmsg;
67// ZdcDigitsMap::const_iterator mapIter = m_ZdcDigitsMap.begin();
68// ZdcDigitsMap::const_iterator mapEnd = m_ZdcDigitsMap.end();
69}
70//==================================================================================================
71
72
73//==================================================================================================
74void ZdcByteStreamRawDataV2::printVec(const std::vector<int>& vec) const
75{
76 std::vector<int>::const_iterator pos;
77 for (pos = vec.begin(); pos != vec.end(); ++pos)
78 {
79 if (pos != vec.begin()) msg() << ",";
80 msg() << *pos;
81 }
82 msg() << "/";
83}
84//==================================================================================================
85
86/* REMOVE
87
88 // Set up trigger tower map
89 void ZdcByteStreamRawDataV2::setupZdcDigitsMap(const ZdcDigitsCollection* const ttCollection)
90 {
91 m_ZdcDigitsMap.clear();
92 ZdcDigitsCollection::const_iterator pos = ttCollection->begin();
93 ZdcDigitsCollection::const_iterator pose = ttCollection->end();
94 for (; pos != pose; ++pos) {
95 const ZdcDigits* const tt = *pos;
96 tt->get_ID();
97
98 //const unsigned int key = m_towerKey->ttKey(tt->phi(), tt->eta());
99 //m_ttMap.insert(std::make_pair(key, tt));
100 }
101 }
102 */
#define endmsg
#define ATH_CHECK
Evaluate an expression and check for errors.
std::vector< size_t > vec
Handle class for reading from StoreGate.
std::string ZdcToString(const std::vector< T > &vv)
bool msgLvl(const MSG::Level lvl) const
An algorithm that can be simultaneously executed in multiple threads.
virtual StatusCode execute(const EventContext &ctx) const override
SG::ReadHandleKey< xAOD::TriggerTowerContainer > m_ZdcTriggerTowerContainerLocation
ZDC Container and collection StoreGate key.
void printVec(const std::vector< int > &vec) const
virtual StatusCode initialize() override
ZdcByteStreamRawDataV2(const std::string &name, ISvcLocator *pSvcLocator)