ATLAS Offline Software
Loading...
Searching...
No Matches
xAODEnergySumRoIAuxInfoCnv_v1.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4
5// $Id$
6
7// System include(s):
8#include <stdexcept>
9
10// Gaudi/Athena include(s):
11#include "GaudiKernel/MsgStream.h"
12
13// EDM include(s):
19
20// Local include(s):
22
24#define MSGLVL MSG::INFO
25
27#define ATH_MSG( MSG ) \
28 do { \
29 if( log.level() <= MSGLVL ) { \
30 log << MSGLVL << MSG << endmsg; \
31 } \
32 } while( 0 )
33
37
41 MsgStream& /*log*/ ) const {
42
43 // Greet the user:
44 //ATH_MSG( "Converting xAOD::EnergySumRoIAuxInfo_v1 to current version..." );
45
48 oldRoI.setStore(oldObj);
49 newRoI.setStore(newObj);
50
51 uint32_t word0 = oldRoI.roiWord0();
52 uint32_t word1 = oldRoI.roiWord1();
53 uint32_t word2 = oldRoI.roiWord2();
54 float_t ex = oldRoI.energyX();
55 float_t ey = oldRoI.energyY();
56 float_t et = oldRoI.energyT();
57
58 newRoI.initialize(word0, word1, word2, ex, ey, et);
59
60 return;
61}
62
65 MsgStream& log ) const {
66
67 log << MSG::ERROR
68 << "Somebody called xAODEnergySumRoIAuxInfoCnv_v1::transToPers"
69 << endmsg;
70 throw std::runtime_error( "Somebody called xAODEnergySumRoIAuxInfoCnv_v1::"
71 "transToPers" );
72
73 return;
74}
#define endmsg
void setStore(const SG::IConstAuxStore *store)
Set the store associated with this object.
virtual void persToTrans(const xAOD::EnergySumRoIAuxInfo_v1 *oldObj, xAOD::EnergySumRoIAuxInfo *newObj, MsgStream &log) const override
Function converting from the old type to the current one.
virtual void transToPers(const xAOD::EnergySumRoIAuxInfo *, xAOD::EnergySumRoIAuxInfo_v1 *, MsgStream &log) const override
Function for converting from old type to current one.
Auxiliary store for an EnergySum RoI object.
Class describing a LVL1 energy-sum "RoI".
float energyX() const
The total energy deposited in the X direction.
uint32_t roiWord2() const
The third RoI word produced by the L1Calo hardware.
float energyY() const
The total energy deposited in the Y direction.
uint32_t roiWord1() const
The second RoI word produced by the L1Calo hardware.
float energyT() const
The deposited total transverse energy.
uint32_t roiWord0() const
The first RoI word produced by the L1Calo hardware.
Class describing a LVL1 energy-sum "RoI".
void initialize(uint32_t roiword0, uint32_t roiword1, uint32_t roiword2, float energyX, float energyY, float energyT)
Initialise the object with its most important properties from a single RoI.
Helper to copy an aux store while applying thinning.
EnergySumRoIAuxInfo_v2 EnergySumRoIAuxInfo
Declare the most recent version of the energy-sum auxiliary info.
Extra patterns decribing particle interation process.