ATLAS Offline Software
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 
13 static const InfoEleLinkCnv_t infoEleLinkCnv;
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
TrigMuonEFIsolation_p2::m_muonEFLink
ElementLinkInt_p3 m_muonEFLink
position of EF muon track within the info object
Definition: TrigMuonEFIsolation_p2.h:40
ElementLinkCnv_p3
Definition: ElementLinkCnv_p3.h:27
TrigMuonEFIsolation::setSumTrkPtCone02
void setSumTrkPtCone02(const double ptcone02)
set sum of track Pt in 0.2 cone
Definition: TrigMuonEFIsolation.h:79
ElementLinkCnv_p3.h
This file contains the class definition for the ElementLinkCnv_p3 class.
ElementLinkCnv_p3::persToTrans
void persToTrans(const PersLink_t &pers, Link_t &trans, MsgStream &log) const
TrigMuonEFIsolation::sumEtCone04
float sumEtCone04() const
Definition: TrigMuonEFIsolation.h:65
TrigMuonEFIsolation::setSumEtCone04
void setSumEtCone04(const double etcone04)
set sum of calorimeter Et in 0.4 cone
Definition: TrigMuonEFIsolation.h:90
TrigMuonEFIsolation::setSumEtCone02
void setSumEtCone02(const double etcone02)
set sum of calorimeter Et in 0.2 cone
Definition: TrigMuonEFIsolation.h:86
TrigMuonEFInfoContainer.h
TrigMuonEFIsolation::getMuonInfoLink
const ElementLink< TrigMuonEFInfoContainer > & getMuonInfoLink() const
Definition: TrigMuonEFIsolation.cxx:127
TrigMuonEFIsolation_p2.h
TrigMuonEFIsolation.h
TrigMuonEFIsolation
Definition: TrigMuonEFIsolation.h:24
TrigMuonEFIsolation::sumEtCone03
float sumEtCone03() const
Definition: TrigMuonEFIsolation.h:63
ElementLinkCnv_p3::transToPers
void transToPers(const Link_t &trans, PersLink_t &pers, const SG::ThinningCache *cache, MsgStream &log) const
TrigMuonEFIsolation::sumTrkPtCone02
float sumTrkPtCone02() const
Definition: TrigMuonEFIsolation.h:54
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
TrigMuonEFIsolation::sumEtCone01
float sumEtCone01() const
Definition: TrigMuonEFIsolation.h:59
TrigMuonEFIsolation::setSumTrkPtCone03
void setSumTrkPtCone03(const double ptcone03)
set sum of track Pt in 0.3 cone
Definition: TrigMuonEFIsolation.h:81
TrigMuonEFIsolation::setEFMuonInfoTrackLink
void setEFMuonInfoTrackLink(const int itrk)
Set the link to the muon we calculated the isolation for.
Definition: TrigMuonEFIsolation.cxx:106
TrigMuonEFIsolation_p2
Persistent partner class for TrigMuonEFIsolation.
Definition: TrigMuonEFIsolation_p2.h:20
TrigMuonEFIsolation::trackPosition
int trackPosition() const
Position of the muon in the TrigMuonEFInfoTrack container.
Definition: TrigMuonEFIsolation.h:68
TrigMuonEFIsolation::setEFMuonInfoElementLink
void setEFMuonInfoElementLink(const ElementLink< TrigMuonEFInfoContainer > link)
set the element link to the TrigMuonEFInfo object we are using
Definition: TrigMuonEFIsolation.cxx:114
TrigMuonEFIsolation::sumTrkPtCone03
float sumTrkPtCone03() const
Definition: TrigMuonEFIsolation.h:56
InfoEleLinkCnv_t
ElementLinkCnv_p3< ElementLink< TrigMuonEFInfoContainer > > InfoEleLinkCnv_t
Definition: TrigMuonEFIsolationCnv_p2.cxx:11
TrigMuonEFIsolation::setSumEtCone01
void setSumEtCone01(const double etcone01)
set sum of calorimeter Et in 0.1 cone
Definition: TrigMuonEFIsolation.h:84
TrigMuonEFIsolationCnv_p2::transToPers
virtual void transToPers(const TrigMuonEFIsolation *transObj, TrigMuonEFIsolation_p2 *persObj, MsgStream &log)
Convert from transient to persistent.
Definition: TrigMuonEFIsolationCnv_p2.cxx:40
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
TrigMuonEFIsolation_p2::m_trkPos
int m_trkPos
array to hold the floats
Definition: TrigMuonEFIsolation_p2.h:38
TrigMuonEFIsolation::sumEtCone02
float sumEtCone02() const
Definition: TrigMuonEFIsolation.h:61
TrigMuonEFIsolationCnv_p2::persToTrans
virtual void persToTrans(const TrigMuonEFIsolation_p2 *persObj, TrigMuonEFIsolation *transObj, MsgStream &log)
Convert from persistent to transient.
Definition: TrigMuonEFIsolationCnv_p2.cxx:18
TrigMuonEFIsolation::setSumEtCone03
void setSumEtCone03(const double etcone03)
set sum of calorimeter Et in 0.3 cone
Definition: TrigMuonEFIsolation.h:88
TrigMuonEFIsolation_p2::allTheFloats
float allTheFloats[6]
Definition: TrigMuonEFIsolation_p2.h:36
TrigMuonEFIsolationCnv_p2.h