ATLAS Offline Software
MuonSpShowerCnv_p1.cxx
Go to the documentation of this file.
1 
3 /*
4  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // MuonSpShowerCnv_p1.cxx
8 // Implementation file for class MuonSpShowerCnv_p1
9 // Author: Edward.Moyse@cern.ch
11 
12 // muonEvent includes
13 #include "muonEvent/MuonSpShower.h"
14 
15 // RecTPCnv includes
17 
18 
20  Rec::MuonSpShower* trans,
21  MsgStream& /*msg*/ ) const
22 {
23  trans->set_eta (pers->m_eta);
24  trans->set_phi (pers->m_phi);
32  return;
33 }
34 
36  MuonSpShower_p1* pers,
37  MsgStream& /*msg*/ ) const
38 {
39  pers->m_eta = trans->eta();
40  pers->m_phi = trans->phi();
42  pers->m_numberOfInnerHits = trans->numberOfInnerHits() ;
44  pers->m_numberOfMiddleHits = trans->numberOfMiddleHits() ;
46  pers->m_numberOfOuterHits = trans->numberOfOuterHits() ;
48  return;
49 }
Rec::MuonSpShower::set_numberOfMiddleSegments
void set_numberOfMiddleSegments(const unsigned short nSeg)
set the number of Middle segments
Definition: MuonSpShower.h:123
Rec::MuonSpShower::numberOfOuterSegments
unsigned short numberOfOuterSegments() const
return the number of Outer segments
Definition: MuonSpShower.h:103
MuonSpShower_p1::m_numberOfOuterSegments
unsigned short m_numberOfOuterSegments
Definition: MuonSpShower_p1.h:35
MuonSpShowerCnv_p1::transToPers
virtual void transToPers(const Rec::MuonSpShower *transObj, MuonSpShower_p1 *persObj, MsgStream &msg) const override
Method creating the persistent representation MuonSpShower_p1 from its transient representation Rec::...
Definition: MuonSpShowerCnv_p1.cxx:35
MuonSpShower_p1::m_numberOfMiddleSegments
unsigned short m_numberOfMiddleSegments
Definition: MuonSpShower_p1.h:33
Rec::MuonSpShower::phi
float phi() const
return the Jet axis - phi
Definition: MuonSpShower.h:81
Rec::MuonSpShower::numberOfMiddleSegments
unsigned short numberOfMiddleSegments() const
return the number of Middle segments
Definition: MuonSpShower.h:100
MuonSpShower_p1::m_numberOfOuterHits
unsigned short m_numberOfOuterHits
Definition: MuonSpShower_p1.h:34
Rec::MuonSpShower::set_numberOfInnerHits
void set_numberOfInnerHits(const unsigned short nHit)
set the number of Inner Hits
Definition: MuonSpShower.h:114
MuonSpShowerCnv_p1.h
Rec::MuonSpShower::set_numberOfOuterSegments
void set_numberOfOuterSegments(const unsigned short nSeg)
set the number of Outer segments
Definition: MuonSpShower.h:125
Rec::MuonSpShower::eta
float eta() const
return the Jet axis - eta
Definition: MuonSpShower.h:79
Rec::MuonSpShower::numberOfOuterHits
unsigned short numberOfOuterHits() const
return the number of Outer hits
Definition: MuonSpShower.h:93
MuonSpShower_p1::m_numberOfInnerHits
unsigned short m_numberOfInnerHits
Definition: MuonSpShower_p1.h:30
Rec::MuonSpShower::set_numberOfMiddleHits
void set_numberOfMiddleHits(const unsigned short nHit)
set the number of Middle Hits
Definition: MuonSpShower.h:116
Rec::MuonSpShower
Definition: MuonSpShower.h:39
Rec::MuonSpShower::set_phi
void set_phi(const float axisPhi)
set the Jet axis - phi
Definition: MuonSpShower.h:109
Rec::MuonSpShower::set_eta
void set_eta(const float axisEta)
set the Jet axis - eta
Definition: MuonSpShower.h:107
MuonSpShower_p1::m_numberOfTriggerHits
unsigned short m_numberOfTriggerHits
Definition: MuonSpShower_p1.h:29
MuonSpShower_p1::m_eta
float m_eta
Definition: MuonSpShower_p1.h:27
Rec::MuonSpShower::set_numberOfInnerSegments
void set_numberOfInnerSegments(const unsigned short nSeg)
set the number of Inner segments
Definition: MuonSpShower.h:121
Rec::MuonSpShower::numberOfInnerSegments
unsigned short numberOfInnerSegments() const
return the number of Inner segments
Definition: MuonSpShower.h:97
Rec::MuonSpShower::set_numberOfTriggerHits
void set_numberOfTriggerHits(const unsigned short nHit)
set the number of Trigger Hits
Definition: MuonSpShower.h:112
Rec::MuonSpShower::numberOfMiddleHits
unsigned short numberOfMiddleHits() const
return the number of Middle hits
Definition: MuonSpShower.h:90
MuonSpShower.h
MuonSpShower_p1
Persisent representation of the transient Rec::MuonSpShower class.
Definition: MuonSpShower_p1.h:14
MuonSpShower_p1::m_phi
float m_phi
Definition: MuonSpShower_p1.h:28
Rec::MuonSpShower::set_numberOfOuterHits
void set_numberOfOuterHits(const unsigned short nHit)
set the number of Outer Hits
Definition: MuonSpShower.h:118
Rec::MuonSpShower::numberOfInnerHits
unsigned short numberOfInnerHits() const
return the number of Inner hits
Definition: MuonSpShower.h:87
MuonSpShower_p1::m_numberOfMiddleHits
unsigned short m_numberOfMiddleHits
Definition: MuonSpShower_p1.h:32
MuonSpShowerCnv_p1::persToTrans
virtual void persToTrans(const MuonSpShower_p1 *persObj, Rec::MuonSpShower *transObj, MsgStream &msg) const override
Method creating the transient representation of Rec::MuonSpShower from its persistent representation ...
Definition: MuonSpShowerCnv_p1.cxx:19
Rec::MuonSpShower::numberOfTriggerHits
unsigned short numberOfTriggerHits() const
return the number of Trigger hits
Definition: MuonSpShower.h:84
MuonSpShower_p1::m_numberOfInnerSegments
unsigned short m_numberOfInnerSegments
Definition: MuonSpShower_p1.h:31