ATLAS Offline Software
TileMuCnv_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 // TileMuCnv_p1.cxx
8 // Implementation file for class TileMuCnv_p1
9 // Author: Aranzazu Ruiz <aranzazu.ruiz.martinez@cern.ch>
10 // Date: July 2008
12 
13 // TileEvent includes
14 #include "TileEvent/TileMu.h"
15 
16 // TileTPCnv includes
17 #include "TileTPCnv/TileMuCnv_p1.h"
18 
19 
20 void TileMuCnv_p1::transToPers(const TileMu* transObj, TileMu_p1* persObj, MsgStream &/*log*/) const {
21 
22  // Muon eta coordinate
23  persObj->m_eta = transObj->eta();
24 
25  // Muon phi coordinate
26  persObj->m_phi = transObj->phi();
27 
28  // Muon quality factor
29  persObj->m_quality_factor = transObj->quality();
30 
31  // Energy deposited by the muon in TileCal
32  persObj->m_energy_deposited = transObj->enedep();
33 }
34 
35 
36 void TileMuCnv_p1::persToTrans(const TileMu_p1* persObj, TileMu* transObj, MsgStream &/*log*/) const {
37 
38  *transObj = TileMu (persObj->m_eta,
39  persObj->m_phi,
40  persObj->m_energy_deposited,
41  persObj->m_quality_factor);
42 }
TileMuCnv_p1::transToPers
virtual void transToPers(const TileMu *transObj, TileMu_p1 *persObj, MsgStream &log) const override
Method creating the persistent representation TileMu_p1 from its transient representation TileMu.
Definition: TileMuCnv_p1.cxx:20
TileMu::phi
float phi() const
Phi (average value at the TileCal radius)
Definition: TileMu.h:46
TileMu_p1::m_energy_deposited
std::vector< float > m_energy_deposited
Definition: TileMu_p1.h:35
TileMu::quality
float quality() const
Quality flag (0 or 1): set to 0 if the "energy deposition path" is MIP like in all three samples (tig...
Definition: TileMu.h:60
TileMu_p1::m_quality_factor
float m_quality_factor
Definition: TileMu_p1.h:36
TileMu_p1::m_eta
float m_eta
Definition: TileMu_p1.h:33
TileMuCnv_p1.h
TileMuCnv_p1::persToTrans
virtual void persToTrans(const TileMu_p1 *persObj, TileMu *transObj, MsgStream &log) const override
Method creating the transient representation TileMu from its persistent representation TileMu_p1.
Definition: TileMuCnv_p1.cxx:36
TileMu::enedep
const std::vector< float > & enedep() const
Energy deposition by the muons in TileCal: 1st component: energy deposited in innermost layer (A cell...
Definition: TileMu.h:54
TileMu_p1
Definition: TileMu_p1.h:20
TileMu::eta
float eta() const
Eta (computed as the average of the eta values of the TileCal cells where the muon goes through)
Definition: TileMu.h:43
TileMu_p1::m_phi
float m_phi
Definition: TileMu_p1.h:34
TileMu
Class to store TileMuId quantities.
Definition: TileMu.h:25
TileMu.h