ATLAS Offline Software
Loading...
Searching...
No Matches
CaloCellDumper.h
Go to the documentation of this file.
1//Dear emacs, this is -*-c++-*-
2
3/*
4 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
5*/
6
10
11#include <fstream>
12
13
14
16
17 public:
18 CaloCellDumper(const std::string& name, ISvcLocator * pSvcLocator);
19
20 virtual StatusCode initialize() override;
21 virtual StatusCode execute() override;
22
23 virtual StatusCode finalize() override;
24
25private:
26 std::ofstream m_outfile;
27 std::ifstream m_reffile;
28 SG::ReadHandleKey<CaloCellContainer> m_key{this,"InputContainer","AllCalo","Input CaloCellContainer key"};
29 Gaudi::Property<std::string> m_fileName{this,"FileName","CaloCells.txt","Name of the output text file"};
30 Gaudi::Property<std::string> m_refName{this,"RefName","","Name of reference file to which cells are to be compared."};
31 Gaudi::Property<float> m_eCut{this,"EnergyCut",std::numeric_limits<float>::lowest(),"Energy cut for cell dumping"};
32 Gaudi::Property<bool> m_compact{this,"Compact",true,"compact or detailed cell identifer"};
33
34};
35
Property holding a SG store/key/clid from which a ReadHandle is made.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Property< bool > m_compact
Gaudi::Property< float > m_eCut
std::ifstream m_reffile
virtual StatusCode execute() override
Gaudi::Property< std::string > m_fileName
CaloCellDumper(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode initialize() override
virtual StatusCode finalize() override
SG::ReadHandleKey< CaloCellContainer > m_key
Gaudi::Property< std::string > m_refName
std::ofstream m_outfile
Property holding a SG store/key/clid from which a ReadHandle is made.