ATLAS Offline Software
Loading...
Searching...
No Matches
TrigMuonEFIsolationCnv_p2.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
10
12
14
19
20 log << MSG::DEBUG << "Called TrigMuonEFIsolationCnv_p2::persToTrans" << endmsg;
21
22 transObj->setSumTrkPtCone02 (persObj->allTheFloats[0]);
23 transObj->setSumTrkPtCone03 (persObj->allTheFloats[1]);
24 transObj->setSumEtCone01 (persObj->allTheFloats[2]);
25 transObj->setSumEtCone02 (persObj->allTheFloats[3]);
26 transObj->setSumEtCone03 (persObj->allTheFloats[4]);
27 transObj->setSumEtCone04 (persObj->allTheFloats[5]);
28
29 transObj->setEFMuonInfoTrackLink (persObj->m_trkPos);
30
32 infoEleLinkCnv.persToTrans( &persObj->m_muonEFLink, &muonEFLink, log);
33 transObj->setEFMuonInfoElementLink (muonEFLink);
34
35}//persToTrans
36
41
42 log << MSG::DEBUG << "Called TrigMuonEFIsolationCnv_p2::transToPers" << endmsg;
43
44 persObj->allTheFloats[0] = transObj->sumTrkPtCone02();
45 persObj->allTheFloats[1] = transObj->sumTrkPtCone03();
46 persObj->allTheFloats[2] = transObj->sumEtCone01();
47 persObj->allTheFloats[3] = transObj->sumEtCone02();
48 persObj->allTheFloats[4] = transObj->sumEtCone03();
49 persObj->allTheFloats[5] = transObj->sumEtCone04();
50
51 persObj->m_trkPos = transObj->trackPosition();
52
53 infoEleLinkCnv.transToPers( &transObj->getMuonInfoLink(), &persObj->m_muonEFLink, log);
54
55}//transToPers
#define endmsg
This file contains the class definition for the ElementLinkCnv_p3 class.
static const InfoEleLinkCnv_t infoEleLinkCnv
ElementLinkCnv_p3< ElementLink< TrigMuonEFInfoContainer > > InfoEleLinkCnv_t
virtual void persToTrans(const TrigMuonEFIsolation_p2 *persObj, TrigMuonEFIsolation *transObj, MsgStream &log)
Convert from persistent to transient.
virtual void transToPers(const TrigMuonEFIsolation *transObj, TrigMuonEFIsolation_p2 *persObj, MsgStream &log)
Convert from transient to persistent.
Persistent partner class for TrigMuonEFIsolation.
ElementLinkInt_p3 m_muonEFLink
position of EF muon track within the info object
int m_trkPos
array to hold the floats
EDM class for holding results of EF muon isolation calculation.
void setSumEtCone03(const double etcone03)
set sum of calorimeter Et in 0.3 cone
int trackPosition() const
Position of the muon in the TrigMuonEFInfoTrack container.
void setSumTrkPtCone02(const double ptcone02)
set sum of track Pt in 0.2 cone
const ElementLink< TrigMuonEFInfoContainer > & getMuonInfoLink() const
void setSumTrkPtCone03(const double ptcone03)
set sum of track Pt in 0.3 cone
void setSumEtCone01(const double etcone01)
set sum of calorimeter Et in 0.1 cone
void setEFMuonInfoTrackLink(const int itrk)
Set the link to the muon we calculated the isolation for.
void setSumEtCone02(const double etcone02)
set sum of calorimeter Et in 0.2 cone
void setEFMuonInfoElementLink(const ElementLink< TrigMuonEFInfoContainer > link)
set the element link to the TrigMuonEFInfo object we are using
void setSumEtCone04(const double etcone04)
set sum of calorimeter Et in 0.4 cone