ATLAS Offline Software
Loading...
Searching...
No Matches
MuonPrintingTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef REC_MUONPRINTINGTOOL_H
6#define REC_MUONPRINTINGTOOL_H
7
8// Include files
9#include <fstream>
10#include <string>
11#include <vector>
12
14#include "GaudiKernel/ToolHandle.h"
17#include "xAODMuon/Muon.h"
20
21// namespace Analysis {class Muon;}
22
23namespace Muon {
25}
26
27namespace Rec {
28
34 class MuonPrintingTool : virtual public IMuonPrintingTool, public AthAlgTool {
35 public:
37 MuonPrintingTool(const std::string& type, const std::string& name, const IInterface* parent);
38
40 virtual ~MuonPrintingTool();
41
43 virtual StatusCode initialize();
44 virtual StatusCode finalize();
45
47 std::string print(const xAOD::Muon& muon) const;
48
50 std::string print(const xAOD::MuonContainer& muons) const;
51
52 private:
53 std::string print(const xAOD::TrackParticle& tp) const;
54
55 PublicToolHandle<Muon::MuonEDMPrinterTool> m_edmPrinter{this, "MuonStationPrinter",""};
56 };
57
58} // namespace Rec
59#endif // REC_MUONPRINTINGTOOL_H
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Helper tool to print EDM objects to string in a fix format.
interface for tool that creates a dump output of different detail to strings or files
virtual ~MuonPrintingTool()
Standard destructor.
PublicToolHandle< Muon::MuonEDMPrinterTool > m_edmPrinter
std::string print(const xAOD::TrackParticle &tp) const
print muon object to a string
virtual StatusCode finalize()
end of the job - finalize
std::string print(const xAOD::Muon &muon) const
print muon object to a string
virtual StatusCode initialize()
Overriding initialize and finalize.
MuonPrintingTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Constructor.
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Gaudi Tools.
TrackParticle_v1 TrackParticle
Reference the current persistent version:
Muon_v1 Muon
Reference the current persistent version:
MuonContainer_v1 MuonContainer
Definition of the current "Muon container version".