ATLAS Offline Software
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 
25 private:
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 
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
CaloCellDumper::m_refName
Gaudi::Property< std::string > m_refName
Definition: CaloCellDumper.h:30
CaloCellDumper::CaloCellDumper
CaloCellDumper(const std::string &name, ISvcLocator *pSvcLocator)
Definition: CaloCellDumper.cxx:23
CaloCellDumper::m_reffile
std::ifstream m_reffile
Definition: CaloCellDumper.h:27
CaloCellDumper::m_key
SG::ReadHandleKey< CaloCellContainer > m_key
Definition: CaloCellDumper.h:28
CaloCellDumper::m_eCut
Gaudi::Property< float > m_eCut
Definition: CaloCellDumper.h:31
SG::ReadHandleKey< CaloCellContainer >
CaloCellDumper::m_compact
Gaudi::Property< bool > m_compact
Definition: CaloCellDumper.h:32
AthAlgorithm.h
CaloCellDumper::execute
virtual StatusCode execute() override
Definition: CaloCellDumper.cxx:62
CaloCellDumper::finalize
virtual StatusCode finalize() override
Definition: CaloCellDumper.cxx:52
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgorithm
Definition: AthAlgorithm.h:47
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
CaloCellContainer.h
CaloCellDumper
Definition: CaloCellDumper.h:15
CaloCellDumper::m_outfile
std::ofstream m_outfile
Definition: CaloCellDumper.h:26
CaloCellDumper::m_fileName
Gaudi::Property< std::string > m_fileName
Definition: CaloCellDumper.h:29
CaloCellDumper::initialize
virtual StatusCode initialize() override
Definition: CaloCellDumper.cxx:27