ATLAS Offline Software
TileTTL1CellCnv_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 // TileTTL1CellCnv_p1.cxx
8 // Implementation file for class TileTTL1CellCnv_p1
9 // Author: Alexander Solodkov <Sanya.Solodkov@cern.ch>
10 // Date: June 2009
12 
13 #include "TileEvent/TileTTL1Cell.h"
15 
16 
17 void
18 TileTTL1CellCnv_p1::persToTrans(const TileTTL1Cell_p1* persObj, TileTTL1Cell* transObj, MsgStream &/*log*/) const
19 {
20  *transObj = TileTTL1Cell (Identifier(Identifier32(persObj->m_channelID)),
21  persObj->m_eneTower,
22  persObj->m_timeAve,
23  persObj->m_corrFactor,
24  persObj->m_quality);
25 }
26 
27 
28 void
29 TileTTL1CellCnv_p1::transToPers(const TileTTL1Cell* transObj, TileTTL1Cell_p1* persObj, MsgStream &/*log*/) const
30 {
31  persObj->m_channelID = transObj->identify().get_identifier32().get_compact();
32 
33  // Tower energy
34  persObj->m_eneTower = transObj->eneTower();
35 
36  // Time average
37  persObj->m_timeAve = transObj->timeAve();
38 
39  // Correction factor
40  persObj->m_corrFactor = transObj->corrFactor();
41 
42  // quality factor
43  persObj->m_quality = transObj->qualTower();
44 
45 }
Identifier32
Definition: Identifier32.h:25
TileTTL1Cell::timeAve
float timeAve(void) const
get time average for all cells in tower (data member)
Definition: TileTTL1Cell.h:86
Identifier::get_identifier32
Identifier32 get_identifier32() const
Get the 32-bit version Identifier, will be invalid if >32 bits needed.
TileTTL1Cell
Definition: TileTTL1Cell.h:37
TileTTL1Cell::corrFactor
float corrFactor(void) const
get tower correction factor (data member)
Definition: TileTTL1Cell.h:88
Identifier32::get_compact
value_type get_compact() const
Get the compact id.
Definition: Identifier32.h:44
TileTTL1Cell_p1::m_eneTower
float m_eneTower
Definition: TileTTL1Cell_p1.h:36
TileTTL1Cell::identify
Identifier identify(void) const
Definition: TileTTL1Cell.h:81
TileTTL1Cell.h
TileTTL1Cell_p1::m_timeAve
float m_timeAve
Definition: TileTTL1Cell_p1.h:37
TileTTL1CellCnv_p1::transToPers
virtual void transToPers(const TileTTL1Cell *transObj, TileTTL1Cell_p1 *persObj, MsgStream &log) const override
Method creating the persistent representation TileTTL1Cell_p1 from its transient representation TileT...
Definition: TileTTL1CellCnv_p1.cxx:29
TileTTL1Cell_p1
Definition: TileTTL1Cell_p1.h:20
TileTTL1CellCnv_p1::persToTrans
virtual void persToTrans(const TileTTL1Cell_p1 *persObj, TileTTL1Cell *transObj, MsgStream &log) const override
Method creating the transient representation TileTTL1Cell from its persistent representation TileTTL1...
Definition: TileTTL1CellCnv_p1.cxx:18
TileTTL1Cell::qualTower
uint16_t qualTower(void) const
get quality factor for (data member)
Definition: TileTTL1Cell.h:90
TileTTL1Cell_p1::m_channelID
unsigned int m_channelID
Definition: TileTTL1Cell_p1.h:35
TileTTL1Cell_p1::m_quality
uint16_t m_quality
Definition: TileTTL1Cell_p1.h:39
TileTTL1CellCnv_p1.h
TileTTL1Cell_p1::m_corrFactor
float m_corrFactor
Definition: TileTTL1Cell_p1.h:38
TileTTL1Cell::eneTower
float eneTower(void) const
get energy for tower (data member)
Definition: TileTTL1Cell.h:84
Identifier
Definition: IdentifierFieldParser.cxx:14