ATLAS Offline Software
TrigEFBphysCnvTool.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 "TrigEFBphysCnvTool.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< ITrigEFBphysCnvTool >( 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 
48  ATH_MSG_DEBUG("No track or secondary decay implemented");
49 
50 
51 
52  ATH_MSG_VERBOSE("Orig vs xAOD: Eta: " << aod->eta() << " " << xaod->eta());
53  ATH_MSG_VERBOSE("Orig vs xAOD: phi: " << aod->phi() << " " << xaod->phi());
54  ATH_MSG_VERBOSE("Orig vs xAOD: mass: " << aod->mass() << " " << xaod->mass());
55  ATH_MSG_VERBOSE("Orig vs xAOD: roiId: " << aod->roiId() << " " << xaod->roiId());
56 
57  ATH_MSG_VERBOSE("Orig vs xAOD: : particleType: " << aod->particleType() << " " << xaod->particleType());
58  ATH_MSG_VERBOSE("Orig vs xAOD: : level: " << "EF" << " " << xaod->level());
59  ATH_MSG_VERBOSE("Orig vs xAOD: : fitmass: " << aod->fitmass() << " " << xaod->fitmass());
60  ATH_MSG_VERBOSE("Orig vs xAOD: : fitchi2: " << aod->fitchi2() << " " << xaod->fitchi2());
61  ATH_MSG_VERBOSE("Orig vs xAOD: : fitndf: " << aod->fitndof() << " " << xaod->fitndof());
62  ATH_MSG_VERBOSE("Orig vs xAOD: : fitx " << aod->fitx() << " " << xaod->fitx());
63  ATH_MSG_VERBOSE("Orig vs xAOD: : fity " << aod->fity() << " " << xaod->fity());
64  ATH_MSG_VERBOSE("Orig vs xAOD: : fitz " << aod->fitz() << " " << xaod->fitz());
65 
66  // Return gracefully:
67  return StatusCode::SUCCESS;
68  }
69 
70 
71 } // xAODMaker
72 
TrigEFBphys::fity
float fity() const
accessor method: y position of vertex
Definition: TrigEFBphys.h:81
TrigEFBphys::phi
float phi() const
accessor method: phi
Definition: TrigEFBphys.h:69
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.
TrigEFBphys::fitmass
float fitmass() const
accessor method: mass from vertex fit
Definition: TrigEFBphys.h:73
TrigEFBphys
Definition: TrigEFBphys.h:42
xAOD::TrigBphys_v1::setLevel
void setLevel(levelType type)
set method: level type
xAOD::TrigBphys_v1::level
levelType level() const
accessor method: level Type
xAOD::TrigBphys_v1::setFitz
void setFitz(float FitZ)
set method: z position of vertex
TrigEFBphys::fitz
float fitz() const
accessor method: z position of vertex
Definition: TrigEFBphys.h:83
TrigEFBphys::eta
float eta() const
accessor method: eta
Definition: TrigEFBphys.h:67
xAOD::TrigBphys_v1::particleType
pType particleType() const
accessor method: particle Type
xAOD::TrigBphys_v1::fitx
float fitx() const
accessor method: x position of vertex
xAODMaker::TrigEFBphysCnvTool::convert
virtual StatusCode convert(const TrigEFBphys *aod, xAOD::TrigBphys *xaod) const override
Function that fills an existing xAOD::TrigBphysContainer.
Definition: TrigEFBphysCnvTool.cxx:28
xAOD::TrigBphys_v1::mass
float mass() const
accessor method: mass
TRT_PAI_gasdata::EF
const float EF[NF]
Energy levels for Fluor.
Definition: TRT_PAI_gasdata.h:271
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
xAODMaker
Definition: StoreGateSvc.h:72
TrigEFBphys::fitchi2
float fitchi2() const
accessor method: chi2 from vertex fit
Definition: TrigEFBphys.h:75
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
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
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
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
TrigEFBphys::mass
float mass() const
accessor method: mass
Definition: TrigEFBphys.h:71
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
TrigEFBphysCnvTool.h
TrigEFBphys::fitndof
int fitndof() const
accessor method: ndof from vertex fit
Definition: TrigEFBphys.h:77
TrigEFBphys.h
xAODMaker::TrigEFBphysCnvTool::TrigEFBphysCnvTool
TrigEFBphysCnvTool(const std::string &type, const std::string &name, const IInterface *parent)
Regular AlgTool constructor.
Definition: TrigEFBphysCnvTool.cxx:18
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
TrigEFBphys::roiId
int roiId() const
accessor method: ID of L1 RoI
Definition: TrigEFBphys.h:63
xAOD::TrigBphys_v1::setParticleType
void setParticleType(pType type)
set method: particle type
xAOD::TrigBphys_v1::phi
float phi() const
accessor method: phi
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
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
TrigEFBphys::particleType
pType particleType() const
accessor method: particle Type
Definition: TrigEFBphys.h:65
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
TrigEFBphys::fitx
float fitx() const
accessor method: x position of vertex
Definition: TrigEFBphys.h:79
xAOD::TrigBphys_v1::setFitx
void setFitx(float FitX)
set method: x position of vertex