ATLAS Offline Software
Loading...
Searching...
No Matches
TBXMLCaloCellWriterTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TBREC_TBXMLCALOCELLWRITERTOOL_H
6#define TBREC_TBXMLCALOCELLWRITERTOOL_H
8// \brief writes CaloCell for TB event display
10
12#include "CaloGeoHelpers/CaloSampling.h"
13
16
17#include "TBXMLWriterToolBase.h"
18
19#include <iosfwd>
20#include <vector>
21#include <string>
22#include <string_view>
23#include <unordered_set>
24
25class TBXMLWriter;
26
28{
29
30 public:
31
33 // Constructors and Destructor //
35
37 TBXMLCaloCellWriterTool(const std::string& type,
38 const std::string& name,
39 const IInterface* parent);
40
42
43 virtual StatusCode initialize() override;
44
46 // Action //
48
49 protected:
50
51 virtual StatusCode writeRunFiles(const std::string& fileDir,
52 unsigned int runNumber) override;
53 virtual StatusCode writeEvent(std::ostream& outFile,
54 std::string_view /* entryTag */ ) override;
55
56 virtual StatusCode convertProperties();
57
58 private:
59
60 static const unsigned int m_nCols;
61
62 std::vector<std::string> m_includedCalos;
63 std::vector<std::string> m_includedSamplings;
64
66
68
69 std::vector<CaloCell_ID::SUBCALO> m_caloIndices;
70 std::vector<CaloSampling::CaloSample> m_caloSamplings;
71 std::string m_cellContainer;
72
74
76
77 std::unordered_set<EventIDBase::number_type> m_runNumbers;
78
80 , "CaloDetDescrManager"
81 , "CaloDetDescrManager"
82 , "SG Key for CaloDetDescrManager in the Condition Store" };
83
84};
85#endif
Definition of CaloDetDescrManager.
Helper class for offline cell identifiers.
Definition CaloCell_ID.h:34
std::vector< std::string > m_includedSamplings
virtual StatusCode writeRunFiles(const std::string &fileDir, unsigned int runNumber) override
TBXMLCaloCellWriterTool(const std::string &type, const std::string &name, const IInterface *parent)
tool constructor
virtual StatusCode initialize() override
static const unsigned int m_nCols
std::unordered_set< EventIDBase::number_type > m_runNumbers
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
std::vector< std::string > m_includedCalos
virtual StatusCode writeEvent(std::ostream &outFile, std::string_view) override
virtual StatusCode convertProperties()
std::vector< CaloCell_ID::SUBCALO > m_caloIndices
std::vector< CaloSampling::CaloSample > m_caloSamplings
TBXMLWriterToolBase(const std::string &type, const std::string &name, const IInterface *parent)