ATLAS Offline Software
Loading...
Searching...
No Matches
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
16namespace 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
#define ATH_MSG_VERBOSE(x)
#define ATH_MSG_DEBUG(x)
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
double charge(void) const
double pt(void) const
transverse momentum
double sigma_pt(void) const
double eta(void) const
pseudo rapidity
double phi(void) const
phi in [-pi,pi[
int comb_strategy(void) const
CombinedMuonFeatureCnvTool(const std::string &type, const std::string &name, const IInterface *parent)
Regular AlgTool constructor.
virtual StatusCode convert(const CombinedMuonFeature *aod, xAOD::L2CombinedMuon *xaod) const override
Function that fills an existing xAOD::L2CombinedMuon.
void setPt(float pt)
Set the transverse momentum ( ) of the muon.
int matchFlag() const
get algorithm match flag
virtual double eta() const
The pseudorapidity ( ) of the particle.
void setSigmaPt(float value)
set sigma combined Pt
void setStrategy(int value)
set algorithm strategy flag
int strategy() const
get algorithm strategy flag
virtual double phi() const
The azimuthal angle ( ) of the particle.
void setErrorFlag(int value)
set algorithm error flag
float charge() const
get seeding muon charge
void setMatchFlag(int value)
set algorithm match flag
float sigmaPt() const
get sigma combined Pt
virtual double pt() const
The transverse momentum ( ) of the particle.
void setPhi(float phi)
Set the azimuthal angle ( ) of the muon.
void setEta(float eta)
Set the pseudorapidity ( ) of the muon.
void setCharge(float value)
set seeding muon charge
int errorFlag() const
get algorithm error flag
L2CombinedMuon_v1 L2CombinedMuon
Define the latest version of the muon CB class.