ATLAS Offline Software
MuonCnvAlg.h
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // $Id: MuonCnvAlg.h 297747 2013-10-28 15:14:24Z krasznaa $
8 #ifndef XAODCREATORALGS_MUONCREATOR_H
9 #define XAODCREATORALGS_MUONCREATOR_H
10 
11 // System include(s):
12 #include <string>
13 
14 // Athena/Gaudi include(s):
16 #include "GaudiKernel/ToolHandle.h"
17 // xAOD include
19 #include "xAODMuon/MuonContainer.h"
23 
24 namespace Analysis {
25  class Muon;
26 }
27 
28 
29 namespace xAODMaker {
30 
41  class MuonCnvAlg : public AthAlgorithm {
42 
43  public:
45  MuonCnvAlg( const std::string& name, ISvcLocator* svcLoc );
46 
48  virtual StatusCode initialize();
50  virtual StatusCode execute();
51 
52  private:
54  std::string m_aodContainerName;
56  std::string m_xaodContainerName;
57 
58  static void setParameters(const Analysis::Muon& aodmuon, xAOD::Muon& xaodmuon);
59  static void checkAndSetParameter(MuonParameters::ParamDef aodParameter,xAOD::Muon::ParamDef xaodParameter, const Analysis::Muon& aodmuon, xAOD::Muon& xaodmuon);
60  static void setIsolations(const Analysis::Muon& aodmuon, xAOD::Muon& xaodmuon);
61  static void checkAndSetIsolation(MuonParameters::ParamDef aodParameter,xAOD::Iso::IsolationType xaodParameter, const Analysis::Muon& aodmuon, xAOD::Muon& xaodmuon);
62  void setLinks(const Analysis::Muon& aodmuon, xAOD::Muon& xaodmuon) const;
63  void setMuonHitContent(const Analysis::Muon& aodmuon, xAOD::Muon& xaodmuon);
65  xAOD::Muon::Author convertAuthor(MuonParameters::Author aodAuthor); // conversion of author (release 17 to release 19)
66 
67  std::string m_inDetTrackParticles;
68  std::string m_saTrackParticles ;
69  std::string m_cbTrackParticles ;
70  std::string m_mgTrackParticles ;
71  // bool m_doConversionFromRel17; un-initilized variable that is actually never used, commenting out - coverity defect 28732
72 
73  ToolHandle<xAOD::IMuonDressingTool> m_muonDressingTool;
74  }; // class MuonCnvAlg
75 
76 } // namespace xAODMaker
77 
78 #endif // XAODCREATORALGS_MUONCREATOR_H
xAODMaker::MuonCnvAlg::m_saTrackParticles
std::string m_saTrackParticles
Location/Key for MS SA (extrap to beamline) xAOD::TrackParticles.
Definition: MuonCnvAlg.h:68
xAODMaker::MuonCnvAlg::m_inDetTrackParticles
std::string m_inDetTrackParticles
Location/Key for xAOD::TrackParticles from ID.
Definition: MuonCnvAlg.h:67
IsolationType.h
xAODMaker::MuonCnvAlg::setMuonHitContent
void setMuonHitContent(const Analysis::Muon &aodmuon, xAOD::Muon &xaodmuon)
Definition: MuonCnvAlg.cxx:143
egammaParameters::ParamDef
ParamDef
Definition: egammaParamDefs.h:99
xAODMaker::MuonCnvAlg::MuonCnvAlg
MuonCnvAlg(const std::string &name, ISvcLocator *svcLoc)
Regular algorithm constructor.
Definition: MuonCnvAlg.cxx:19
xAODMaker::MuonCnvAlg::checkAndSetIsolation
static void checkAndSetIsolation(MuonParameters::ParamDef aodParameter, xAOD::Iso::IsolationType xaodParameter, const Analysis::Muon &aodmuon, xAOD::Muon &xaodmuon)
Definition: MuonCnvAlg.cxx:178
xAODMaker::MuonCnvAlg::execute
virtual StatusCode execute()
Function executing the algorithm.
Definition: MuonCnvAlg.cxx:41
xAODMaker
Definition: StoreGateSvc.h:72
IMuonDressingTool.h
Muon
This class provides conversion from CSC RDO data to CSC Digits.
Definition: TrackSystemController.h:49
xAOD::Muon_v1
Class describing a Muon.
Definition: Muon_v1.h:38
xAODMaker::MuonCnvAlg::setLinks
void setLinks(const Analysis::Muon &aodmuon, xAOD::Muon &xaodmuon) const
Definition: MuonCnvAlg.cxx:186
xAODMaker::MuonCnvAlg
Algorithm creating xAOD::Muons from Muons.
Definition: MuonCnvAlg.h:41
AthAlgorithm.h
xAODMaker::MuonCnvAlg::checkAndSetParameter
static void checkAndSetParameter(MuonParameters::ParamDef aodParameter, xAOD::Muon::ParamDef xaodParameter, const Analysis::Muon &aodmuon, xAOD::Muon &xaodmuon)
Definition: MuonCnvAlg.cxx:151
MuonParameters::Author
Author
do not change the order of these enums.
Definition: MuonParamDefs.h:39
xAODMaker::MuonCnvAlg::getNewLink
ElementLink< xAOD::TrackParticleContainer > getNewLink(const ElementLink< Rec::TrackParticleContainer > &oldLink, const std::string &name) const
Definition: MuonCnvAlg.cxx:211
xAODMaker::MuonCnvAlg::m_mgTrackParticles
std::string m_mgTrackParticles
Location/Key for MuGirl combined fit xAOD::TrackParticles; needed in conversion from release 17.
Definition: MuonCnvAlg.h:70
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
xAODMaker::MuonCnvAlg::initialize
virtual StatusCode initialize()
Function initialising the algorithm.
Definition: MuonCnvAlg.cxx:32
xAOD::Iso::IsolationType
IsolationType
Overall enumeration for isolation types in xAOD files.
Definition: IsolationType.h:26
Analysis::Muon
The ATLAS Muon object - see doxygen, physics workbookd and the Muon Combined Performance WG's pages f...
Definition: Reconstruction/MuonIdentification/muonEvent/muonEvent/Muon.h:48
MuonParameters::ParamDef
ParamDef
Enum for parameter indexes.
Definition: MuonParamDefs.h:111
AthAlgorithm
Definition: AthAlgorithm.h:47
xAODMaker::MuonCnvAlg::m_aodContainerName
std::string m_aodContainerName
The key of the input CaloClusterContainer.
Definition: MuonCnvAlg.h:54
Analysis
The namespace of all packages in PhysicsAnalysis/JetTagging.
Definition: BTaggingCnvAlg.h:20
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
xAODMaker::MuonCnvAlg::m_cbTrackParticles
std::string m_cbTrackParticles
Location/Key for combined fit xAOD::TrackParticles.
Definition: MuonCnvAlg.h:69
MuonContainer.h
xAODMaker::MuonCnvAlg::setIsolations
static void setIsolations(const Analysis::Muon &aodmuon, xAOD::Muon &xaodmuon)
Definition: MuonCnvAlg.cxx:159
MuonParamDefs.h
xAODMaker::MuonCnvAlg::setParameters
static void setParameters(const Analysis::Muon &aodmuon, xAOD::Muon &xaodmuon)
Definition: MuonCnvAlg.cxx:127
ParticleJetParams::Author
Author
Definition: ParticleJetParamDefs.h:33
xAODMaker::MuonCnvAlg::m_xaodContainerName
std::string m_xaodContainerName
The key for the output xAOD::CaloClusterContainer.
Definition: MuonCnvAlg.h:56
xAODMaker::MuonCnvAlg::convertAuthor
xAOD::Muon::Author convertAuthor(MuonParameters::Author aodAuthor)
xAODMaker::MuonCnvAlg::m_muonDressingTool
ToolHandle< xAOD::IMuonDressingTool > m_muonDressingTool
Definition: MuonCnvAlg.h:73
TrackParticleContainer.h