ATLAS Offline Software
Loading...
Searching...
No Matches
IdToFixedIdTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
5/***************************************************************************
6 * Tool responsible for wrapping ATHENA identifier to Standalone Muon Fixed Identifier
7 * --------------------------------------
8 *
9 * Author : Zdenko van Kesteren
10 * Creation Date: 20 May 2005
11 * Last Update : 20 May 2005
12 ***************************************************************************/
13
14#ifndef MUONCALIB_IDTOFIXEDID_H
15#define MUONCALIB_IDTOFIXEDID_H
16// std
17#include <string>
18
19// other packages
21#include "GaudiKernel/ServiceHandle.h"
23
24// this package
26
27namespace MuonCalib {
28
39
41 public:
42 IdToFixedIdTool(const std::string& type, const std::string& name,
43 const IInterface* parent);
44 virtual ~IdToFixedIdTool() = default;
45
46 virtual StatusCode initialize() override;
47
48 void print(const Identifier& id) const override;
50 void print(const MuonFixedId& fid) const override;
51 void print(const MuonFixedLongId& fid) const override;
52
53 Identifier fixedIdToId(const MuonFixedId& fid) const override;
54 MuonFixedId idToFixedId(const Identifier& id) const override;
55 Identifier fixedLongIdToId(const MuonFixedLongId& fid) const override;
56 MuonFixedLongId idToFixedLongId(const Identifier& id) const override;
57 Identifier regionKeyToId(std::string region) const override;
58
59 private:
60 ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc{this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
61
63 };
64} // namespace MuonCalib
65
66#endif // MUONCALIB_IDTOFIXEDID_H
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Interface for tools performing the conversion between Athena Identifiers and Muon Calibration Standal...
IdToFixedIdTool(const std::string &type, const std::string &name, const IInterface *parent)
AlgTool constructor.
Identifier fixedLongIdToId(const MuonFixedLongId &fid) const override
Convert MuonFixedLongId to ATHENA Identifier.
MuonFixedLongId idToFixedLongId(const Identifier &id) const override
Convert ATHENA Identifier to MuonFixedLongId.
virtual StatusCode initialize() override
IdToFixedIdTool initialization: retrieve all the IdHelpers needed to do strap the ATHENA Identifier.
MuonFixedId idToFixedId(const Identifier &id) const override
Convert ATHENA Identifier to MuonFixedId.
Identifier regionKeyToId(std::string region) const override
Returns an ATHENA Identifier for a given Region key.
virtual ~IdToFixedIdTool()=default
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Identifier fixedIdToId(const MuonFixedId &fid) const override
Convert MuonFixedId to ATHENA Identifier.
void print(const Identifier &id) const override
print method to output an ATHENA Identifier, warning the user when the conversion and reconversion yi...
int m_print_level
Sets printlevel of output.
Implements fixed identifiers not dependent upon Athena Identifier for internal use in the calibration...
Definition MuonFixedId.h:50
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.