ATLAS Offline Software
IMuonTruthSummaryTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MUON_IMUONTRUTHSUMMARYTOOL_H
6 #define MUON_IMUONTRUTHSUMMARYTOOL_H
7 
8 #include <string>
9 
10 #include "GaudiKernel/IAlgTool.h"
11 #include "Identifier/Identifier.h"
13 #include "TrkTrack/Track.h"
14 
15 namespace Muon {
16 
18  class IMuonTruthSummaryTool : virtual public IAlgTool {
19  public:
20  public:
22  static const InterfaceID& interfaceID() {
23  static const InterfaceID IID_IMuonTruthSummaryTool("Muon::IMuonTruthSummaryTool", 1, 0);
24  return IID_IMuonTruthSummaryTool;
25  }
26 
28  virtual void clear() = 0;
29 
31  virtual void init() const = 0;
32 
34  virtual int getBarcode(const Identifier& id) const = 0;
35 
37  virtual int getPdgId(int barcode) const = 0;
38 
40  virtual void add(const Identifier& id, int level) const = 0;
41 
43  virtual void add(const MuonSegment& seg, int level) const = 0;
44 
46  virtual void add(const Trk::Track& track, int level) const = 0;
47 
49  virtual std::string printSummary() = 0;
50 
51  virtual ~IMuonTruthSummaryTool() = default;
52  };
53 
54 } // namespace Muon
55 
56 #endif
Muon::IMuonTruthSummaryTool::interfaceID
static const InterfaceID & interfaceID()
IAlgTool interface.
Definition: IMuonTruthSummaryTool.h:22
Trk::Track
The ATLAS Track class.
Definition: Tracking/TrkEvent/TrkTrack/TrkTrack/Track.h:73
Muon::IMuonTruthSummaryTool::add
virtual void add(const Trk::Track &track, int level) const =0
add track
Muon
This class provides conversion from CSC RDO data to CSC Digits.
Definition: TrackSystemController.h:45
python.iconfTool.models.loaders.level
level
Definition: loaders.py:20
Track.h
Muon::IMuonTruthSummaryTool::clear
virtual void clear()=0
clear tool
Muon::IMuonTruthSummaryTool::getBarcode
virtual int getBarcode(const Identifier &id) const =0
get the associated barcode for the identifier, return -1 if the channel was not hit by a muon
Muon::IMuonTruthSummaryTool::~IMuonTruthSummaryTool
virtual ~IMuonTruthSummaryTool()=default
HepMC::barcode
int barcode(const T *p)
Definition: Barcode.h:16
Muon::IMuonTruthSummaryTool::init
virtual void init() const =0
init truth
Muon::IMuonTruthSummaryTool::getPdgId
virtual int getPdgId(int barcode) const =0
get the associated pdgId for a given barcode
Muon::IMuonTruthSummaryTool::printSummary
virtual std::string printSummary()=0
print summary
MuonSegment.h
Muon::IMuonTruthSummaryTool
Interface for tools calculating hit count summaries for track.
Definition: IMuonTruthSummaryTool.h:18
xAOD::track
@ track
Definition: TrackingPrimitives.h:512
Muon::MuonSegment
Definition: MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonSegment/MuonSegment/MuonSegment.h:45
Muon::IMuonTruthSummaryTool::add
virtual void add(const Identifier &id, int level) const =0
add identifier
Muon::IMuonTruthSummaryTool::add
virtual void add(const MuonSegment &seg, int level) const =0
add segment
Identifier
Definition: IdentifierFieldParser.cxx:14