ATLAS Offline Software
Loading...
Searching...
No Matches
CMMRoICnvTool.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
6// EDM include(s):
10
11// Local include(s):
12#include "CMMRoICnvTool.h"
13
14namespace xAODMaker {
15
17 const std::string& name,
18 const IInterface* parent )
19 : AthAlgTool( type, name, parent ) {
20
21 // Declare the interface(s) provided by the tool:
22 declareInterface< ICMMRoICnvTool >( this );
23 }
24
34 StatusCode CMMRoICnvTool::convert( const LVL1::CMMRoI* esd,
35 xAOD::CMMRoI* xaod) {
36
37 xaod->setRoiWord( esd->jetEtRoiWord() );
38 xaod->setRoiWord( esd->energyRoiWord0() );
39 xaod->setRoiWord( esd->energyRoiWord1() );
40 xaod->setRoiWord( esd->energyRoiWord2() );
41
42 // Return gracefully:
43 return StatusCode::SUCCESS;
44 }
45
46} // namespace xAODMaker
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
uint32_t energyRoiWord1() const
Return packed Energy RoI word 1.
uint32_t energyRoiWord2() const
Return packed Energy RoI word 2.
uint32_t jetEtRoiWord() const
Return packed Jet-Et RoI word.
uint32_t energyRoiWord0() const
Return packed Energy RoI word 0.
virtual StatusCode convert(const LVL1::CMMRoI *esd, xAOD::CMMRoI *xaod) override
Function that fills an existing xAOD::EmTauRoIContainer.
CMMRoICnvTool(const std::string &type, const std::string &name, const IInterface *parent)
Regular AlgTool constructor.
bool setRoiWord(uint32_t roiWord)
Set RoI word with ID check Internally works out the type of roiWord.
Definition CMMRoI_v1.cxx:29
CMMRoI_v1 CMMRoI
Define the latest version of the CMMRoI class.