ATLAS Offline Software
Loading...
Searching...
No Matches
TBXMLCaloCellWriterTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 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 <iostream>
20#include <vector>
21#include <string>
22#include <unordered_set>
23
24class TBXMLWriter;
25
27{
28
29 public:
30
32 // Constructors and Destructor //
34
36 TBXMLCaloCellWriterTool(const std::string& type,
37 const std::string& name,
38 const IInterface* parent);
39
41
42 virtual StatusCode initialize() override;
43
45 // Action //
47
48 protected:
49
50 virtual StatusCode writeRunFiles(const std::string& fileDir,
51 unsigned int runNumber) override;
52 virtual StatusCode writeEvent(std::ostream& outFile,
53 const std::string& /* entryTag */ ) override;
54
55 virtual StatusCode convertProperties();
56
57 private:
58
59 static const unsigned int m_nCols;
60
61 std::vector<std::string> m_includedCalos;
62 std::vector<std::string> m_includedSamplings;
63
65
67
68 std::vector<CaloCell_ID::SUBCALO> m_caloIndices;
69 std::vector<CaloSampling::CaloSample> m_caloSamplings;
70 std::string m_cellContainer;
71
73
75
76 std::unordered_set<EventIDBase::number_type> m_runNumbers;
77
79 , "CaloDetDescrManager"
80 , "CaloDetDescrManager"
81 , "SG Key for CaloDetDescrManager in the Condition Store" };
82
83};
84#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
virtual StatusCode writeEvent(std::ostream &outFile, const std::string &) 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 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)