ATLAS Offline Software
TrigL2BphysCnvTool.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):
13 #include "TrigL2BphysCnvTool.h"
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< ITrigL2BphysCnvTool >( this );
25  }
26 
27 
29  xAOD::TrigBphys* xaod ) const {
30 
31  xaod->setEta (aod->eta());
32  xaod->setPhi (aod->phi());
33  xaod->setMass (aod->mass());
34  xaod->setRoiId (aod->roiId());
37  xaod->setFitmass (aod->fitmass());
38  xaod->setFitchi2 (aod->fitchi2());
39  xaod->setFitndof (aod->fitndof());
40  xaod->setFitx (aod->fitx());
41  xaod->setFity (aod->fity());
42  xaod->setFitz (aod->fitz());
43 
44  //xaod->addTrack (aod->());
45  //xaod->pSecondDecay (aod->());
46 
47  ATH_MSG_VERBOSE("Orig vs xAOD: Eta: " << aod->eta() << " " << xaod->eta());
48  ATH_MSG_VERBOSE("Orig vs xAOD: phi: " << aod->phi() << " " << xaod->phi());
49  ATH_MSG_VERBOSE("Orig vs xAOD: mass: " << aod->mass() << " " << xaod->mass());
50  ATH_MSG_VERBOSE("Orig vs xAOD: roiId: " << aod->roiId() << " " << xaod->roiId());
51 
52  ATH_MSG_VERBOSE("Orig vs xAOD: : particleType: " << aod->particleType() << " " << xaod->particleType());
53  ATH_MSG_VERBOSE("Orig vs xAOD: : level: " << "L2" << " " << xaod->level());
54  ATH_MSG_VERBOSE("Orig vs xAOD: : fitmass: " << aod->fitmass() << " " << xaod->fitmass());
55  ATH_MSG_VERBOSE("Orig vs xAOD: : fitchi2: " << aod->fitchi2() << " " << xaod->fitchi2());
56  ATH_MSG_VERBOSE("Orig vs xAOD: : fitndf: " << aod->fitndof() << " " << xaod->fitndof());
57  ATH_MSG_VERBOSE("Orig vs xAOD: : fitx " << aod->fitx() << " " << xaod->fitx());
58  ATH_MSG_VERBOSE("Orig vs xAOD: : fity " << aod->fity() << " " << xaod->fity());
59  ATH_MSG_VERBOSE("Orig vs xAOD: : fitz " << aod->fitz() << " " << xaod->fitz());
60 
61 
62  ATH_MSG_DEBUG("No track or secondary decay implemented");
63 
64  // Return gracefully:
65  return StatusCode::SUCCESS;
66  }
67 
68 
69 } // xAODMaker
70 
TrigL2Bphys::fitndof
int fitndof() const
accessor method: ndof from vertex fit
Definition: TrigL2Bphys.h:80
Trk::L2
@ L2
Definition: AlignModuleList.h:32
xAOD::TrigBphys_v1::setFitchi2
void setFitchi2(float FitChi2)
set method: chi2 from vertex fit
xAOD::TrigBphys_v1::setPhi
void setPhi(float)
Set the azimuth angle of the object.
TrigL2Bphys::roiId
int roiId() const
accessor method: ID of L1 RoI
Definition: TrigL2Bphys.h:66
xAOD::TrigBphys_v1::setLevel
void setLevel(levelType type)
set method: level type
xAOD::TrigBphys_v1::level
levelType level() const
accessor method: level Type
TrigL2Bphys::eta
float eta() const
accessor method: eta
Definition: TrigL2Bphys.h:70
xAOD::TrigBphys_v1::setFitz
void setFitz(float FitZ)
set method: z position of vertex
xAOD::TrigBphys_v1::particleType
pType particleType() const
accessor method: particle Type
xAOD::TrigBphys_v1::fitx
float fitx() const
accessor method: x position of vertex
TrigL2Bphys::fitchi2
float fitchi2() const
accessor method: chi2 from vertex fit
Definition: TrigL2Bphys.h:78
TrigL2Bphys::particleType
pType particleType() const
accessor method: particle Type
Definition: TrigL2Bphys.h:68
TrigL2Bphys
Definition: TrigL2Bphys.h:43
xAOD::TrigBphys_v1::mass
float mass() const
accessor method: mass
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
xAODMaker
Definition: StoreGateSvc.h:72
xAOD::TrigBphys_v1::setEta
void setEta(float)
Set the pseudorapidity of the object.
xAOD::TrigBphys_v1::setFitndof
void setFitndof(int FitNdof)
set method: ndof from vertex fit
TrigL2Bphys::fitz
float fitz() const
accessor method: z position of vertex
Definition: TrigL2Bphys.h:86
xAOD::TrigBphys_v1::setRoiId
void setRoiId(uint32_t id)
set method: roiId
xAOD::TrigBphys_v1::setFitmass
void setFitmass(float FitMass)
set method: mass from vertex fit
xAOD::TrigBphys_v1::setFity
void setFity(float FitY)
set method: y position of vertex
TrigL2Bphys::fity
float fity() const
accessor method: y position of vertex
Definition: TrigL2Bphys.h:84
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
TrigBphys.h
TrigL2BphysCnvTool.h
xAOD::TrigBphys_v1::setMass
void setMass(float)
Set the mass of the object.
xAOD::TrigBphys_v1::roiId
uint32_t roiId() const
accessor method: ID of L1 RoI
test_pyathena.parent
parent
Definition: test_pyathena.py:15
xAOD::TrigBphys_v1::fitchi2
float fitchi2() const
accessor method: chi2 from vertex fit
TrigL2Bphys::fitx
float fitx() const
accessor method: x position of vertex
Definition: TrigL2Bphys.h:82
xAOD::TrigBphys_v1::fitmass
float fitmass() const
accessor method: mass from vertex fit
xAOD::TrigBphys_v1::fitz
float fitz() const
accessor method: z position of vertex
xAODMaker::TrigL2BphysCnvTool::convert
virtual StatusCode convert(const TrigL2Bphys *aod, xAOD::TrigBphys *xaod) const override
Function that fills an existing xAOD::TrigBphysContainer.
Definition: TrigL2BphysCnvTool.cxx:28
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
TrigL2Bphys::mass
float mass() const
accessor method: mass
Definition: TrigL2Bphys.h:74
xAOD::TrigBphys_v1::setParticleType
void setParticleType(pType type)
set method: particle type
xAOD::TrigBphys_v1::phi
float phi() const
accessor method: phi
TrigL2Bphys.h
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
TrigL2Bphys::fitmass
float fitmass() const
accessor method: mass from vertex fit
Definition: TrigL2Bphys.h:76
xAOD::TrigBphys_v1::fity
float fity() const
accessor method: y position of vertex
AthAlgTool
Definition: AthAlgTool.h:26
xAOD::TrigBphys_v1::eta
float eta() const
accessor method: eta
TrigBphysContainer.h
xAODMaker::TrigL2BphysCnvTool::TrigL2BphysCnvTool
TrigL2BphysCnvTool(const std::string &type, const std::string &name, const IInterface *parent)
Regular AlgTool constructor.
Definition: TrigL2BphysCnvTool.cxx:18
TrigL2Bphys::phi
float phi() const
accessor method: phi
Definition: TrigL2Bphys.h:72
xAOD::TrigBphys_v1::fitndof
int fitndof() const
accessor method: ndof from vertex fit
xAOD::TrigBphys_v1
Class describing a Bphysics online composite object.
Definition: TrigBphys_v1.h:44
xAOD::TrigBphys_v1::pType
pType
enum for different particle types
Definition: TrigBphys_v1.h:48
xAOD::TrigBphys_v1::setFitx
void setFitx(float FitX)
set method: x position of vertex