ATLAS Offline Software
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
7 // \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 
24 class 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
TBXMLCaloCellWriterTool::convertProperties
virtual StatusCode convertProperties()
Definition: TBXMLCaloCellWriterTool.cxx:437
TBXMLCaloCellWriterTool::writeRunFiles
virtual StatusCode writeRunFiles(const std::string &fileDir, unsigned int runNumber) override
Definition: TBXMLCaloCellWriterTool.cxx:294
TBXMLCaloCellWriterTool::m_etaMin
double m_etaMin
Definition: TBXMLCaloCellWriterTool.h:64
TBXMLCaloCellWriterTool::m_caloSamplings
std::vector< CaloSampling::CaloSample > m_caloSamplings
Definition: TBXMLCaloCellWriterTool.h:69
TBXMLWriter
Definition: TBXMLWriter.h:24
TBXMLCaloCellWriterTool::writeEvent
virtual StatusCode writeEvent(std::ostream &outFile, const std::string &) override
Definition: TBXMLCaloCellWriterTool.cxx:82
CaloDetDescrManager.h
Definition of CaloDetDescrManager.
CaloCell_ID.h
TBXMLCaloCellWriterTool::m_includedCalos
std::vector< std::string > m_includedCalos
Definition: TBXMLCaloCellWriterTool.h:61
TBXMLCaloCellWriterTool::~TBXMLCaloCellWriterTool
~TBXMLCaloCellWriterTool()
Definition: TBXMLCaloCellWriterTool.cxx:67
TBXMLWriterToolBase.h
TBXMLCaloCellWriterTool::m_phiMin
double m_phiMin
Definition: TBXMLCaloCellWriterTool.h:64
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TBXMLCaloCellWriterTool::TBXMLCaloCellWriterTool
TBXMLCaloCellWriterTool(const std::string &type, const std::string &name, const IInterface *parent)
tool constructor
Definition: TBXMLCaloCellWriterTool.cxx:45
test_pyathena.parent
parent
Definition: test_pyathena.py:15
CaloCell_ID
Helper class for offline cell identifiers.
Definition: CaloCell_ID.h:34
TBXMLCaloCellWriterTool
Definition: TBXMLCaloCellWriterTool.h:27
TBXMLCaloCellWriterTool::m_firstEvent
bool m_firstEvent
Definition: TBXMLCaloCellWriterTool.h:66
ReadCondHandleKey.h
DQPostProcessTest.outFile
outFile
Comment Out Those You do not wish to run.
Definition: DQPostProcessTest.py:37
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
TBXMLCaloCellWriterTool::m_cellContainer
std::string m_cellContainer
Definition: TBXMLCaloCellWriterTool.h:70
TBXMLCaloCellWriterTool::m_caloIndices
std::vector< CaloCell_ID::SUBCALO > m_caloIndices
Definition: TBXMLCaloCellWriterTool.h:68
TBXMLCaloCellWriterTool::m_etaMax
double m_etaMax
Definition: TBXMLCaloCellWriterTool.h:64
TBXMLCaloCellWriterTool::m_runNumbers
std::unordered_set< EventIDBase::number_type > m_runNumbers
Definition: TBXMLCaloCellWriterTool.h:76
SG::ReadCondHandleKey< CaloDetDescrManager >
TBXMLCaloCellWriterTool::m_nCols
static const unsigned int m_nCols
Definition: TBXMLCaloCellWriterTool.h:59
DeMoAtlasDataLoss.runNumber
string runNumber
Definition: DeMoAtlasDataLoss.py:64
TBXMLCaloCellWriterTool::m_includedSamplings
std::vector< std::string > m_includedSamplings
Definition: TBXMLCaloCellWriterTool.h:62
TBXMLCaloCellWriterTool::m_idHelper
const CaloCell_ID * m_idHelper
Definition: TBXMLCaloCellWriterTool.h:72
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
TBXMLWriterToolBase
base class for XML writer tools for 2004 event display
Definition: TBXMLWriterToolBase.h:17
TBXMLCaloCellWriterTool::m_mother
const TBXMLWriter * m_mother
Definition: TBXMLCaloCellWriterTool.h:74
TBXMLCaloCellWriterTool::m_caloMgrKey
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
Definition: TBXMLCaloCellWriterTool.h:78
TBXMLCaloCellWriterTool::initialize
virtual StatusCode initialize() override
Definition: TBXMLCaloCellWriterTool.cxx:70
TBXMLCaloCellWriterTool::m_phiMax
double m_phiMax
Definition: TBXMLCaloCellWriterTool.h:64