ATLAS Offline Software
Loading...
Searching...
No Matches
TileMuCnv_p1.cxx
Go to the documentation of this file.
1
2
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
18
19
20void 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
36void 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}
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.
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.
float m_eta
Definition TileMu_p1.h:33
float m_quality_factor
Definition TileMu_p1.h:36
float m_phi
Definition TileMu_p1.h:34
std::vector< float > m_energy_deposited
Definition TileMu_p1.h:35
Class to store TileMuId quantities.
Definition TileMu.h:25
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
float phi() const
Phi (average value at the TileCal radius)
Definition TileMu.h:46
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
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