ATLAS Offline Software
CombinedMuonFeatureCnvTool.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // $Id:$
6 // EDM include(s):
9 
11 
12 // Local include(s):
14 
15 
16 namespace xAODMaker {
17 
19  const std::string& name,
20  const IInterface* parent )
21  : AthAlgTool( type, name, parent ) {
22 
23  // Declare the interface(s) provided by the tool:
24  declareInterface< ICombinedMuonFeatureCnvTool >( this );
25  }
26 
28  xAOD::L2CombinedMuon* xaod ) const {
29 
30  xaod->setPt (aod->pt());
31  xaod->setEta (aod->eta());
32  xaod->setPhi (aod->phi());
33  xaod->setCharge (aod->charge());
34  xaod->setStrategy (aod->comb_strategy());
35  xaod->setErrorFlag (aod->comb_errorFlag());
36  xaod->setMatchFlag (aod->comb_matchFlag());
37  xaod->setSigmaPt (aod->sigma_pt());
38 
39  ATH_MSG_VERBOSE("Orig vs xAOD: Pt: " << aod->pt() << " " << xaod->pt());
40  ATH_MSG_VERBOSE("Orig vs xAOD: Eta: " << aod->eta() << " " << xaod->eta());
41  ATH_MSG_VERBOSE("Orig vs xAOD: phi: " << aod->phi() << " " << xaod->phi());
42  ATH_MSG_VERBOSE("Orig vs xAOD: charge: " << aod->charge() << " " << xaod->charge());
43  ATH_MSG_VERBOSE("Orig vs xAOD: strategy: " << aod->comb_strategy() << " " << xaod->strategy());
44  ATH_MSG_VERBOSE("Orig vs xAOD: flag: " << aod->comb_errorFlag() << " " << xaod->errorFlag());
45  ATH_MSG_VERBOSE("Orig vs xAOD: match: " << aod->comb_matchFlag() << " " << xaod->matchFlag());
46  ATH_MSG_VERBOSE("Orig vs xAOD: sigmaPt: " << aod->sigma_pt() << " " << xaod->sigmaPt());
47 
48  ATH_MSG_DEBUG("Note: elinks to muon and ID track not implemented yet");
49 
50  // Return gracefully:
51  return StatusCode::SUCCESS;
52  }
53 
54 
55 } // xAODMaker
56 
xAOD::L2CombinedMuon_v1::phi
virtual double phi() const
The azimuthal angle ( ) of the particle.
CombinedMuonFeature::comb_strategy
int comb_strategy(void) const
Definition: CombinedMuonFeature.cxx:97
CombinedMuonFeature::charge
double charge(void) const
Definition: CombinedMuonFeature.h:57
xAOD::L2CombinedMuon_v1::setStrategy
void setStrategy(int value)
set algorithm strategy flag
xAOD::L2CombinedMuon_v1::strategy
int strategy() const
get algorithm strategy flag
xAOD::L2CombinedMuon_v1::setPhi
void setPhi(float phi)
Set the azimuthal angle ( ) of the muon.
Definition: L2CombinedMuon_v1.cxx:89
CombinedMuonFeature::eta
double eta(void) const
pseudo rapidity
Definition: CombinedMuonFeature.cxx:163
L2CombinedMuon.h
L2CombinedMuonContainer.h
xAOD::L2CombinedMuon_v1::charge
float charge() const
get seeding muon charge
CombinedMuonFeature::pt
double pt(void) const
transverse momentum
Definition: CombinedMuonFeature.h:56
CombinedMuonFeature::sigma_pt
double sigma_pt(void) const
Definition: CombinedMuonFeature.cxx:84
xAOD::L2CombinedMuon_v1::setCharge
void setCharge(float value)
set seeding muon charge
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
xAODMaker
Definition: StoreGateSvc.h:72
xAODMaker::CombinedMuonFeatureCnvTool::CombinedMuonFeatureCnvTool
CombinedMuonFeatureCnvTool(const std::string &type, const std::string &name, const IInterface *parent)
Regular AlgTool constructor.
Definition: CombinedMuonFeatureCnvTool.cxx:18
xAOD::L2CombinedMuon_v1::errorFlag
int errorFlag() const
get algorithm error flag
xAOD::L2CombinedMuon_v1::setEta
void setEta(float eta)
Set the pseudorapidity ( ) of the muon.
Definition: L2CombinedMuon_v1.cxx:82
CombinedMuonFeature.h
CombinedMuonFeatureCnvTool.h
xAOD::L2CombinedMuon_v1
Class describing combined muon reconstructed in the LVL2 trigger.
Definition: L2CombinedMuon_v1.h:41
xAOD::L2CombinedMuon_v1::matchFlag
int matchFlag() const
get algorithm match flag
xAOD::L2CombinedMuon_v1::setMatchFlag
void setMatchFlag(int value)
set algorithm match flag
xAOD::L2CombinedMuon_v1::eta
virtual double eta() const
The pseudorapidity ( ) of the particle.
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
xAOD::L2CombinedMuon_v1::sigmaPt
float sigmaPt() const
get sigma combined Pt
xAOD::L2CombinedMuon_v1::pt
virtual double pt() const
The transverse momentum ( ) of the particle.
test_pyathena.parent
parent
Definition: test_pyathena.py:15
CombinedMuonFeature
Definition: CombinedMuonFeature.h:30
xAOD::L2CombinedMuon_v1::setSigmaPt
void setSigmaPt(float value)
set sigma combined Pt
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
xAOD::L2CombinedMuon_v1::setPt
void setPt(float pt)
Set the transverse momentum ( ) of the muon.
xAODMaker::CombinedMuonFeatureCnvTool::convert
virtual StatusCode convert(const CombinedMuonFeature *aod, xAOD::L2CombinedMuon *xaod) const override
Function that fills an existing xAOD::L2CombinedMuon.
Definition: CombinedMuonFeatureCnvTool.cxx:27
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
CombinedMuonFeature::comb_errorFlag
int comb_errorFlag(void) const
Definition: CombinedMuonFeature.cxx:108
CombinedMuonFeature::comb_matchFlag
int comb_matchFlag(void) const
Definition: CombinedMuonFeature.cxx:114
AthAlgTool
Definition: AthAlgTool.h:26
xAOD::L2CombinedMuon_v1::setErrorFlag
void setErrorFlag(int value)
set algorithm error flag
CombinedMuonFeature::phi
double phi(void) const
phi in [-pi,pi[
Definition: CombinedMuonFeature.cxx:167