ATLAS Offline Software
Loading...
Searching...
No Matches
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
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< 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
#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:
float phi() const
accessor method: phi
Definition TrigEFBphys.h:69
float fitchi2() const
accessor method: chi2 from vertex fit
Definition TrigEFBphys.h:75
float fitmass() const
accessor method: mass from vertex fit
Definition TrigEFBphys.h:73
float fity() const
accessor method: y position of vertex
Definition TrigEFBphys.h:81
float fitx() const
accessor method: x position of vertex
Definition TrigEFBphys.h:79
pType particleType() const
accessor method: particle Type
Definition TrigEFBphys.h:65
float mass() const
accessor method: mass
Definition TrigEFBphys.h:71
float fitz() const
accessor method: z position of vertex
Definition TrigEFBphys.h:83
int roiId() const
accessor method: ID of L1 RoI
Definition TrigEFBphys.h:63
float eta() const
accessor method: eta
Definition TrigEFBphys.h:67
int fitndof() const
accessor method: ndof from vertex fit
Definition TrigEFBphys.h:77
virtual StatusCode convert(const TrigEFBphys *aod, xAOD::TrigBphys *xaod) const override
Function that fills an existing xAOD::TrigBphysContainer.
TrigEFBphysCnvTool(const std::string &type, const std::string &name, const IInterface *parent)
Regular AlgTool constructor.
int fitndof() const
accessor method: ndof from vertex fit
void setPhi(float)
Set the azimuth angle of the object.
void setFitchi2(float FitChi2)
set method: chi2 from vertex fit
void setParticleType(pType type)
set method: particle type
void setFitx(float FitX)
set method: x position of vertex
uint32_t roiId() const
accessor method: ID of L1 RoI
void setFity(float FitY)
set method: y position of vertex
void setRoiId(uint32_t id)
set method: roiId
float eta() const
accessor method: eta
pType particleType() const
accessor method: particle Type
float phi() const
accessor method: phi
float fitchi2() const
accessor method: chi2 from vertex fit
void setFitndof(int FitNdof)
set method: ndof from vertex fit
void setFitz(float FitZ)
set method: z position of vertex
float fitx() const
accessor method: x position of vertex
void setFitmass(float FitMass)
set method: mass from vertex fit
float fitz() const
accessor method: z position of vertex
float fitmass() const
accessor method: mass from vertex fit
void setLevel(levelType type)
set method: level type
float mass() const
accessor method: mass
void setEta(float)
Set the pseudorapidity of the object.
void setMass(float)
Set the mass of the object.
pType
enum for different particle types
float fity() const
accessor method: y position of vertex
levelType level() const
accessor method: level Type
TrigBphys_v1 TrigBphys
Definition TrigBphys.h:18